Is verification required if we want to get a Facebook page, such as an account (without logging into Facebook) through a Facebook application token?

I am making a static webpage on my website in which I show how the counting of a particular Facebook page. No login is required to view this web page. In addition, I do not want the user to log in with his Facebook account to see a Facebook page, for example, an account.

I fulfilled this requirement using the Facebook application token.

API: " https://graph.facebook.com/PAGE_ID?access_token=APP_TOKEN "

But the problem is this: if I use the app token of an already approved Facebook app with some permissions (manage_pages), it works. It does not work for the application token of the newly created Facebook application.

I submitted the application for viewing on Facebook, requesting permission to manage_pages, but they rejected the application and said that my site did not have the Facebook login feature.

Since it is not clearly documented, I doubt that the application needs to be sent for verification if I want to get a Facebook page, for example, an account without logging into Facebook (using the Facebook application token)? If so, what permission do I want to request?

Any help would be greatly appreciated.

0
facebook facebook-graph-api facebook-app-requests
Oct 13 '15 at 16:12
source share
1 answer

First of all, you need to find out what Tokens is:

For your problem, you can simply use the application access token. There is no need for any permission or login overview, the links above will tell you how to create it. Make sure that you do not use the token on the client, especially because it includes the Secret application. Make an API call only on the server (file_get_contents or curl if you use PHP).

If "does not work" you mean that you get only the identifier and name, then this does not mean that "does not work", you need to read the change log and find the "declarative fields": https://developers.facebook.com / docs / apps / changelog # v2_4

So, if you want to get more than just id and name, the API call will be like this: https://graph.facebook.com/936299239766048?access_token=YOURAPPTOKEN&fields=id,name,likes , ...

+1
Oct 13 '15 at 16:47
source share



All Articles