2012-08-22 90 views
0

我試圖得到的access_token這樣的文檔:https://developers.facebook.com/docs/authentication/server-side/無法從Facebook獲得訪問令牌與服務器端身份驗證

,但它不工作!

我有這樣的錯誤:

{ 
    "error": { 
     "type": "OAuthException", 
     "message": "Error validating verification code." 
    } 
} 

在本文檔中,它說我們可以使用:

https://graph.facebook.com/oauth/access_token? 
    client_id=YOUR_APP_ID&redirect_uri=YOUR_URL& 
    client_secret=YOUR_APP_SECRET&code=THE_CODE_FROM_ABOVE 

CLIENT_ID是我APP_ID
client_secret是在App祕密
REDIRECT_URI是的網址該網站(在應用程序配置中的網站網址)(我試過/沒有結束)

所以我的網址是:

https://graph.facebook.com/oauth/access_token?client_id=14588084****&redirect_uri=http%3A%2F%2Fwww.mywebsite.com&client_secret=693ce9538e1f14e0*********&code=AQCVmlM9peMiL8Pv3mdi7c3FifwGLQDECdtN0oGMW4I6cisebeawDdSHP_crQlhsZxHKDOFT6zOrqeaoiL2pkQSkqAvwoPZdw0o1uCoLpUVjchghgfhgfhEXb2XS3UBD7iEc8eZ_YLF0cbVWL5i58sj3Rsr9vVFtfYwfghghgfhgfTkwajGcRp9n-lWWcepxghgIwzMMYLv8e__iDoMDiSNg 

回答

相關問題