如何让用户在iOS中从Facebook登录/发布位置处理过程?

时间:2015-12-22 07:32:25

标签: ios facebook facebook-graph-api

我想检索用户签到或在iOS(目标C)中从脸书中发布位置信息。

这是示例代码,我已经尝试过,但我没有取得任何成功。

请查看此内容并分享一些想法,以便继续进行此操作。

注意:我正在尝试使用GraphAPI。

代码:

[FBRequestConnection startWithGraphPath:@"me/feed" parameters:@{@"place":@"fbuser-id"}  HTTPMethod:@"POST" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) { 
      //verify result
if(error) { 
       NSLog(@"Error publishing story."); 
     } 
else { 
        NSLog(@"Story published.");
     } 
}];

1 个答案:

答案 0 :(得分:1)

你可以尝试这个......从这段代码中你得到了办理登机手续的位置

$(".ui-dialog-buttonpane:first button").css("width","50%");

enter image description here

如果您没有“user_posts”'许可..然后fb不提供任何数据。