Facebook graph API - OAuth Token

后端 未结 11 1840
小鲜肉
小鲜肉 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:47

    You can also get this error if your connect URL isn't a base of your redirect URI. For example

    Connect URL: http://www.example.com/fb/connect/
    
    Redirect URI: http://www.example.com/fb/connect/redirect
    

    I ran into an issue where my redirect URI was the same as the connect URL, but I forgot the trailing / on the redirect URI so FB saw them as different and failed the auth.

提交回复
热议问题