我试图在Facebook墙上发布一个Feed,但是在我是管理员的粉丝页面(而不是个人页面)。
这样做的正确方法是什么?当我使用fbrell.com/fb.ui/feed
访问fb时,Facebook会登录到我的个人帐户,但似乎无法登录我管理的其他页面。
我看到"发布到一个Page",这似乎是请求发布到另一个页面的权限的正确API,这是正确的道路吗?
我的代码适用于个人页面:
<h1>feed</h1>
<p>
Publishing to the stream is easy, as all the fields are optional. Just specify
what you need, and leave the rest out.
</p>
<script>
var publish = {
method: 'feed',
message: 'getting educated about Facebook Connect',
name: 'Connect',
caption: 'The Facebook Connect JavaScript SDK',
description: (
'A small JavaScript library that allows you to harness ' +
'the power of Facebook, bringing the user\'s identity, ' +
'social graph and distribution power to your site.'
),
link: 'http://www.fbrell.com/',
picture: 'http://www.fbrell.com/public/f8.jpg',
actions: [
{ name: 'fbrell', link: 'http://www.fbrell.com/' }
],
user_message_prompt: 'Share your thoughts about RELL'
};
FB.ui(publish, Log.info.bind('feed callback'));
</script>
如果我在管理员的粉丝页面中发帖,我需要做些什么?
谢谢。
答案 0 :(得分:0)
以下是发布到您管理的网页的完整工作示例 - http://www.fbrell.com/Graph%20API/4%20-%20Page%20Admin
基本上您应该在https://developers.facebook.com/docs/graph-api/reference/v2.3/page/feed
使用图APIPOST /v2.3/{page-id}/feed HTTP/1.1
Host: graph.facebook.com
message=This+is+a+test+message