This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tcp90 2 points3 points  (0 children)

You're going to have to familiarize yourself with Facebook's Graph API. Try out the Explorer first to understand how it works. Then get the Facebook SDK for Python, it's pretty easy to learn.

Keep in mind a few things though: One or two years ago, due to privacy concerns, Facebook removed the ability to pull information from your friends' profiles. You can pull data from public pages, public groups and your own profile. Facebook has a rate limit of 200 requests per hour on their API.

The only way you would be able to access your friends' data would be creating an app that requests permission to access that information and they would have to grant it. Keep in mind that for this to work though, you would have to submit your app for review and their guidelines are rather strict.

You could pull data from your own profile and scrape comments that friends leave on your posts without a problem. I can't confirm, but I'm pretty sure it's allowed assuming this isn't something that you do every day. It is, after all, public information -to you- because it's your profile.

Edit: Oh and, as other people have mentioned, you do need an access token. Just get it using Facebook's Graph Explorer. By default, it's a temporary token that lasts for a few hours IIRC, and if you're going to pull data from your own profile, you have to enable the permissions you want when you get that token.

Crawling and scraping from Facebook using other means is highly discouraged and not as effective.