对话框“应用请求”朋友邀请发送成功,但一直打不通。 (iOS)
我在让好友邀请正常工作时遇到问题。他们似乎发送正常(我没有从 iOS 代表那里收到任何错误),但邀请从未出现在接收者 FB 帐户上。我正在使用 iOS SDK 并使用测试用户登录。我用来创建邀请对话框的代码是:
NSMutableDictionary* dict = [NSMutableDictionary 字典];
[dict setValue:@"接受我的邀请" forKey:@"message"];
[_facebook 对话框:@"apprequests" andParams:dict andDelegate:self];
这会弹出一个对话框,我可以在其中选择要邀请的朋友。当我点击“发送”时,对话框消失并且没有返回任何错误。问题是我发送邀请的人从未收到过邀请。
我已经设置了我的画布网址,所以根据其他帖子,所以一切都应该工作正常......但事实并非如此。
感谢您的任何建议。
I'm having problems getting friend invites working. They seem to be being sent OK (I don't get any errors from the iOS delegates) but the invites never appear on the receivers FB account. I'm using iOS SDK and logging in with test users. The code I'm using to create the invite dialog is:
NSMutableDictionary* dict = [NSMutableDictionary dictionary];
[dict setValue:@"Accept my invite" forKey:@"message"];
[_facebook dialog:@"apprequests" andParams:dict andDelegate:self];
This brings up the dialog where I can select friends to invite. When I hit Send the dialog vanishes and no errors are returned. Problem is that the invites are never received by the people I send them to.
I have set my canvas url, so according to other posts on SO everything should be working fine... but they are not.
Thanks for any suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上,请求文档对此进行了解释:
关于应用程序对用户的请求也是如此。
这可能不仅是因为 Canvas URL,还因为应用程序类型(我想它不应该是显示请求的本机)。
事实上,请求已发送,但用户无法看到它们。您可以访问应用程序用户的请求(通过 Graph API)并将其显示在您的应用程序中。
Actually this is explained in Requests documentation:
Same stated about App to User requests as well.
This is probably not only because Canvas URL, but also application type (I guess it shouldn't be native to display request)
In fact requests are sent but users not able to see 'em. You can access requests (via Graph API) for users of your application and display 'em in your app.
解决方案:(发送邀请,获取 ID 响应,但 facebook 上没有通知警报或请求......)。
请首先删除您 Facebook 上的所有请求。然后发送邀请。(如果响应中收到ID),那么它将显示100%。
这是 facebook 的一个问题,如果达到最大通知/请求,它不会在顶部显示最新请求。(它隐藏新的通知/请求)。
Solution: (Sending Invitations, getting ID in response, but no Notification alert or request on facebook.......).
Please first remove all requests from your facebook. Then send invitation.(If getting ID in response), then it will be shown 100%.
This is a problem with facebook, it doesn't shows latest requests on top if max notifications/requests reached.(It hides new notifications/request).