如何通过 FB iOS SDK 添加 Facebook 好友
我正在尝试让用户使用 Facebook 的 iOS SDK“添加朋友”。
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"brent", @"id",
nil];
[_facebook dialog:@"friends"
andParams:params
andDelegate:self];
该对话框打开,但显示“发生错误。”请稍后再试。
请求有问题吗?有没有办法获得更详细的错误?
I'm trying to let a user 'add a friend' using Facebook's iOS SDK.
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"brent", @"id",
nil];
[_facebook dialog:@"friends"
andParams:params
andDelegate:self];
The dialog opens up but says 'An error occurred with . Please try again later.'
Is there something wrong with the request? Is there a way to get a more detailed error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前您无法使用 Facebook iOS SDK 添加好友。如果您查看发送的请求,您可以尝试从浏览器调用该请求以获取详细消息。就我而言,错误是:
错误消息的含义是无法从 iOS 完成此 API 调用。
At this time you cannot add a friend using the Facebook iOS SDK. If you look at the request being sent out you can try calling that from a browser to get a detailed message. In my case, the error is:
What the error message means is that this API call cannot be done from iOS.