O
O
Ockonal2012-11-09 14:34:46
PHP
Ockonal, 2012-11-09 14:34:46

Group access and Access token?

Hello. Previously, I somehow received an access token for the application forever. Created a link like this:

https://www.facebook.com/dialog/oauth?client_id=APP+ID&redirect_uri=MY_PAGE&scope=user_status,offline_access,read_stream,manage_pages,publish_stream,user_groups

More specifically, I need access to groups and post on their behalf at any time. As a result, I get a redirect to my script with the CODE parameter . I used it as an auth token before, it looks like this:
(changed some symbols):
AAAGeNVsJRxMBAC71rMePZAkoZA2KUt7uTCReuqQPj6Rzz9o3M1d8XL1ZBIjSpDGYZAnuuPaTyfZAOgOeKkZALumAUkEFkyb7xN8CkCoDmwnZAAreZAYugnak

Now CODE returns me:
?code=AQAGeqYYMBfFXrPUzfuSCQb9GNtreg2rog9KVixcRDhccoug2vy5qCOv4y175TVccqs8TGIJGKJAoLzmFxaaoKgKp-iUNmc4hAfZETwGW7l72wki1JqGlHXsRuhUpzfHTUexT_nEDt4nzaFxHHSm-sTvmbYFB6VzLeiuRFK4R4MBfprk3sbjUPR6V_Cumjey4RUrHfPDzaHUIowJrKGTey2q#_=_

I decided to do the same, but through the Graph API Explorer . It allows you to get the rights you need or use an existing application and create requests. Through it, I can generate a valid token, but I cannot get the list of groups: GET /me/groups returns an empty data array. There are rights to access groups. What's wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question