I want to connect to public facebook page or group and list all entries from the wall on a personal website. I will use PHP on my server so that would be the best solution for me. Or javascript.
Could anyone explain or perhaps give a working code on how to do this? Or just all steps nessesary for making this?
If its possible to handle information about person, date, description ... for each post, that would be great! So my layout could be customized.
Thanks for helping me out here!
The Pages API allows apps to create and manage a Page's settings and content. Using this API, an app can create and get Posts, get Comments on Page-owned content, get Page insights, update actions that Users are able to perform on a Page, and more.
Visible: Anyone can find the group in search and other places on Facebook. Hidden: Only members can find the group in search and other places on Facebook. Keep in mind that public groups can only be visible.
To get a list of wall stream items, do an HTTP Get to http://graph.facebook.com/me/wall?access_token=ValidUserAccessToken for the current user. To get a list of home feed stream items, do an HTTP Get to http://graph.facebook.com/me/home?access_token=ValidUserAccessToken for the current user.
You need to run FQL on stream table
and provide id of a page or group you are interested in as source_id
(fb docs have some explanation and examples). Once you get stream data you can dig deeper and get user who left this post or any other data you need again through FQL.
There are many ways of running FQL - it could be done in JS API, PHP API, or through old REST API.
use the facebook graph api urls that they provide
python code using simplejson parser
keyword="old spice"
searchurl='http://graph.facebook.com/search?q='+keyword
resp=urllib2.urlopen(searchurl)
pageData=resp.read()
json = simplejson.loads(pageData)
posts=json['data']
for p in posts:
postid=p['id']
username=p['from']['name']
posterimg=p['icon']
comment=p['message']
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With