How do I access Facebook wall feed in python?

10,117

Solution 1

You can pull the content in your profile feed (wall) as a JSON object using the Facebook Graph API. You can check out the details here: http://developers.facebook.com/docs/reference/api/

Solution 2

Like McOcoonor said you should use the Facebook Graph API as documented here: http://developers.facebook.com/docs/reference/api/

If you want your application to have continuous, long-term access to your Facebook information then you need to add the offline_access permission flag to when the app requests the access token. Documented here: https://developers.facebook.com/docs/authentication/permissions/

For doing this all in Python you might be interested in this S.A. Question: Facebook Graph API and Django.

Share:
10,117
TheBestJohn
Author by

TheBestJohn

I'm a developer. I work with PHP, HTML, CSS and JavaScript. I dabble in Python and I'm here to help where I can

Updated on June 17, 2022

Comments

  • TheBestJohn
    TheBestJohn almost 2 years

    I am trying to make a little desktop alert script that will tell me if there is a new post on my Facebook page's wall. It would be nice to see if I'm getting any new likes as well but really I mostly want to access my wall feed.

    I don't need help parsing it or anything like that (I'm literally just going to compare a stored feed with how it is currently to see if there is a change once every 2 minutes or so) I just need to know how to access it.

  • TheBestJohn
    TheBestJohn almost 13 years
    gotten to that part already. The access token from graph.facebook.com/me/feed has a expiry and dies every 15 minutes or so. I have read through for a few hours and thought there had to be a really simple way that someone possibly knew of.
  • Michael C. O'Connor
    Michael C. O'Connor almost 13 years
    Ah, yes, that is a bit trickier. Check out this answer: stackoverflow.com/questions/1059640/… believe that may help you out.
  • TheBestJohn
    TheBestJohn almost 13 years
    Now that was a huge pain in the ass... thanks for the help! Why they make it such a pain is beyond me.. I was 10 seconds away from writing a scraper...
  • TheBestJohn
    TheBestJohn almost 13 years
    Thanks for the input. It's funny you linked to that Question because I was already using simplejson to grab the info pretty much exactly like that... the only thing is it puts it into a dictionary with only 2 keys... 'data' and 'pages' where data has what you really want to be a dictionary in it.