Is it possible to create a facebook page with graph api?
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.
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
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
There is another way of creating a "Page". You can use Open Graph Protocol to create "likable" pages on your own website.
See this: http://developers.facebook.com/docs/opengraph
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 toaccounts
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.
精彩评论