ios - How to get a friend's post of facebook sdk v4 -


i'm using facebook sdk v4 posts of friend. use following code

fbsdkloginmanager* loginmanager = [[fbsdkloginmanager alloc] init];     [loginmanager loginwithreadpermissions:@[@"user_posts"] handler:^(fbsdkloginmanagerloginresult *result, nserror* error) {         if (error) {             // process error             nslog(@"");         } else if (result.iscancelled) {             // handle cancellations             nslog(@"");         } else {             // if ask multiple permissions @ once,             // should check if specific permissions missing             if ([result.grantedpermissions containsobject:@"user_posts"]) {                 fbsdkgraphrequest *request = [[fbsdkgraphrequest alloc]                                               initwithgraphpath:@"/10002434324342/posts"                                               parameters:nil                                               httpmethod:@"get"];                 [request startwithcompletionhandler:^(fbsdkgraphrequestconnection *connection,                                                       id result,                                                       nserror *error) {                     // handle result                     if (error) {                         nslog(@"");                     }                 }];             }          }     }]; 

10002434324342 example of facebookid. return empty data list.

can tell me how this

friend permissions have been removed v2.0, can data of users authorized app too, correct permissions. user_posts should used /me/posts.

more information: https://developers.facebook.com/docs/apps/changelog


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -