Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to create a facebook page with graph api?

Tags:

facebook

Using the facebook graph API (or any other means) is there a way to POST a new facebook page programatically?

The "Publishing to Facebook" documentation of graph API suggest to me that you cannot.

like image 621
Sean Avatar asked Oct 21 '10 19:10

Sean


People also ask

Does Facebook use 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.

How do I create a Facebook Graph API?

Register as a Facebook Developer. A Facebook App – This app will be for testing so there is no need to involve your app code when creating this Facebook App. The Graph Explorer tool open in a separate browser window. A brief understanding of the structure of the Facebook Social Graph from our Graph API Overview guide.

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.

How do I get Facebook Page Insights on graph API?

You can access Page Insights by typing /insights after the name of your page in the URL field. This command will retrieve all of the Insights associated with your Page. Type "/insights" after your company name. Click the Submit button.


2 Answers

No. Facebook does not support the creation of Pages, Users, or Groups through any of their APIs. This is to prevent spam. The only way to create new pages is on facebook.com

like image 102
Nathan Totten Avatar answered Sep 18 '22 02:09

Nathan Totten


According to two different documentation pages, page creation via API is possible BUT app whitelisting is required. Curious if @DonRzeszut applied for said whitelisting.

1) Pages API - Getting Started

https://developers.facebook.com/docs/pages/getting-started#create-page

Use the /user/accounts edge to create a Facebook Page.

Requirements

You can only create a Page as a test user or if your app is whitelisted. (You can apply through your Facebook representative.)

2) Graph API - Pages

https://developers.facebook.com/docs/graph-api/reference/page/#Creating

Creating

To create a Page using the Pages API, your app must be whitelisted. Contact your Facebook representative to apply for this feature.

You can make a POST request to client_pages edge from the following paths:

/{business_id}/client_pages

like image 45
hodgeplodge Avatar answered Sep 21 '22 02:09

hodgeplodge