Facebook 自定义应用程序请求对话框
我想实现我自己版本的 facebook apprequest 对话框,如何使用 FB.ui({method: 'apprequests', display:'iframe',message:'xxxxx'}, function(r){}) ;所以它不会显示在页面上,我可以使用朋友列表,这样我就不必实现我自己的列表
谢谢 格雷姆
I would like to implement my own version of the facebook apprequest dialog, how can i use the FB.ui({method: 'apprequests', display:'iframe',message:'xxxxx'}, function(r){}); so it doesnt display on the page and I can use the friendlists so I dont have to implement my own list
Thanks
Graeme
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简而言之:你不能! (这是由于跨域策略,因为请求对话框将显示在
iframe
中,并且它的内容实际上无法访问)但是您可以模仿与 jQuery Facebook 多好友选择器 或通过 Graph API 调用请求用户好友详细信息以其他方式实现它到
https://graph.facebook.com/me/friends?access_token=...
In short: you can't! (this is due to cross-domain policy, since Requests Dialog will be displayed in
iframe
and it's content not really will be accessible)But you can imitate something that will look alike with jQuery Facebook Multi-Friend Selector or implement it in other ways by requesting user's friends details via Graph API call to
https://graph.facebook.com/me/friends?access_token=...