【问题标题】:Graph API to check in with Facebook iOS SDK 3.1.1使用 Facebook iOS SDK 3.1.1 签入的图形 API
【发布时间】:2012-12-25 07:14:47
【问题描述】:

我正在使用 Facebook SDK 3.1.1 登录以及使用 Facebook 签到。 使用 Facebook 登录它工作正常,但使用图形 API 签入会出错。

这是我签入的所有权限 @"friends_status",@"user_checkins", @"friends_checkins",@"user_status"。

这是请求:

[FBRequestConnection startForPostStatusUpdate:message 
                                        place:placeId 
                                         tags:nil 
                            completionHandler:
      ^(FBRequestConnection *connection, id result, NSError *error) {
           NSLog(@"Response....... \n\n %@  %@ %@",connection,result,error);
      }
];

回复:

)> (null) Error Domain=com.facebook.sdk Code=5 "操作无法完成。(com.facebook.sdk error 5.)" 用户信息=0x808a5a0 {com.facebook.sdk:ParsedJSONResponseKey={type = mutable dict, count = 2, entries => 1: {contents = "code"} = {value = +403, type = kCFNumberSInt32Type} 2: {contents = "body" } = {type = mutable dict, count = 1, entries => 11 : {contents = "error"} = {type = mutable dict, count = 3, entries => 2 : {contents = "type"} = {contents = "OAuthException"} 3 : {contents = "message"} = {contents = "(#200) 用户没有授权 应用程序来执行此操作"} 6 : {contents = "code"} = 200 }

}

} , com.facebook.sdk:HTTPStatusCode=403}

谁能帮我看看代码有什么问题?

【问题讨论】:

    标签: facebook-graph-api ios6 checkin facebook-checkins


    【解决方案1】:

    Post 的location 参数需要read_stream 权限。

    【讨论】:

      猜你喜欢
      • 2012-10-16
      • 1970-01-01
      • 2011-05-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-05
      相关资源
      最近更新 更多