Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Facebook Graph API considered a RESTful API?

Tags:

rest

facebook

It seems that the old Facebook API was called the "REST API", while the new one is called the "Graph API". I wonder if the new Graph isn't a RESTful API as well? It seems like it conforms to the guiding principles of the REST interface, or am I wrong?

Thanks!

Joel

like image 649
Joel Avatar asked Jan 01 '11 11:01

Joel


People also ask

Is Facebook Graph API a REST API?

Yes, it is a REST API as well. Show activity on this post. Yes, there have been 3 Facebook API's to date: Legacy REST.

Is Graph API a REST API?

In Azure AD - Rest API And Graph API are the same thing. Azure AD Graph is the Rest API for Azure AD.

What type of API is Facebook?

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.

What is REST API Facebook?

The API allows applications to use the social connections and profile information to make applications more involving, and to publish activities to the news feed and profile pages of Facebook, subject to individual users privacy settings.


2 Answers

Yes, it is a REST API as well.

like image 93
Bozho Avatar answered Sep 24 '22 01:09

Bozho


Yes, there have been 3 Facebook API's to date:

  • Legacy REST
  • FQL
  • Graph API

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. It is my understanding that they now refer to their earlier REST API as the "Legacy REST" API in order to minimize confusion and distinguish it from the newer RESTful API (the Graph API).

like image 42
Ryan Shea Avatar answered Sep 23 '22 01:09

Ryan Shea