Facebook 自定义应用程序请求对话框

发布于 2024-12-27 13:58:20 字数 179 浏览 3 评论 0原文

我想实现我自己版本的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魄砕の薆 2025-01-03 13:58:20

简而言之:你不能! (这是由于跨域策略,因为请求对话框将显示在 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=...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文