Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. NSString *facebookIDString = [NSString stringWithFormat:@"%lld", facebookID];
  2. // Put together the dialog parameters
  3. NSMutableDictionary *params =
  4. [NSMutableDictionary dictionaryWithObjectsAndKeys:
  5. facebookIDString, @"to",
  6. @"MY APP NAME", @"name",
  7. @"MY APP CAPTION", @"caption",
  8. @"MY APP DESCRIPTION", @"description",
  9. @"http://www.myApp.com", @"link",
  10. @"https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png", @"picture",
  11. FACEBOOK_APP_ID, @"app_id",
  12. nil];
  13.  
  14. // Invoke the dialog
  15. [FBWebDialogs presentDialogModallyWithSession:[FBSession activeSession]
  16. dialog:@"feed"
  17. parameters:params
  18. handler:
  19. ^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
  20. //My code here
  21. }];
  22.  
  23. <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:(
  24. "create_note",
  25. "basic_info",
  26. "share_item",
  27. "status_update",
  28. "user_friends",
  29. "publish_actions",
  30. "publish_checkins",
  31. "video_upload",
  32. "publish_stream",
  33. "photo_upload",
  34. installed,
  35. email,
  36. "public_profile",
  37. "user_birthday",
  38. "user_location"
  39. )>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement