简体   繁体   中英

Fetch facebook user public data, which available without loggining througth Facebook Graph API if any exists

I want to have additional public data for Facebook user, which is available on Facebook without logging. When I trying to get user data with Facebook Graph API I receive only few fields. But when I open user's Facebook page in browser(without logging on Facebook) it seems to give more additional data.

Example https://www.facebook.com/juancarlos.rios.31 has more data than https://graph.facebook.com/juancarlos.rios.31 . I use Graph API with access token and user page accessing on browser even not logging in Facebook.

Can anybody help with getting additional information?

Graph API response :

{
 "id": "1148615503",
 "name": "Juan Carlos Rios",
 "first_name": "Juan Carlos",
 "last_name": "Rios",
 "link": "link here",
 "username": "juancarlos.rios.31",
 "gender": "male",
 "locale": "es_LA"
}

when user page has additional info: books, music etc.

This isn't possible unless you have an access token. The public graph doesn't reflect the browser information it reflects what is given in the documentation

https://developers.facebook.com/docs/reference/api/user/

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