iOS Facebook api,应用程序请求已发送但未收到?
我目前正在开发一个 iOS 应用程序,我使用 apprequests 来打开发送请求的对话框。我可以看到一切正常(我得到了对话框完整的东西),但用户没有收到请求!我正在使用测试 FB 应用程序(非公开),我在想在设置 FB 应用程序时是否缺少某些内容?或者我必须启用特定的权限?
这是我的一小段代码:
-(void)appRequestsWithMessage:(NSString )message {
NSMutableDictionary params = [NSMutableDictionary dictionaryWithObjectsAndKeys: message, @"message", nil];
[facebook dialog:@"apprequests"
andParams:params
andDelegate:self];
}
I'm currently working on an iOS app, and I use apprequests to bring up the dialog to send request. I can see everything working fine (I got the dialog complete thing) but user is not getting the request! I'm working with a test FB app (not public), I'm thinking if there's something I'm missing on setting up the FB app? Or is there a specify permission I have to enable?
Here is a little piece of my code:
-(void)appRequestsWithMessage:(NSString )message {
NSMutableDictionary params = [NSMutableDictionary dictionaryWithObjectsAndKeys: message, @"message", nil];
[facebook dialog:@"apprequests"
andParams:params
andDelegate:self];
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要允许在 Facebook 中显示应用程序请求,您必须在应用程序设置中启用“Facebook 上的应用程序”并提供“画布 URL”和“安全画布 URL”。
To allow App Requests to be shown in Facebook, you have to enable "App on Facebook" in Apps Settings and supply a "Canvas URL" and a "Secured Canvas URL".
您是否已在 Facebook 应用程序管理页面上将接收用户添加为测试人员?只要您处于沙盒模式,只有作为测试人员(或任何其他职位)添加的用户才能查看我们的应用程序、与我们的应用程序交互并接收来自我们的应用程序的请求。
检查您的应用程序的设置页面。
Have you added the receiving user as a tester on your Facebook app admin page? As long as you're in sandbox mode, only users added as testers (or any other position) can see, interact with and receive requests from our app.
Check the settings page for your app.