1

我正在尝试使用 facebook 提供的直接链接在我的墙上发布一些东西。帖子成功出现在我的墙上。但是,我似乎找不到一个好方法来向用户提供有关成功操作的反馈。我可以创建一个网页,上面写着“成功”或类似的内容,但我真的想在发布后显示该帖子。

facebook 开发人员参考中,它说在成功发布后它会在重定向链接中放置一个“post id”,但是应该redirect_uri使用它什么呢?

http://www.facebook.com/dialog/feed?app_id=123050457758183&
link=http://developers.facebook.com/docs/reference/dialogs/&
picture=http://fbrell.com/f8.jpg&
name=Facebook%20Dialogs&
caption=Reference%20Documentation&
description=Using%20Dialogs%20to%20interact%20with%20users.&
redirect_uri=http://www.facebook.com
4

1 回答 1

4

redirect_uri should point to your page where you will parse the post_id parameter out of URL arguments and do whatever you want, like redirect to the created post.

You may also want to use FB.ui({method:'feed'/*...*/}, callback) of JS-SDK to do all the work for you, so you'll be able to pick post_id in FB.ui callback instead of manually creating Feed Dialog URL and passing redirect_uri.

于 2012-09-06T09:54:23.170 回答