Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sharekit not working on facebook

facebook is not working on sharekit api .. after login then access permission is ok but after will its not display any thing just gone.. i check in iphone simulator.

Please help me out.. thanks.

like image 434
Appz Venture Avatar asked Mar 31 '11 17:03

Appz Venture


1 Answers

I don'y completly understand what your asking or where your having trouble, but this is how I do it:

-(IBAction)connectButton {
    SHKItem *item;
    NSURL *url = [NSURL URLWithString:@"put the link to the itunes store for your app here"];
    //this link is so if a person clicks the Facebook post, they will be directed to your app in the store

    NSString *postString = @"I just played a game of some game!;
    item = [SHKItem URL:url title:[NSString stringWithFormat:@"I'm playing some game! Want to play too?"];        
    item = [SHKItem URL:url title:@"Share Me!"];

    // Share the item
    [SHKFacebook shareItem:item];
}

sorry I had trouble formatting that. also, make sure you import SHKFacebook.h in your class file.

This will open the Facebook dialog from a button within your app

like image 141
Andrew Avatar answered Sep 23 '22 06:09

Andrew