Facebook发布通过图形API

问题描述:

我使用此代码授权我与我的应用程序Facebook发布通过图形API

https://graph.facebook.com/oauth/authorize?client_id=myappid&scope=publish_stream,offline_access,manage_pages&method=post&redirect_uri=http://www.site.com/indexold.html

我得到的访问令牌,我用这个做模拟伎俩

https://graph.facebook.com/oauth/access_token?client_id=myappid&client_secret=myappsecret&redirect_uri=http://www.poemsofloveapp.com/indexold.html

最后我用它贴到我的页面...不是应用页面,而是我创建的一个页面 https://graph.facebook.com/mypageid/feed?access_token=1234|asdasdasdasd&message=hello%20world&method=post

该帖子成功,但显示为我发布了它。我希望在帖子旁边显示该组的个人资料图片,这可能吗?相反,我的显示旁边的帖子!

您正在查找的是在facebook图形API术语中称为impersonation

检查here

而且,还here

+0

非常感谢你这么多小时我得到它后:) – stefanosn 2011-05-22 12:44:10