Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AppDelegate *appDelegate=[[UIApplication sharedApplication] delegate];
- appDelegate.session = [[FBSession alloc] initWithPermissions:[NSArray arrayWithObjects:@"publish_stream", nil]];
- [appDelegate.session openWithCompletionHandler:^(FBSession *session, FBSessionState status, NSError *error) {
- switch (status) {
- case FBSessionStateOpen:
- [FBNativeDialogs presentShareDialogModallyFrom:currentController initialText:nil image:nil url:nil handler:^(FBNativeDialogResult result, NSError *error) {
- NSLog(@"New Native FB Dialog Error= %@",error);
- }];
- break;
- default:
- break;
- }
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement