Facebook webhook - retrieve page incoming message & send message through server [duplicate] - facebook

I work with a web app that asks users for permissions to post on their behalf. For this, we call the FB login window (https://www.facebook.com/v2.10/dialog/oauth) to ask for the permissions. The permissions we request in the scope are:
scope: 'public_profile, user_friends, read_insights, manage_pages, publish_actions, pages_manage_instant_articles, pages_messaging, publish_pages, ads_read, ads_management'
everything has been working fine until today when we started getting this error:
Platform Access Disabled: Access temporarily disabled due to changes to the Facebook Platform
We have enabled https and we are using non-deprecated versions of the API and dialogue.
How can I solve this problem?

It's pages_messaging permission, Facebook not allow it at this time. Please remove it for now until Facebook update.

You need a Login Review in your app for use 'user_friends' permission
https://developers.facebook.com/blog/post/2018/03/26/facebook-platform-changes/

Please wait for Facebook developer team update on the below issue.
https://developers.facebook.com/status/issues/104197713763517/
https://messenger.fb.com/newsroom/messenger-platform-changes-in-development/

Related

FB Live mode not showing approved API

Q1. In Development mode, Requested FB Graph API for approval and it was approved by FB.
While switching Development to Live mode, My Permission and features not showing approved API in a list .
Is some setting missing from my end ?
Q2. Continue with Q1 , In Live when trying to connect FB showing below errors.
Invalid Scopes: user_friends, read_insights, user_posts, manage_pages. This message is only
shown to developers. Users of your app will ignore these permissions if present.
Please read the documentation for valid permissions at:
[https://developers.facebook.com/docs/facebook-login/permissions][1]
user_friends, read_insights, user_posts, manage_pages this is already approved API
How should solve above issues.
Thank you for help.

Error on posting on behalf of a Facebook page

I have an app that programmatically make post on a configured Facebook Page.
My app obviously have both the manage_pages and publish_pages permissions approved and I'm using pages access token
Everything work well since now, but recently when I POST on page feed
https://graph.facebook.com/v3.1/234002440799692/feed
I get this error:
{"error": {
"message":"(#200) Requires either publish_to_groups permission and app being installed in the group, or manage_pages and publish_pages as an admin with sufficient administrative permission",
"type":"OAuthException",
"code":200,
"fbtrace_id":"HEVcI\/Tq3fW"
}}
I know that Facebook has deprecated publish_actions scope, so that it's not possible anymore to post programmatically on the personal feed, but I can't find out why the post on a page return this kind of error.
Some further infos:
posting with a developer account actually work
the user by which the page access token is obtained, created the page on Facebook (so I think it's an admin for the page)
i recently migrated from graph_api v2.12 to v.3.1
Any suggestion will be appreciated
Thanks
I figured it out what the problem with some pages is.
It seem that now, if the user grant the manage_pages and publish_pages permission, that will be valid only for already existing pages!
New pages haven't the permission granted by default.
The only way I can fix the problem was to remove my app from the user profile (Facebook Settings > Business Integrations > Select the app > Remove) and then prompt the user again with the Facebook OAuth permission dialog.
I don't know if there is a way to force the app removal programmatically, but I can't find out.
You can use the following URL:
https://graph.facebook.com/v7.0/234002440799692/feed?&access_token={access_token}

Platform Access Disabled: Access temporarily disabled due to changes to the Facebook Platform

I work with a web app that asks users for permissions to post on their behalf. For this, we call the FB login window (https://www.facebook.com/v2.10/dialog/oauth) to ask for the permissions. The permissions we request in the scope are:
scope: 'public_profile, user_friends, read_insights, manage_pages, publish_actions, pages_manage_instant_articles, pages_messaging, publish_pages, ads_read, ads_management'
everything has been working fine until today when we started getting this error:
Platform Access Disabled: Access temporarily disabled due to changes to the Facebook Platform
We have enabled https and we are using non-deprecated versions of the API and dialogue.
How can I solve this problem?
It's pages_messaging permission, Facebook not allow it at this time. Please remove it for now until Facebook update.
You need a Login Review in your app for use 'user_friends' permission
https://developers.facebook.com/blog/post/2018/03/26/facebook-platform-changes/
Please wait for Facebook developer team update on the below issue.
https://developers.facebook.com/status/issues/104197713763517/
https://messenger.fb.com/newsroom/messenger-platform-changes-in-development/

Facebook - GraphApi from v1.0 to v2.0 : An active access token must be used to query information about the current user

I'm working on an old facebook application and we had to migrate from graphApi v1 to v2.
I delete the publish_stream permission (no longer exists) but users cannot login to the application we have this error :
An active access token must be used to query information about the current user
It still works for admin users... I don't understand what's happening
Any ideas?
Thanks
Did you have a look at
https://developers.facebook.com/docs/apps/api-v1-deprecation
I guess you're requesting extended permissions, and did not go under the Login Review process:
Require Login Review for all apps that use Facebook Login and ask people for permissions other than email, public_profile or user_friends. Any permissions that haven't been reviewed and approved will no longer show in the Login dialog and apps can't access, ask for, or be granted them.

new app-id - OAuthException (#200) on post comment

Since I created a new (Facebook) App last week, I get an OAuthException whenever I want to comment on a post.
"(OAuthException) (#200) You do not have sufficient to permissions to perform this action".
With the old App, my application works fine.
Now I found out that Facebook has changed the login policy recently. I also found the following remark on https://developers.facebook.com/docs/facebook-login/permissions/v2.0:
"If your app asks for more than than public_profile, email and user_friends it will require review by Facebook before your app can be used by people other than the app's developers".
So if I post with the same account with which I created the App, it should work, right? Only it doesn't...
Remark: if I use the new App with another Facebook-account, I have even less permissions (e.g. cannot access the account's pages). So I have more permissions if I use the same account, but still I cannot post!
I use Graph API via .NET Facebook-Client; my App is a native app (desktop app).
Could someone please tell me how to post with a new App? This is the main use-case of our application! Thank you very much!
Here is a screenshot of what I see instead of the login-screen when I use extended permission "publish_action" instead of "publish_stream"
You must be able to post with your own account since you are the admin of the application. - since only the admins/developers/testers will be able to test the app with the publishing functionality before it gets approved by facebook.
If you still are not able to, you must have not granted the permissions to the app. Things to check-
You are using publish_actions and not publish_stream
Check in your application settings whether or not you can see the publishing permission is granted for that app.
If not granted, go through the login process again and grant the publishing permission (may be by removing the app from settings and then authorizing again OR logout the app and then login again with publish_actions)
Problem solved - it was a stupid typo: I wrote publish_action instead of publish_actions (should be plural)! Thanks again to CBroe who pointed it out in this thread!