I want to create a facebook business page programatically via their API.
I looked at each of the technologies listed on developer.facebook.com but there is nothing that i can use to create a new page.
After alot of googling i found out that it seems to be impossible to create a page programatically. And i almost gave up, but then i found
https://www.pagemodo.com
Testing their service i see that they can actually create a new one and looking trought their javascript files it seesm they do it on the backend.
After reading some more i found about the new facebook business API ( https://developers.facebook.com/docs/reference/ads-api/businessmanager ), and i got nowhere with that either.
I am on the verge of believing that it's impossible, but having the working example on pagemodo makes me unable to give up :D .
[Possible Solution 1]
Another ideea that i have on how to achieve this is to
manually create a number of template pages on my account (not published).
add that user as an admin to one of the pages via API [*]
remove myself from the administration via API [*]
edit the page title/description/etc. via API
publish the page via API
For the normal users, it will look like the page was created auto,so this could work. But the problem is that i couldn't find anything in the API to make the [*] operations work.
Any help appreciated
It's possible. You need to get your Facebook App whitelisted to get access to page creation apis.
It is not possible to create business pages via the public Facebook API.
Related
I'm trying to create an ad for someone else's page using the Marketing API.
So far I have
My own access token which works fine for creating and managing ads for my own page
Another user's access token with pages_manage_ads and ads_management permissions given for one of their pages
The rest is very confusing. pages_manage_ads is supposedly for creating and managing ads for a page, but the documentation only mentions reading page ads, not creating or editing.
Has anyone gotten this to work?
I've done it before, but some time ago and it often changes in detail. What I would do is going to API Explorer and try to get to the first success by first reading the ads related to the Page and then creating them by leveraging existing posts there. You can create them in a paused state.
https://developers.facebook.com/docs/marketing-api/reference/adgroup
Facebook is all about experimenting, so if you don't want to experiment with your user's page you can create your own dummy page and try it there first.
My name is Alaa and i am the IT manager of my company,
We used our facebook app and the facebook PHP SDK to share our articles automatically from the backEnd of our website to our facebook pages.
so we use the facebook graph API to retrieve the Access Token of our pages and use it in the php script.
But from February 13th, the script is not working anymore. I don't know what to do exactly, but looking on the internet, I found that we must use a new API (Marketing API) because we migrate our facebook account from default to business and we must have permissions (publish_pages, manage_pages), i want to inform you that we used the app several years without need to these permissions.
I want to add also that I can't show my business pages anymore in the list of all pages i manage (Personal and Business).
for example when i use facebook graph API to get access token of a page, i can just see my personal pages and not business pages of my company. i hope that you can anyone explain to me why?
I explain all of that on a video please click here to see it : https://www.youtube.com/watch?v=zhDerUakiNk
Thank you very much for your help.
Have you tried restarting your server? That's what fixed it for me.
I am building an application for clients to be able to create Facebook Page in their account using my own Admin Access Token.
I have Standard Access approved for my Facebook application already.
I tried to create a few test pages using FB Graph Explorer and I succeeded.
I ran into a problem when I tried to create a page using Code in Classic ASP, it says Have reached page creation api throttle limit
FR- https://www.screencast.com/t/hTd4RDozov
I tried to search into the Facebook documentation to find out that when I can get out of this error, but couldn't find any response.
Are there anyone person who has got this error before? Or can someone tell when I can get rid out of this error?
Many thanks
Currently experiencing the same behavior. Talking to Facebook support they say the default limit for page creation is 2 pages per month. This number might be negotiable depending on your usecase.
I want to pull ad data (campaigns, ad sets, & metrics like clicks/impressions/ctr) from Facebook using their API and put it into a database. Facebook's documentation says I need to create an app on their site in order to access the API, but that doesn't seem right. I'm not trying to create an app for my fb page, just want to extract data.
My first choice was to use an ODBC driver from
CData
, which does allowed me to successfully pull data from AdAccounts but threw an error when trying to get AdSets or AdStatistics:
OAuthException Code 10: You do not have sufficient permissions to perform this action.
I made sure to add in a target='act_{myAdAccountId}' parameter to the query, as per their documentation, but it didn't help. I figured this meant I didn't configure the driver properly, so maybe I'd have better luck just coding up a solution in python or php.
Next, I tried to run similar API calls using the Graph API Explorer and got the same error message. I created an access token that had all the extended permissions and then made a request to
GET /v2.4/act_{myAdAccountId}/adcampaigns.
This gave me the exact same OAuthException Code 10 error that I was getting through the ODBC Driver.
Can someone confirm whether it's possible to pull data from the API without building an app? If so, what permissions do I need to enable for my account? I'm already an Ad Account Admin in the "Ads Manager", and couldn't find anywhere else to set permissions.
Thanks!
Apps have no direct relation to Pages. You need to create an App for any API access. I did not use the Ads API yet, but i assume you need to use the ads_management permission with your App.
How to create Apps and authorize with the required permissions is explained in the docs: https://developers.facebook.com/docs
Since you asked about Login Review, all the information you need about that can be found in the docs too: https://developers.facebook.com/docs/facebook-login/review
I understand this is an old post, but in case if anyone was looking at a similar situation, I was able to call the Facebook Marketing API without building an app.
I posted a similar answer on another more recent question (Do I need a publicly accessible webserver in order to user Facebook's marketing API?), and was curious if this situation puzzled anyone else, which led me to here.
I wrote my API calls using Python 2.7 on Juypter notebook, and I just followed Facebook's Marketing API documentation and examples, modifying with my access tokens and account information.
Our client is wanting to have their application actually create new pages on behalf of a user. I've found a couple of workarounds for posting items to pages that already exist, but nothing for creating new pages (although the documentation on Facebook pages is pretty sparse). Any suggestions?
your APP need Standard Access permission from Facebook. Once you have this permission you can performance this action using /{user_id}/accounts, to create a new page under this user. This is my way to create new pages, and It works.
Yes, but you will need to first get Standard access to the Facebook Marketing API.