web scraping - How to scrape user's facebook feed using Graph API? -


i'd scrape user's posts facebook. posts visible in browser, when i'm logged in , looking @ http://fb.com/username url. when i'm trying access same feed using graph api explorer (https://graph.facebook.com/v2.3/username/feed) i'm getting:

"error": {     "message": "(#803) cannot query users username (username)",      "type": "oauthexception",      "code": 803 } 

if try use id instead of username (http://graph.facebook.com/v2.3/userid/feed) i'm getting empty json in response:

{   "data": [   ] } 

so, there way user's feed using graph api? or have imitate web browser , parse html then?

you not supposed grab feed of user, public or not. need authorize user user_posts access feed - , feed only.

also, usernames not available in graph api anymore, need use app scoped id now. when authorize user.

btw, scraping not allowed @ all: https://www.facebook.com/apps/site_scraping_tos_terms.php


Popular posts from this blog