How to get access token of my business facebook page? - facebook

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.

Related

How to get access token for Facebook Groups API?

Am quite new to php, facebook graph and stackoverflow so please forgive. Previously, the following in my php script worked to get an access token for a facebook group:
graph.facebook.com/oauth/access_token?client_id={$appId}&client_secret={$appSecret}&grant_type=client_credentials
What should the request be now? (I know my app-scoped user-id if that helps?)
Background: It's a simple server-to-server app to copy photos from a facebook group to a website. Therefore logins don't apply. It's been reviewed and my business verified (that was fun... not!). I've added my app to the group's settings, but can't find the next step. Any help appreciated, thanks.

Can I access a Facebook Page with the Graph API without creating an app?

In the past, I think a Facebook Page access token could be generated manually, and then used with the graph API to query posts, comments, likes, shares, etc. Now it seems you cannot query anything without developing an app that I login to and then in turn the app generates the access token. Is that true? For example, this question from 2015 claims no access token is needed for public data, but when I try their example it returns "An access token is required to request this resource."
I'm the admin of my page that ran a basic contest (giveaway). I'd like to use the graph API to fetch the names of people that liked, shared, or commented on a post. Then I want to cross reference it with those that like the page. Do I have to register and develop an app for this? Does my page have an access token available without going through the app registration and review process?
Can I access a Facebook Page with the Graph API without creating an app?
No, that is not possible. You always have to use an App for any API Access.
Then I want to cross reference it with those that like the page.
That is not possible either, not even with an App. I assume you want to make sure that participants like your Page - which is not allowed. People cannot be "incentivized" to like your Page.
Platform Policy: https://developers.facebook.com/policy/
Explanation about the specific rule against requiring people to like your Page: https://developers.facebook.com/docs/apps/examples-platform-policy-4.5

How to automatically post to Facebook

Please could you help. I have created a website that allows people to upload listings of items they are selling. I want to know how to add the feature where when someone creates a listing, it automatically posts on the user's FB page, with a link to the listing on our website. Is this possible? Would the user have to log into our website using their FB account for this to happen? Thanks everyone for your help.
Martin
You need to create a Facebook App and use Facebook Graph API with publish_actions permissions to do that. Note that the facebook rules prohibit sending fully automated messages that the user has no control, your user must have the ability to edit the message before sending

Need help adding business facebook feed to website

I want to add our company's facebook feed to our company website. I've looked at facebook's Graph API, but it seems limited to my personal account. I'm an admin for our company's business page, but I can't figure out how to get that accounts feed info, and I don't understand facebook's documentation. Anyone know of a simple, current, step-by-step tutorial?
You should be able to do this using a page access token and calling the /page/feed endpoint
https://developers.facebook.com/docs/graph-api/reference/v2.3/page/feed.
You can also use the Page Plugin or the Embed Posts plugin

How can I get the proper permissions to post to a Facebook community page via my app?

I have one app that I've managed to install to several of my Community pages (not people pages). One of them I did quite awhile ago and it has all the proper permissions so that the app can post to the community page wall via the php sdk. I need the same functionality for my other community pages.
Links I've found so far such as:
https://graph.facebook.com/oauth/authorize?client_id=APPID&redirect_uri=REDIRECTURL&scope=publish_stream
have just given me the error:
You are using Facebook as CommunityWallName
To access this page, you'll need to switch from using Facebook as your page to using Facebook as yourself.
and will allow me to personally accept the permissions but will not apply it to any of my community pages.
You need to request the manage_pages permission.
See here for more details:
https://developers.facebook.com/docs/authentication/permissions/#page_perms