PRODUCTS
DEVELOPER GUIDES
RESOURCES
ABOUT US
PRICING
GET STARTED
PRODUCTS
DEVELOPER GUIDES
RESOURCES
ABOUT US
PRICING
GET STARTED

Facebook Graph API alternative —
for getting public data from social media

Facebook Graph API alternative — for getting public data from social media

What is Facebook Graph API?
Facebook Graph API tutorial
Facebook Graph API explorer
Facebook Graph API data
Facebook Graph API search
What is Facebook Graph API?
Facebook Graph API tutorial
Facebook Graph API explorer
Facebook Graph API data
Facebook Graph API search
Facebook Graph API page
Facebook Graph API page
Facebook Graph API user
Facebook Graph API user
Facebook Graph API group
Facebook Graph API group
Facebook Graph API post
Facebook Graph API post
Facebook Graph API example
Facebook Graph API example
Facebook Graph API rate limit
Facebook Graph API rate limit
Facebook Graph API (Facebook public data API) is a widely used API and the basic tool to grab data from Facebook. Graph API Facebook emphasizes relationships linking data objects and those that hold data in themselves. Programmers can use it also for posting info, running ads, and carrying out a lot of other tasks.
Obtaining data is also the main focus of some private Facebook APIs. Facebook API from Data365 provides users with a large amount of data and gives some benefits and unique features compared with the official Facebook API.
Let us more closely examine how to apply Graph Facebook API to mine data and compare it with a private Facebook API by Data365.

There are several available Facebook Graph API versions for developers from v5.0 (introduced on October 29, 2019) up to v13.0 (introduced on February 8, 2022). A new version is released quarterly with some changes from the previous. These changes may also apply to other versions at a future date.
The major alteration of Facebook is revising its privacy policy and severely limiting access to data as a reply to the scandal over the illegal use of personal data by Cambridge Analytica in 2017 and high-profile investigations into Facebook's involvement in it.
Facebook admitted that made mistakes in operating with Cambridge Analytica and introduced measures that would impede companies and tools to gather data from Facebook users.

What is Facebook Graph API?

To begin operating with the Graph API to mine data, you need:

Facebook Graph API tutorial

to log in as a Facebook developer;
Facebook application (Facebook app) designed for testing, so you don't need to use your app code when building it);
Graph Explorer tool (we will talk about it in more detail below);
and knowledge of the main graph API principles.

Access token for Facebook API Graph: why do you need it?

Access tokens allow your app to access the Graph API. Almost all Graph API endpoints require one access token or another. So every time you access an endpoint, you may have to specify one at your request. They typically serve as follows:
providing your app access to the user information without requiring the password;
allowing recognize your app, its client, and the kind of data accessed by your application.
In different cases, use various types of access tokens, namely:
The user access token is used when an application calls an API to read, modify, or write Facebook data on behalf of a specific person.
1.
The application access token allows you to read and change application settings.
2.
The page access token is like the user access token but allows the API to read, write or change the data owned by the Facebook Page.
3.
A client access token is used to recognize the application.
4.
There are several ways to receive a Facebook Graph API access token. For more detailed info about Facebook Graph API get access token, you can view Facebook Graph API documentation.

With Data365.co, the process of getting access to data is much simpler. It is enough for the client to leave a request on the website, then our specialists contact you to learn about your business and needs (what data do you need, in what volumes, at what speed, how our product can be helpful, etc.). We will provide you with an access token and help you integrate our API into your application. We will also support you while using our API.

Facebook Graph API request

The Graph API is based on the HTTP protocol, so it works with any language that has an HTTP library, such as cURL and urllib. In other words, the Graph API can be used right in the browser. The official Graph API sends only GET requests to get data directly from Facebook.

API from Data365 is REST API which means sending two types of requests – POST and GET.
A POST request is a task to download data from Facebook into our database.
A GET request is a task to get data from our database. So we have an intermediate stage – downloading data – this affects the speed of receiving data – you will receive a response to your request within 1-5 minutes.

Our API can also be used in different languages, particularly JavaScript, Python, Curl, Go. For example, a POST request to download profile data in JavaScript for our Facebook API:
const query = new URLSearchParams({
access_token: 'YOUR_API_KEY_HERE'
}).toString();

const profileId = 'YOUR_profile_id_PARAMETER';
const resp = await fetch(
'https://api.data365.co/v1.1/facebook/profile/${profileId}/update?${query}',
{method: 'POST'}
);

const data = await resp.text();
console.log(data);
For more detailed info, you can view Data365 Facebook API documentation.
const query = new URLSearchParams({
access_token: 'YOUR_API_KEY_HERE'
}).toString();

const profileId = 'YOUR_profile_id_PARAMETER';
const resp = await fetch(
'https://api.data365.co/v1.1/
facebook/profile/${profileId}/update?${query}',
{method: 'POST'}
);

const data = await resp.text();
console.log(data);
For more detailed info, you can view Data365 Facebook API documentation.
With the API Graph Explorer Facebook, you can build and execute Graph API queries and view their responses.
You can use Facebook API Explorer for testing API requests with published application settings and with application settings in development mode using any sign-in permissions and features. And also to quickly generate access tokens, get request code samples and generate debugging information to include in support requests.

Private API from Data365 is primarily designed for integrating into the client's product, so we need not such a tool. After a joint call, we provide the client with an access token and help implement all the settings for successful integration.
During integration, we also provide access to the Postman platform.
This platform will help you test and fully introduce yourself to the functionality of the API: look at the formats of requests and responses, what data can be obtained for a particular request, etc.

An example of a POST request to download post data in Postman:

Facebook Graph API explorer

selecting of Social Media API (Facebook);
endpoint selection (post);
selecting a task for downloading data (create update task);
sending a request.
In this screenshot you can also see:
An example of a GET request to get post data in Postman:
In addition, Data365 Facebook API is completely based on HTTP methods, so to test our product, you can enter a request into the browser address and get a response in JSON format on a web page.
The name of the Graph API emphasizes the connection with the "social graph". The official Facebook API Graph consists of nodes (user, page, group, post, etc.) and fields (id, name, photo, etc.) that are node properties. Nodes can be used to retrieve data about a specific object, edges provide collections of objects associated with an individual object, and fields are designed to extract data about a single object or each object in a selection. In the documentation, both the nodes and the edges may be referred to as the endpoint.

To get specific fields in the response, you should point them out at the fields parameter in the Facebook Graph API request. But due to official Facebook API changes, you should have special permissions to get some fields.
Users can get from the official API highly restricted data due to Facebook's privacy policy. Examples of restricted data for privacy reasons you can find in the sections below.
In addition, there is a practice of special checks to gain access to data (paragraph Additional Review Required for Certain Permissions).

In the Data365 Facebook API response, you immediately get all the fields that are related to the node. Based on IDs or usernames, you can get data in bulk about Facebook public profiles. Also, using our Facebook API, you can download large amounts of post data based on their ID or target public pages, groups, or users.
We consider in detail in the following sections what data you can get with Data365 Facebook API.

What data is available through Facebook Graph API?

Since 2018, Facebook has severely limited its search functionality and at the moment developers can only search for similar pages using the Page API.
To use Facebook Graph API search, you need feature permissions to Page Public Content Access, which can only be obtained through the app review process. Besides, public content for official APIs search is limited to page content, such as id, name, location, link, and public posts on certain verified profiles. Also, there are some limitations on getting a page's profile picture.

Using the Data365 API, you can get the most comprehensive information set. Facebook API by Data365 provides search for posts, pages, and groups using keywords or phrases.

When searching for posts, you can apply the following parameters:

Facebook Search Graph API

Top – search for the most relevant posts;
Latest – search for latest posts;
Hashtag – search for posts containing a target hashtag.
As our Facebook search for posts does not support any logical operators (AND, OR, etc.) and stopwords, you should use query and query_lang parameters to remove non-relevant posts from received results. Query parameters include tagged location, author, date, text search query, language, and owner's profile type.
For more information, you can see the API documentation.

You can also search for Facebook profiles using the following methods: pages (search for the most relevant Facebook pages) or groups (search for the most relevant Facebook groups). More info you can find at https://api.data365.co/v1.1/facebook/docs#tag/Facebook-profiles-search.
You should use query parameters for filtering obtained results.

Facebook Graph API search query

Below you can see example of Facebook official API request to search pages for a keyword:
curl -i -X GET \
"https://graph.facebook.com/pages/search?q=Facebook
&fields=id,name,location,link
&access_token={access-token}"
Example of Facebook API from Data365 requests to search pages for a keyword or a phrase:
Since 2018, Facebook has severely limited its search functionality and at the moment developers can only search for similar pages using the Page API.
To use Facebook Graph API search, you need feature permissions to Page Public Content Access, which can only be obtained through the app review process. Besides, public content for official APIs search is limited to page content, such as id, name, location, link, and public posts on certain verified profiles. Also, there are some limitations on getting a page's profile picture.

Using the Data365 API, you can get the most comprehensive information set. Facebook API by Data365 provides search for posts, pages, and groups using keywords or phrases.

When searching for posts, you can apply the following parameters:

Facebook Search Graph API

Top – search for the most relevant posts;
Latest – search for latest posts;
Hashtag – search for posts containing a target hashtag.
As our Facebook search for posts does not support any logical operators (AND, OR, etc.) and stopwords, you should use query and query_lang parameters to remove non-relevant posts from received results. Query parameters include tagged location, author, date, text search query, language, and owner's profile type.
For more information, you can see the API documentation.

You can also search for Facebook profiles using the following methods: pages (search for the most relevant Facebook pages) or groups (search for the most relevant Facebook groups). More info you can find at https://api.data365.co/v1.1/facebook/
docs#tag/Facebook-profiles-search
.
You should use query parameters for filtering obtained results.

Facebook Graph API search query

Below you can see example of Facebook official API request to search pages for a keyword:
curl -i -X GET \
"https://graph.facebook.com/pages/
search?q=Facebook
&fields=id,name,location,link
&access_token={access-token}"
Example of Facebook API from Data365 requests to search pages for a keyword or a phrase:
POST request to download obtained pages:
https://api.data365.co/v1.1/facebook/search/{search_request}/profiles/pages/update?access_token={ACCESS_TOKEN}
GET request to get data of found pages:
https://api.data365.co/v1.1/facebook/search/{search_request}/profiles/pages/profiles?access_token={ACCESS_TOKEN}
POST request to download obtained pages:
https://api.data365.co/v1.1/facebook/search/{search_request}/
profiles/pages/update?access_token={ACCESS_TOKEN}
GET request to get data of found pages:
https://api.data365.co/v1.1/facebook/search/{search_request}/
profiles/pages/profiles?access_token={ACCESS_TOKEN}
POST request to download obtained pages:
https://api.data365.co/v1.1/facebook/
search/{search_request}/profiles/pages/
update?access_token={ACCESS_TOKEN}
GET request to get data of found pages:
https://api.data365.co/v1.1/facebook/
search/{search_request}/profiles/pages/
profiles?access_token={ACCESS_TOKEN}
You can use the pages API from Facebook to get page insights.
Facebook Graph API requirements of getting public page data vary based on the page's status, unpublished or published, and unrestricted or restricted. Restrictions include any visibility restrictions such as by age or region. Note that for restricted pages, the app user must also satisfy any restrictions in order for data to be returned.

Depending on the status of the page and the required data, different types of tokens are needed, namely App Access Token, User Access Token, or Page Access Token.

There are two permissions to get page data: pages_read_engagement and pages_read_user_content. Using these permissions, you can get the data from pages that belong to you. For pages that are not owned by you, only public data can be retrieved. And it also needs permissions Page Public Content Access (PPCA) or Page Public Metadata Access (PPMA). With them, you can view company metadata, public comments, posts, etc. The entire list of public data you can view here. It is marked by the sentence Can be read with Page Public Content Access or Page Public Metadata Access.

Example of page data request for Facebook Graph API:

Facebook Graph API page

curl -i -X GET "https://graph.facebook.com/PAGE-ID?access_token=ACCESS-TOKEN"
In case to work with Facebook API from Data365, you don't need any special permissions, and after requesting the page data, you will immediately receive all the data related to it. For example, using this API, you can get such data from the Facebook page as ID, username, full name, profile photo url, biography (about), phone, address, latitude, longitude, categories, follower count, like count, external url, etc.

Below you can see page data request examples for our Facebook API:
POST request to download page data:
https://api.data365.co/v1.1/facebook/profile/{page_id}/update?access_token={ACCESS_TOKEN}
GET request to get page data:
https://api.data365.co/v1.1/facebook/profile/{page_id}?access_token={ACCESS_TOKEN}
POST request to download page data:
https://api.data365.co/v1.1/facebook/
profile/{page_id}/update?access_token={ACCESS_TOKEN}
GET request to get page data:
https://api.data365.co/v1.1/facebook/
profile/{page_id}?access_token={ACCESS_TOKEN}
With Facebook Graph API you can get fields and edges on a user. The public profile permission allows apps to get the following fields: id, first name, last name, middle name, name, name format, picture, short name. But other kinds of data can only be obtained from a profile that belongs to you.

Facebook API by Data3656 ensures you with such user data as id, username, full name, biography (about), workplace, education, current city, hometown, friend count, follower count, profile photo url, etc.
And some zingy things that you can get using our Facebook API are gender and age recognition by the user's latest photo.

Facebook Graph API user

Facebook Graph API get username

Since version 2.0, Facebook has closed access to usernames from their API. As opposed to the official Facebook API, we can provide our client with a username and also other full information on the user based on user ID.
To get the username, you should send requests including the user_id, namely:
POST request to download user data:
https://api.data365.co/v1.1/facebook/profile/{user_id}/update?access_token={ACCESS_TOKEN}
GET request to receive user data:
https://api.data365.co/v1.1/facebook/profile/{user_id}?access_token={ACCESS_TOKEN}
POST request to download user data:
https://api.data365.co/v1.1/facebook/
profile/{user_id}/update?access_token={ACCESS_TOKEN}
GET request to receive user data:
https://api.data365.co/v1.1/facebook/
profile/{user_id}?access_token={ACCESS_TOKEN}
The group API lets you read and create Facebook group data on behalf of group members.
If a group administrator installs your app in a group, you can both get access to group content, such as posts, photos, and videos, and post info to the group.
With Official Graph API, you can get information about a single group object, namely id and name of the group, cover and icon, description, member count, etc.
Access to public and private groups requires a user access token, to secret groups - a group administrator access token.
If you want to get the data of group members, you need permission groups_access_member_info. Administrators can also let you grab group members' public info if they would like to share their public information with your app in the group.

Our Facebook API ensures you with any public groups data. You can get such profile group info as id, username, full name, biography (about), group photo URL, phone, current city, categories, language, member count, etc.

Facebook Graph API group

you must have a User access token;
the application must be approved to use the Groups API;
the app must be installed on the Group.

Facebook Graph API group feed

The official API provides you posts (including status updates and links) owned by this group.

An example of Facebook Graph API group posts request:
GET /v13.0/{group-id}/feed HTTP/1.1
Host: graph.facebook.com
This query returns a list of group posts. To receive group posts, the following requirements must be met:
We also provide the ability to get group posts. To do this, you need to specify the Facebook ID or username of the target group in the request.

Below you can see our query examples.
Data365 Facebook API requests for group posts:
POST request to download group data along with posts:
https://api.data365.co/v1.1/facebook/profile/{group_id}/update?load_feed_posts=1&max_posts=100&access_token={ACCESS_TOKEN}
GET request to get group posts:
https://api.data365.co/v1.1/facebook/profile/{group_id}/feed/posts?max_page_size=100&access_token={ACCESS_TOKEN}
More detailed info about what post data we ensure you can find in the section below.
POST request to download group data along with posts:
https://api.data365.co/v1.1/facebook/
profile/{group_id}/update?load_feed_posts=1&max_posts=100
&access_token={ACCESS_TOKEN}
GET request to get group posts:
https://api.data365.co/v1.1/facebook/
profile/{group_id}/feed/posts?max_page_size=100
&access_token={ACCESS_TOKEN}
More detailed info about what post data we ensure you can find in the section below.
The official API can provide an individual post in a profile's feed. The profile could be a user, page, app, or group.
Depending on the post owners, you need the appropriate permission:

Facebook Graph API post

A page access token can read all posts posted to or posted by that page.
A user access token can read any post your application created on behalf of that user.
A user's post can be read if the owner has granted the user_posts permission.
A user access token may read a post that the user is tagged in if they have granted the user_posts permission.
You can see the list of post data that you can get here.

Applying Data365 Facebook API you can get bulk post data based on the ID or target public pages. Firstly, you can obtain different content from the post (text, language, list of hashtags, list of tagged users, owner ID).
Also, you can retrieve a number of shares, likes, comments, and reactions by type as well as a detailed list of reactors and shares for a post regardless of who is the owner of the post. The official API gives data on reactions but they are very limited. A user or page can only query their own reactions. Other users' or pages' reactions are unavailable due to privacy concerns.
You can download selected comments and comments from a specific post. Besides, URLs of attachments (videos, images, previews, posts, links, etc.) are also available.

We provide useful information about:
post comments – you can get text, reactions to comments, owner, etc. To increase the quality of data, you can limit them by date and time, and choose query language as well. Then defines a field to order items by and sort direction. Detailed info at https://api.data365.co/v1.1/facebook/docs#tag/Facebook-post/paths/~1facebook~1post~1{post_id}~1comments/get.
post reactors – you can obtain info on the profiles of those who responded to the post – id, biography, photo, etc.
post comments – you can get text, reactions to comments, owner, etc. To increase the quality of data, you can limit them by date and time, and choose query language as well. Then defines a field to order items by and sort direction. Detailed info at https://api.data365.co/v1.1/facebook/docs#tag/
Facebook-post/paths/~1facebook~1post~1{post_id}
~1comments/get
.
post reactors – you can obtain info on the profiles of those who responded to the post – id, biography, photo, etc.
post comments – you can get text, reactions to comments, owner, etc. To increase the quality of data, you can limit them by date and time, and choose query language as well. Then defines a field to order items by and sort direction. Detailed info at https://api.data365.co/v1.1/
facebook/docs#tag/Facebook-post/paths/~1facebook~1post
~1{post_id}~1comments/get
.
post reactors – you can obtain info on the profiles of those who responded to the post – id, biography, photo, etc.

Facebook Graph API get a post like count

The official Facebook API gives only a list of people who have liked the object and a list of pages that the page or user has liked.
To get a number of likes Facebook Graph API suggests choosing the likes field and using the /object/reactions endpoint. This means that likes are counting within reactions.
Reactions are considered for such objects as a comment, page post, post. A user or page can only query their own reactions, not other users' or pages' reactions due to privacy concerns. So, based on the official statement, we should conclude that users can receive a limited number of likes for the post because Facebook Graph API only gives the reactions that you set yourself.

Opposite to API Graph Facebook, Data365 Facebook API provides the number of likes along with the post data. More detailed info about what post data is available for our API users you can read above at the section Facebook Graph API post.

Facebook Graph API get latest comments

With the official Facebook Graph API, you can get comment data based on the comment ID.
Also, the Facebook API Graph ensures you get comments based on the object ID for which you want to get comments, namely: album, a comment, link, page, publication of the page, a photo, etc.
Similar to the reactions counting, you can get comments but limited because a user can only query their own comments, not other ones due to privacy concerns.
To retrieve other comments or a comment which is a reply to another comment, you need to have the same permissions as viewing its parent object or the parent object of the original comment respectively.

Facebook API by Data365 provides only comments to the posts.
Upon the client's individual request, we can add receiving comment data based on the comment ID.
To get the latest comments with the official Facebook Graph API, you can specify the reverse_chronological parameter in the request.
Our API can also ensure you with the latest comments. You can sort comments from the newest to the oldest by specifying the order by parameter.

Our requests to download and receive comments on the post:
POST request to download a post with comments:
https://api.data365.co/v1.1/facebook/post/{post_id}/update?load_comments=1&max_comments=100&access_token={ACCESS_TOKEN}
GET request to get comments on a post, sorted from the newest to the oldest:
https://api.data365.co/v1.1/facebook/post/{post_id}/comments?max_page_size=100&order_by=date_desc&access_token={ACCESS_TOKEN}
POST request to download a post with comments:
https://api.data365.co/v1.1/facebook/
post/{post_id}/update?load_comments=1&max_comments=100
&access_token={ACCESS_TOKEN}
GET request to get comments on a post, sorted from the newest to the oldest:
https://api.data365.co/v1.1/facebook/
post/{post_id}/comments?max_page_size=100&order_by=date_desc
&access_token={ACCESS_TOKEN}
Let's consider an example of applying the Graph API Facebook to search for pages and compare it with the Facebook API from Data365.
You can use search for a page to grab info about Facebook pages, specifically names, locations, etc. Using the official API, you can retrieve pages to @mention, page locations, and mark a page to show content.
If you're already signed in, you'll need the user's access token and application secret to create an API query. If you are not checking in, then you need an application access token with the ability to admit to the page's public metadata or the page's public content.
The official API gives a list of pages that fit the request criteria. You can add any fields you need in the page response.

Below you can see a Graph API Facebook example of query and response.

Facebook Graph API example

curl -i -X GET \
"https://graph.facebook.com/pages/search?q=Facebook
&fields=id,name,location,link
&access_token={access-token}"
Sample Response
Sample Request
{
"data": [
{
"id": "309968765748101",
"name": "Facebook HQ",
"location": {
"city": "Menlo Park",
"country": "United States",
"latitude": 37.483183,
"longitude": -122.149999,
"state": "CA",
"street": "1 Hacker Way",
"zip": "94025"
},
"link": "https://www.facebook.com/Facebook-HQ-166793820034304/"
},
{
"id": "194776097220801",
"name": "Facebook Seattle",
"location": {
"city": "Seattle",
"country": "United States",
"latitude": 47.628293260721,
"longitude": -122.34263420105,
"state": "WA",
"street": "1101 Dexter Ave N",
"zip": "98109"
},
"link": "https://www.facebook.com/fbseattle/"
},
...
]
}
Data365 Facebook API lets you search pages by keyword or phrase:
Let's consider an example of applying the Graph API Facebook to search for pages and compare it with the Facebook API from Data365.
You can use search for a page to grab info about Facebook pages, specifically names, locations, etc. Using the official API, you can retrieve pages to @mention, page locations, and mark a page to show content.
If you're already signed in, you'll need the user's access token and application secret to create an API query. If you are not checking in, then you need an application access token with the ability to admit to the page's public metadata or the page's public content.
The official API gives a list of pages that fit the request criteria. You can add any fields you need in the page response.

Below you can see a Graph API Facebook example of query and response.

Facebook Graph API example

curl -i -X GET \
"https://graph.facebook.com/pages/
search?q=Facebook
&fields=id,name,location,link
&access_token={access-token}"
Sample Response
Sample Request
{
"data": [
{
"id": "309968765748101",
"name": "Facebook HQ",
"location": {
"city": "Menlo Park",
"country": "United States",
"latitude": 37.483183,
"longitude": -122.149999,
"state": "CA",
"street": "1 Hacker Way",
"zip": "94025"
},
"link": "https://www.facebook.com/
Facebook-HQ-166793820034304/"
},
{
"id": "194776097220801",
"name": "Facebook Seattle",
"location": {
"city": "Seattle",
"country": "United States",
"latitude": 47.628293260721,
"longitude": -122.34263420105,
"state": "WA",
"street": "1101 Dexter Ave N",
"zip": "98109"
},
"link": "https://www.facebook.com/
fbseattle/"
},
...
]
}
Data365 Facebook API lets you search pages by keyword or phrase:
POST request to download the found pages:
https://api.data365.co/v1.1/facebook/search/toyota/profiles/pages/update?max_profiles=100&access_token={ACCESS_TOKEN}
GET request to get data of found pages:
https://api.data365.co/v1.1/facebook/search/toyota/profiles/pages/profiles?max_page_size=100&access_token={ACCESS_TOKEN}
A response example with the data of the pages found:
{
"data": {
"items": [
{
… … … … … …
"biography": "With Toyota, one thing has never changed—our commitment to the communities where we do business. We've spent over $15 billion on R&D, design, manufacturing, sales and marketing operations. Along with our dealers and suppliers, we've created hundreds of thousands of U.S. jobs. Learn a bit more about our thriving company. And become a part of our shared story today.",
"full_name": "Toyota Corolla",
"id": "10571619941",
"likes_count": 70000,
"profile_photo_thumb_big_url": "https://scontent.fiev22-2.fna.fbcdn.net/v/t1.18169-1/1000428_10151959129009942_347719458_n.jpg?stp=c85.25.310.310a_cp0_dst-jpg_s60x60&_nc_cat=110&ccb=1-5&_nc_sid=1eb0c7&_nc_ohc=Hy8m7Y1wWEsAX-sxlSD&_nc_ht=scontent.fiev22-2.fna&oh=00_AT9BGWVuO_5LJieQZYYtR4a50urdOa4asfn01wlt8BN2lQ&oe=62608F5E",
"profile_type": "page",
"username": "Toyota-Corolla-10571619941",
… … … … … …
}
],
"page_info": {
"cursor": "aWRfYXNjfDEwNTcxNjE5OTQx",
"has_next_page": true
}
},
"error": null,
"status": "ok"
}
POST request to download the found pages:
https://api.data365.co/v1.1/facebook/search/toyota/profiles/pages/
update?max_profiles=100&access_token={ACCESS_TOKEN}
GET request to get data of found pages:
https://api.data365.co/v1.1/facebook/search/toyota/profiles/pages/
profiles?max_page_size=100&access_token={ACCESS_TOKEN}
A response example with the data of the pages found:
{
"data": {
"items": [
{
… … … … … …
"biography": "With Toyota, one thing has never changed—our commitment to the communities where we do business. We've spent over $15 billion on R&D, design, manufacturing, sales and marketing operations. Along with our dealers and suppliers, we've created hundreds of thousands of U.S. jobs. Learn a bit more about our thriving company. And become a part of our shared story today.",
"full_name": "Toyota Corolla",
"id": "10571619941",
"likes_count": 70000,
"profile_photo_thumb_big_url":
"https://scontent.fiev22-2.fna.fbcdn.net/v/t1.18169-1/1000428_10151959129009942_347719458_n.jpg?
stp=c85.25.310.310a_cp0_dst-jpg_s60x60&_nc_cat=110&ccb=1-5&_nc_sid=1eb0c7&_nc_ohc=Hy8m7Y1wWEsAX-sxlSD&_nc_ht=
scontent.fiev22-2.fna&oh=
00_AT9BGWVuO_5LJieQZYYtR4a50urdOa4asfn01wlt8BN2lQ&oe=
62608F5E",
"profile_type": "page",
"username": "Toyota-Corolla-10571619941",
… … … … … …
}
],
"page_info": {
"cursor": "aWRfYXNjfDEwNTcxNjE5OTQx",
"has_next_page": true
}
},
"error": null,
"status": "ok"
}
POST request to download the found pages:
https://api.data365.co/v1.1/facebook/
search/toyota/profiles/pages/update?max_profiles=100&access_token={ACCESS_TOKEN}
GET request to get data of found pages:
https://api.data365.co/v1.1/facebook/
search/toyota/profiles/pages/profiles?max_page_size=100&access_token={ACCESS_TOKEN}
A response example with the data of the pages found:
{
"data": {
"items": [
{
… … … … … …
"biography": "With Toyota, one thing has never changed—our commitment to the communities where we do business. We've spent over $15 billion on R&D, design, manufacturing, sales and marketing operations. Along with our dealers and suppliers, we've created hundreds of thousands of U.S. jobs. Learn a bit more about our thriving company. And become a part of our shared story today.",
"full_name": "Toyota Corolla",
"id": "10571619941",
"likes_count": 70000,
"profile_photo_thumb_big_url":
"https://scontent.fiev22-2.fna.fbcdn.net/v/t1.18169-1/1000428_ 10151959129009942
_347719458_n.jpg?stp=c85.25.310.310a_cp0
_dst-jpg_s60x60&_nc_cat=110
&ccb=1-5&_nc_sid=1eb0c7&_nc_
ohc=Hy8m7Y1wWEsAX-sxlSD
&_nc_ht=scontent.fiev22-2.fna
&oh=00_AT9BGWVuO_5LJieQZYYtR4a
50urdOa4asfn01wlt8BN2lQ
&oe=62608F5E",
"profile_type": "page",
"username": "Toyota-Corolla-10571619941",
… … … … … …
}
],
"page_info": {
"cursor": "aWRfYXNjfDEwNTcxNjE5OTQx",
"has_next_page": true
}
},
"error": null,
"status": "ok"
}
Note that once you receive the page ID or username, you can also submit requests for more information. Namely:
All available data about the page. The list of data we indicated earlier in the Facebook Graph API page section.
List of posts belonging to the page.
List of post comments belonging to the page.
For example, requests for more information for the page with ID=10571619941 from our sample:
POST request to download all page data, posts and comments:
https://api.data365.co/v1.1/facebook/profile/10571619941/update?load_feed_posts=1&max_posts=100&load_comments=1&max_comments=50&access_token={ACCESS_TOKEN}
POST request to download all page data, posts and comments:
https://api.data365.co/v1.1/facebook/profile/10571619941/
update?load_feed_posts=1&max_posts=100&load_comments=1
&max_comments=50&access_token={ACCESS_TOKEN}
POST request to download all page data, posts and comments:
https://api.data365.co/v1.1/facebook/
profile/10571619941/update?load_feed_posts=1&max_posts=100
&load_comments=1&max_comments=50
&access_token={ACCESS_TOKEN}
GET request to get information about the page:
https://api.data365.co/v1.1/facebook/profile/10571619941?access_token={ACCESS_TOKEN}
GET request to get information about the page:
https://api.data365.co/v1.1/facebook/
profile/10571619941?access_token={ACCESS_TOKEN}
GET request to get a list of recent posts from a page:
https://api.data365.co/v1.1/facebook/profile/toyota/feed/posts?max_page_size=100&order_by=date_desc&access_token={ACCESS_TOKEN}
GET request to get a list of recent posts from a page:
https://api.data365.co/v1.1/facebook/
profile/toyota/feed/posts?max_page_size=100&order_by=date_desc
&access_token={ACCESS_TOKEN}
GET request to get a list of recent comments on a page post:
https://api.data365.co/v1.1/facebook/post/10160137828049201/comments?max_page_size=100&order_by=date_desc&access_token={ACCESS_TOKEN}
GET request to get a list of recent comments on a page post:
https://api.data365.co/v1.1/facebook/
post/10160137828049201/comments?max_page_size=100&order_by=date_desc
&access_token={ACCESS_TOKEN}
For a certain period of time, the number of Facebook Graph API calls is limited. Upon reaching the limit, any further application requests will decline.
Graph API requests through an app access token are included in the total number of application calls and are subject to the application's rate limit.
Graph API requests through a user's access token are included in the total number of calls made by the user.

Our Facebook API has a limit on the amount of data in 1 request:

Facebook Graph API rate limit

for Posts per profile – up to 500 posts in 1 request;
for Posts per search – up to 300 posts in 1 request;
for Comments per post – 500+ comments in 1 request.

Facebook Graph API pricing

Facebook doesn't have whole fixed pricing. The Facebook API Graph using cost is determined for each company individually and depends on many criteria (for example, the type of data that the company wants to receive, the amount of profit that the company receives from using Facebook data).

But our pricing is simpler and depends on what and how much data you want to receive per month. To account for the requested data, we introduced the mentioned indicator. Each data type has its own mention value. You can use our mentions calculator to determine your intake. In the calculator, you can choose what data and how much you want to receive, and as a result, you will get the total amount of data. Knowing your consumption volume, you can compare it with our pricing and find out how much our API will cost for you.
We are sure that our prices are significantly lower compared to Facebook prices.
And it can make up to 100 such requests per second.
Response time is usually 1-5 minutes, depending on the volumes of data in the request.