Facebook Graph API /comments endpoint returns "Unsupported request - method type: post" - facebook

My Facebook Developer app doesn't have "pages_manage_engagement: privilege yet. I am trying to do a demo page for the app review process. The Facebook reviewers need to verify the app before they give the privilege.
So I am trying to push a comment to a page rating via Facebook Graph API /comments endpoint.
But when I execute the API call using the correct page token, I am getting this error "Unsupported request - method type: post"
Please refer to the below screenshot.
How can I sort this?

Related

How to post status for user in 'Facebook At Work' using Graph API?

I working on a project related to Facebook At Work. (Fb#W). I have admin access token and community id.
The app need to post statuses on behalf of user in Facebook at work. I tried to add impersonate_token to API call but the result return an error as follow:
"message": "(#200) The user hasn't authorized the application to perform this action"
The problem is user can not authenticate facebook at work account. Anyone know how to do this?
Thank you for reading

Facebook Business page - Unsupported get request

I have admin access to a Business Facebook page, I created an app under the same account, when I then try to use the Graph API Explorer under that application using the access token generated I get:
get/v2.5/{client-name}/
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100
}
I have full access so I do not know why I am getting a error. This normally works fine when I try it on a standard Facebook page, is there something extra I need to do for Business pages?
Since you are trying with an App Token, i assume that the Page is restricted by age or location. In that case, you have to use a User Token or Page Token of a user who is allowed to see the Page and its content.
More information about Tokens:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/

Facebook Graph API - Whitelisting

QUESTION EDITED TO BE MORE SPECIFIC:
When attempting to read 'views' field for a user's public videos using the Graph API:
https://graph.facebook.com/v2.5/facebook/videos?access_token=<token>&fields=views
Using my application's access token, I receive the following error message:
(#3) App must be on whitelist
However, making the same request using the facebook Graph Explorer (with a Graph Explorer access token) the data is returned correctly.
Does anyone know how to request for an application to be adding to the said whitelist?When trying to extract data from the Facebook Graph API I get the message: "(#3) App must be on whitelist"
Thanks
Just go to your facebook app's setting>advanced setting and in 'Server IP Whitelist' field. mention the IP from which you are making request to Graph API

Use Facebook API to get a user's public feed (without up-to-date user access_token)

I've seen several questions regarding this topic in stackoverflow, but I could not find a bottom-line answer to this question.
I have a Facebook app.
I have a website to which users register using their FB account.
I would like to be able to get public posts from users' feeds using Facebook's API when the feeds update, even when the users are not logged into FB or into my website.
I was able to successfully subscribe to FB real-time updates.
I was able to see a user's public posts in http://www.facebook.com/<uid>/feed.
I tried to access https://graph.facebook.com/<uid>/feed - I got "An access token is required to request this resource.".
So I created an app access_token (using https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=APP_ID&client_secret=APP_SECRET).
I then tried to supply the app access_token I received when accessing the user's feed: https://graph.facebook.com/<uid>/feed?access_token=APP_ACCESS_TOKEN.
This time, I didn't get an OAUTH error, but just an empty JSON array: "{ "data": [ ] }"
The user in question gave the following permissions to my app: "email,read_stream,export_stream" (using the scope parameter in the FB.login API call).
At the moment it seems to me that the only way to get a user's feed via API is to wait for the user to log back into my website, get a user access_token, and only then make the calls.
I would appreciate it if anyway could confirm the above conclusion, or even better: let me know what I'm doing wrong...
Thanks!

How to Get feed of public Facebook page using Graph api?

There are already several questions on StackOverflow ( Can you get a public Facebook page's feed using Graph API without asking a user to allow? Get public page statuses using Facebook Graph API without Access Token? )concerning my question: I need to get through the graph API the feeds of a public page on facebook.
I followed the instructions but I always get:
{"Error": {"message": "An access token is required to request this resource.", "Type": "OAuthException", "code": 104}}
how can I fix this? I'm going crazy because everyone seems to work except me! thanks
Based on your description, the error is that you weren't supplying a valid access token with your request.
If the app's type is set to 'Native / Desktop' it's assumed you distributed the app's secret key with the binary, and thus the app access token isn't trusted (and 'getAccessToken' in the PHP SDK will only work when real users log in, it can't fall back to the app token)
If you were attempting to use the app access token to read the page's feed, this would fail in the manner you described.