简体   繁体   中英

Get Facebook user's details and big profile picture in one call

I can get in one call /me details including picture , email , name .
But URL returned is of an extremely small picture (50px*50px).

I know I can make additional call to get bigger image with something like:

.../me/picture?width=999

But is it possible to combine it with:

https://graph.facebook.com/v2.5/me?fields=id,relationship_status,picture,email,gender,first_name,last_name,significant_other

to receive all this information in one request-response instead of two?

Here you go:

https://graph.facebook.com/v2.6/me?fields=id,relationship_status,picture.width(999),email,gender,first_name,last_name,significant_other

You can make nested requests by following this:

https://developers.facebook.com/docs/graph-api/using-graph-api#fieldexpansion

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