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

Viewed 10189

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.

4 Answers

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

2018 update: I believe this is currently possible in the Graph API.

I haven't tested it personally, but Facebook's documentation explains that pages can be created via the /me/accounts edge:

You can make a POST request to accounts edge from the following paths: /{user_id}/accounts

Please let us know in the comments if this works as expected.

UPDATE: Seems to only work for test users at the moment unless you're one of the rare few that has special permissions from FB.

Related