Reputation: 939
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.
Upvotes: 5
Views: 2735
Reputation: 3892
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
Upvotes: 3
Reputation: 61
Go in facebook.m class and change the authorization to NO as mention below:
(void)authorize:(NSArray *)permissions
{
self.permissions = permissions;
[self authorizeWithFBAppAuth:NO safariAuth:NO];
}
Upvotes: 2
Reputation: 1270
hey i m facing this problem also. when i logging in after autorizing app thn getting just white screen. so i found one code in this sharekit + graph api they used. and itzz working great but big problem is that for logging in fb itz going out of app. and opening safari. so anyone hv solution for tht we can get working facebook perfactely.
i m sharing link of that code. plzz in plist file add ur fb appID.then check it.
http://www.mediafire.com/?fgescq4s2cbazfk
Upvotes: 0