哪个 Facebook API 调用会导致此结果?结果显示一个发布对话框
我以前问过这个问题,但以不同的方式,所以我希望这样问可以得到答案:)
什么 API 调用会导致出现以下对话框:
http://dl.dropbox.com/u/222489/publishdialog.png
通过使用 FB.ui({method: 'stream .publish' ...我得到的只是一个“发布到你的墙”对话框,所有出色的 Facebook 游戏都会在屏幕截图中得到该对话框,所以我一定使用了错误的函数。
I've asked this before, but in a different way, so I'm hoping asking it like this could get an answer :)
What API call results in this following dialog appearing:
http://dl.dropbox.com/u/222489/publishdialog.png
By using the FB.ui({method: 'stream.publish' ... function all I get is a "Post to Your Wall" dialog, and all great Facebook games get the dialog in the screenshot. So I must be using the wrong function.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不明白你是如何错过它的,这是 FB.ui 文档:
我的测试应用程序中的结果:
I don't understand how you've missed it, it's the first snippet of code in the FB.ui documentation:
Result in my test app:
它被称为 Feed Dialogue.. 它是 Facebook 的三个对话之一,使用用户交互来完成一些工作...
我不需要 API 调用(可以使用 Facebook.showFeedDialog,但现在 facebook 不支持它),而是将用户重定向到这些对话的 Url。
http://www.facebook.com/dialog/feed?<您作为查询字符串的不同属性>
如果将其放在您自己的页面中,您可以在
iFrame
通过设置属性display=iframe
但您需要一个访问令牌。这是完整的描述..
http://developers.facebook.com/docs/reference/dialogs/feed/
Its known as a Feed Dialogue.. its one of the Three Facebook Dialogues that use user interaction for doing some work...
ItI dosent need a API call (It was possible with
Facebook.showFeedDialog
but now facebook dosent support it) instead u redirect the user to the Url for these dialogues.http://www.facebook.com/dialog/feed?<your different attributes as quesry string>
For having this in your own page you Can open it in an
iFrame
by setting attributedisplay=iframe
but you need an access token for that..Here is a complete description..
http://developers.facebook.com/docs/reference/dialogs/feed/