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?
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.
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.
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.
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.
You need to either itemise all the fields you want, or accept the defaults, there's no way to get 'defaults + these other fields'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With