Facebook graph API - OAuth Token

后端 未结 11 1844
小鲜肉
小鲜肉 2021-01-30 09:16

I\'m trying to retrieve data using the new graph API, however the token I\'m retriving from OAuth doesn\'t appear to be working.

The call I\'m making is as follows;

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-30 09:51

    Try to follow the API, i.e without type but add redirect_uri and code (even though we don't need it):

    $token = file_get_contents('https://graph.facebook.com/oauth/access_token?client_id=&client_secret=&redirect_uri=&code=');
    

提交回复
热议问题