-3

I'm trying to find how to generate an access token in the 2.9 graph API. Using their documentation doesn't seem to do much at all. It's very incomplete and hard to navigate

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Caleb Prenger
  • 1,537
  • 4
  • 13
  • 13
  • 1
    there is one specific page that you could just find by searching for "graph api access token" with google: https://developers.facebook.com/docs/facebook-login/access-tokens/ – andyrandy Jul 13 '17 at 21:05
  • ....and here is another one: http://www.devils-heaven.com/facebook-access-tokens/ – andyrandy Jul 13 '17 at 21:06
  • That's rubbish. I don't think access tokens will be here long term in web dev. – Caleb Prenger Jul 13 '17 at 21:21
  • ...they are being used pretty much everywhere (since many years). what is rubbish about them? – andyrandy Jul 14 '17 at 06:03
  • They are inconvenient, no clear explanation about what they do off the bat. – Caleb Prenger Jul 14 '17 at 14:04
  • i would say they are easy to handle and easy to understand. what explanation do you need? you authorize, get a token, use the token for api calls. that´s pretty much it. – andyrandy Jul 15 '17 at 09:25

1 Answers1

0

it is very simple... 1. Add the app on developer account fb generate accesstoken he working about 2 hours https://developers.facebook.com/tools/explorer . 2. If you need a long token using generate with step 1 + app secret and client id and using url: https://graph.facebook.com/v2.8/oauth/access_token?grant_type=fb_exchange_token&client_id={app_id}&client_secret={app_secret}&fb_exchange_token={short_lived_token}

I recently realized but still works. I using graph api v2.9 and using this documentation facebook: permanent Page Access Token? I hope it will help you....

dyma 5p9
  • 11
  • 6