Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Graph Api -- Can I get the "default" fields plus some?

When I make a request to https://graph.facebook.com/me -- I get a large JSON object with lots of good data in it.

However, I want to also get the user's cover photo (if it exists). Is there a way to do this, while also retaining the default fields?

For instance: https://graph.facebook.com/me?fields=cover -- returns just the cover image.

If I use one field, do I need to specify exactly the other fields that I need?

like image 806
Paul Avatar asked Apr 30 '12 19:04

Paul


People also ask

Is Facebook Graph API deprecated?

Graph API Version Deprecations: November 2, 2021: Graph API v4. 0 will be deprecated and removed from the platform. February 3, 2022: Graph API v5. 0 will be deprecated and removed from the platform.

What data can I get from Facebook Graph API?

The Facebook Graph API is all about getting data into and out of Facebook. With this API, you can query data and create powerful dashboards to understand your content and audience better. For example, you can extract information from your own Page that shows who wrote each post and how many people liked it.

Is Facebook Graph API RESTful?

The Legacy REST API is in the process of being deprecated, while the Graph API is the most current, so if you're unsure of which one to use, your best bet is to go with that one. As you suggested, the Graph API, just like the Legacy REST API, is in fact a RESTful API.

What 3 terms does Facebook use to describe what the graph API is composed of?

The Graph API is named after the idea of a "social graph" — a representation of the information on Facebook. It's composed of nodes, edges, and fields.


1 Answers

You need to either itemise all the fields you want, or accept the defaults, there's no way to get 'defaults + these other fields'

like image 118
Igy Avatar answered Jan 01 '23 13:01

Igy