开发者

Applications for a Facebook page

  • I own a page
  • I own an application
  • I added the application on the page (even though it does not appear on the application list of the page :/)

Is it possible to access t开发者_如何学Pythonhe page's full feed and post messages from the application using the GraphAPI with the token of my application ?

I have full access to this page when using my user's token though.

I'm using Koala (in Ruby). Here's the snippet I'm using:

oauth = Koala::Facebook::OAuth.new(FACEBOOK_APP_ID, FACEBOOK_APP_SECRET)
token = oauth.get_app_access_token
graph = Koala::Facebook::GraphAPI.new(token)
pp graph.get_connections(ENTRY_ID, "comments")

With this, I do not get all the comments on the ENTRY_ID.


Your application has to be granted "admin" access to the page. More specifically the "manage_pages" privilege. As an admin of the page, you could grant the app the appropriate privileges.

Scroll down to the "Page Login" section on this page. http://developers.facebook.com/docs/authentication/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜