哪个 Facebook API 调用会导致此结果?结果显示一个发布对话框

发布于 2024-10-11 10:11:41 字数 323 浏览 3 评论 0原文

我以前问过这个问题,但以不同的方式,所以我希望这样问可以得到答案:)

什么 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 技术交流群。

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

发布评论

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

评论(2

羁绊已千年 2024-10-18 10:11:41

我不明白你是如何错过它的,这是 FB.ui 文档:

FB.ui(
   {
     method: 'feed',
     name: 'Facebook Dialogs',
     link: 'http://developers.facebook.com/docs/reference/dialogs/',
     picture: 'http://fbrell.com/f8.jpg',
     caption: 'Reference Documentation',
     description: 'Dialogs provide a simple, consistent interface for applications to interface with users.',
     message: 'Facebook Dialogs are easy!'
   },
   function(response) {
     if (response && response.post_id) {
       alert('Post was published.');
     } else {
       alert('Post was not published.');
     }
   }
);

我的测试应用程序中的结果:
替代文本

I don't understand how you've missed it, it's the first snippet of code in the FB.ui documentation:

FB.ui(
   {
     method: 'feed',
     name: 'Facebook Dialogs',
     link: 'http://developers.facebook.com/docs/reference/dialogs/',
     picture: 'http://fbrell.com/f8.jpg',
     caption: 'Reference Documentation',
     description: 'Dialogs provide a simple, consistent interface for applications to interface with users.',
     message: 'Facebook Dialogs are easy!'
   },
   function(response) {
     if (response && response.post_id) {
       alert('Post was published.');
     } else {
       alert('Post was not published.');
     }
   }
);

Result in my test app:
alt text

顾北清歌寒 2024-10-18 10:11:41

它被称为 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 iFrameby setting attribute display=iframe but you need an access token for that..

Here is a complete description..

http://developers.facebook.com/docs/reference/dialogs/feed/

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