Unable to get access token from Facebook. Got an OAuthException says “Error validating verification code”

前端 未结 7 1878
忘了有多久
忘了有多久 2020-12-01 02:36

I am using java and the purpose of my demo application is simple: Update user status. I followed the Server-side Flow on page http://developers.facebook.com

7条回答
  •  臣服心动
    2020-12-01 03:27

    Yes, the trailing slash worked for me too, thanks!

    For debugging purposes, I found it helpful to use exactly the code fb provides on the developer page:

    http://developers.facebook.com/docs/authentication/

    Once you get that working, you can modify it to fit your own code.

    I'm not sure, but you might also check to make sure your "Site URL" and "Site Domain" settings are correct on the App Edit screen, because according to the documentation, the redirect_uri must be in the same domain. (This is different from the canvas/tab page urls.)

提交回复
热议问题