Facebook API: I want to quietly (without a dialog box) authenticate my server to access fan page information

The organization in which I create the site has a facebook fan page, and I would like to submit the events tab on the website directly from the events that the fan page created or visited. The problem is that I don’t see, looking at the oauth documentation that the FB provides, how to get the access token without forcing the website user to deal with the auth dialog box (which the user should not have to deal with). And yes, the fan page column requires authentication to access events.

It should be simple, but I just don't see how to do it. Any help would be greatly appreciated!

PS- I’m not interested in forcing the user to register on the site in order to access any content (I just thought that I should clarify this).

+6
source share
2 answers

I seem to have found the answer to my question. Ninja code seems to have an answer.

+3
source

You can get the access_token application, which is different from the access_token user, which requires a permission dialog. You can get the access_token application by redirecting to this URL:

https://graph.facebook.com/oauth/access_token? client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET& grant_type=client_credentials 

For more information, see the Application Registration section of our authentication documents .

0
source

Source: https://habr.com/ru/post/893738/


All Articles