简体   繁体   中英

Getting Facebook status messages of a page I own

Say I have a page on Facebook and updating its status and posting on its wall. What I want is getting that data in json or xml format and use it on my own web page.

All the api docs I've read so far requires an access token, which I shouldn't need.

Twitter has a rest api like http://twitter.com/statuses/user_timeline/twitter_username.json?count=10 , which returns the data in json format. I need something like that.

Almost all Facebook graph API calls require an access token, including the page feed you seek. You can get the feed in json format like: https://graph.facebook.com/pageIdOrName/feed or https://graph.facebook.com/pageIdOrName/statuses but you will need to append an access_token querystring parameter. You can test this with the Facebook Graph API explorer , and you could even use that access_token if you don't want to create an application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM