Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Graph API : get larger pictures in one request

I'm currently using the Graph API Explorer to make some tests. That's a good tool.

I want to get the user's friend list, with friends' names, ids and pictures. So I type :

https://graph.facebook.com/me/friends?fields=id,picture,name 

But picture is only 50x50, and I would like a larger one in this request.

Is it possible ?

like image 583
Martin Avatar asked May 18 '12 10:05

Martin


People also ask

Is Facebook Graph API deprecated?

API Version Deprecations: As part of Facebook's Graph API and Marketing API, please note the upcoming deprecations: August 3, 2021: Graph API v3. 3 will be deprecated and removed from the platform. August 25, 2021 Marketing API v9.

What data can I get from Facebook Graph API?

The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.

Is Facebook Graph API RESTful?

As you suggested, the Graph API, just like the Legacy REST API, is in fact a RESTful API.


1 Answers

As described in this bug on Facebook, you can also request specific image sizes now via the new API "field expansion" syntax.

Like so:

https://graph.facebook.com/____OBJECT_ID____?fields=picture.type(large) 
like image 176
thaddeusmt Avatar answered Sep 24 '22 19:09

thaddeusmt