Facebook like_count of my own page - facebook

I want to get the fan_count of my own facebook page.
Do do this I send a call to
https://graph.facebook.com/v2.12/?id=SITENAME&fields=fan_count&access_token=APP_ID|APP_SECRET
but I keep getting the following error:
"Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook."
But I read that it should be possible to get data from my own page without review.
Or am I getting something wrong with the acces token? Should this be something else? Like the page access token?
Any help is appreciated!

Related

facebook fan page cannot be crawled

I want to crawl the fan page comments on the Facebook by using python. I go to the Graph API explorer to get the user token. After I submit the request "fanpage_name ?fields=id,name", I get this error message -->
(#10) To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.
However, if I sent the request of my id "my_id ?fields=id,name", it can work well. Is the fan page not be crawled now due to privacy problem?
If you own the page, just use a Page Token. If you don´t own the Page, you can use an App Token - User Tokens are for user content.
For Pages you don´t own, you need to get reviewed by Facebook. That´s what the error message tells you.

get the "FROM" field using Facebook Graph Api on comments for a facebook page

first of all, i own the page and i'm the only admin
so i have to get the access_token of my page (after the last update of facebook) :
/{page_id}?fields=access_token
so this is the url i'm using to get the information of my desired comment:
/{comment_id}?fields=id,from,message&access_token=my-page-token
and still, the response is showing only the id and the message.
i don't know how to access the user information
i'm using the access token to do so as mentionned in the facebook api docs and i own the page
what am i missing?
Since the latests update in the Graph API, to get private information from the users, even the author of some public post. You need to get the auth token with the manage_pages scope to get permission to the page itself then get the app reviewed ( https://developers.facebook.com/docs/apps/review ) and last you must go thru the Business Verification or the Individual Verification.
The last is a legal contract to use the info.
After that something else. You have to ask the page-specific access token. That is in the /me/accounts , that will give you a list of pages that has given you access. One of the fields is access-token or something like that. With that token you must ask for the comments with the FORM field.
Here I explain the details:
Facebook Graph API: How do I get “from” field in comment

How to get facebook page reviews Even i have accessToken

I want to get only facebook page reviews. I have accessToken and I am able to access the feed/post. What permission should I set to get page reviews and what should be complete url to get fb page reviews, which I can use in an API call ?
Please respond it. Thanks in advance.
https://developers.facebook.com/docs/graph-api/reference/page/ratings/
The only thing you need is a Page Token.
How to get a Page Token is explained here:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/

Facebook Application Token

I create a demo application to request photos from facebook. I created an application token like this : 549933848476397|4a584ce5fda19cba2ed6630ed78ba8f4. But when use this request URL https://graph.facebook.com/1417833425116725/photos?access_token={app_id}|{app_secret}. It's does not work. Please help me. Actually When I use user token for this request, It's work ok.
If the Page is restricted somehow (age, location), you can only use a User or Page Access Token to get data like photos of the Page. The App Access Token got no relation to any User, so Facebook can´t detect if the User is even allowed to see the Page.
I am 100% sure the Page is restricted btw, you get an "Unsupported get request" error when trying to access the Page ID directly with the Graph API, and that usually happens when the Page is restricted.
Just try another Page with that exact same App Access Token, for example:
/bladauhu/photos
...works without any problem. Another sign that your Page is indeed restricted.
TL;DR: For this specific Page, you MUST use a User Token or Page Token.

Get post from a Facebook Page without login

I am trying to get the post of a Facebook Page throw iOS API and I can't do it without login before (without access token). Is there any kind of solution to make this? Does anyone know it?
The App report me the follow error:
An access token is required to request this resource.
UPDATE
I generate one access token with this structure: APPID|APPSECRET and give it an expiration date. With this, I can access to the public data of my Page :)
Thanks,
David
Graph API Documentation seys:
posts [..] any valid access_token or user access_token
More informations you can find there http://developers.facebook.com/docs/reference/api/page/
Here is live example http://developers.facebook.com/tools/explorer/?method=GET&path=19292868552%2Fposts
+1 well... facebook data is all about "user", therefore you always need valid access_token
there are few exceptions though,
for example, you can display user profile picture without token,
see example;
https://graph.facebook.com/100001789213579/picture?type=large