Sharekit does not work on facebook

facebook does not work on sharekit api .. after logging in, then access permission is approved, but after it is not displayed, everything just disappeared. I am checking iphone simulator.

Please help me .. thanks.

+5
source share
3 answers

I don’t understand what you are asking or where you have problems, but here 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'm having formatting issues. also make sure you import SHKFacebook.hinto your class file.

This will open the Facebook dialog using a button in your application.

+3
source

Go to facebook.m class and change the authorization to NO as follows:

(void)authorize:(NSArray *)permissions 
{
  self.permissions = permissions;

  [self authorizeWithFBAppAuth:NO safariAuth:NO];
}
+2

, . , . sharekit + graph api, . itzz , , fb itz . . hv- THT facebook .

i m . plzz plist add ur fb appID.then .

http://www.mediafire.com/?fgescq4s2cbazfk

0

All Articles