Long term token
1

How to obtain a Permanent token?

https://graph.facebook.com/{{Version}}/oauth/access_token but it says invalid client_id.

The JSON is like that: { "grant_type": "fb_exchange_token", "client_id": {{AppID}}, "client_secret": {{ClientSecret}}, "fb_exchange_token": {{Token_shortterm}} }

Cabre
提问时间: 约 1 个月前
已选回答
1

its because you should do it whit a get consult not a post an the url should be like this: https://graph.facebook.com/oauth/access_token?client_id={your app id}&client_secret={your app secret}&grant_type=fb_exchange_token&fb_exchange_token={your shor live token}

all the thing you need are in "app settings>basic" and you should not use a json to this consult

10月21日 08:20
Matías Ezequiel