J
J
jenya77712018-10-28 19:34:39
Facebook
jenya7771, 2018-10-28 19:34:39

How to get access_token of facebook users?

Hello, is it possible to make a link (similar to VK) that the user will follow and provide a token with which I can make publications in his groups?
As I understand it, you can post like this:

POST https://graph.facebook.com/{id_group_user}/feed?message=test&access_token={access_token_user}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ivan77011, 2018-10-28
@ivan77011

If you are using Laravel, I can recommend Socialite ( https://laravel.com/docs/5.7/socialite ). There access_token can be obtained during the callback.

A
Anton Kucherov, 2018-10-29
@DexterHD

In order to publish to groups as a user, you need the `publish_to_groups` permission. To get it, the application must go through manual pre-moderation. Those. you must implement the functionality in a test mode, and then tell and show the Facebook moderators how you will use your application. You can read more about publishing to groups in this help section: https://developers.facebook.com/docs/groups-api/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question