Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *facebookIDString = [NSString stringWithFormat:@"%lld", facebookID];
- // Put together the dialog parameters
- NSMutableDictionary *params =
- [NSMutableDictionary dictionaryWithObjectsAndKeys:
- facebookIDString, @"to",
- @"MY APP NAME", @"name",
- @"MY APP CAPTION", @"caption",
- @"MY APP DESCRIPTION", @"description",
- @"http://www.myApp.com", @"link",
- @"https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png", @"picture",
- FACEBOOK_APP_ID, @"app_id",
- nil];
- // Invoke the dialog
- [FBWebDialogs presentDialogModallyWithSession:[FBSession activeSession]
- dialog:@"feed"
- parameters:params
- handler:
- ^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
- //My code here
- }];
- <FBSession: 0x146a72d0, state: FBSessionStateOpen, loginHandler: 0x146a77d0, appID: <My APP_ID>, urlSchemeSuffix: , tokenCachingStrategy:<FBSessionTokenCachingStrategy: 0x145c3b20>, expirationDate: 4001-01-01 00:00:00 +0000, refreshDate: 2014-02-22 18:14:14 +0000, attemptedRefreshDate: 0001-12-30 00:00:00 +0000, permissions:(
- "create_note",
- "basic_info",
- "share_item",
- "status_update",
- "user_friends",
- "publish_actions",
- "publish_checkins",
- "video_upload",
- "publish_stream",
- "photo_upload",
- installed,
- email,
- "public_profile",
- "user_birthday",
- "user_location"
- )>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement