FB login error:Invalid redirect_uri
當FB login功能出現這個訊息:
{
"error": {
"message": "Invalid redirect_uri: \u61c9....",
"type": "OAuthException",
"code": 191
}
}
因為FB app限制redirect的ip或url,程式裡指定的redirect uri,必須符合fb app設定的資料,所以設定以下兩者之一,才能正常運作:
1.settings-basic-Site URL
2.settings-advanced-Security-Valid OAuth redirect URIs
reference
http://stackoverflow.com/questions/8100043/facebook-invalid-redirect-uri-but-the-url-looks-fine-to-me
{
"error": {
"message": "Invalid redirect_uri: \u61c9....",
"type": "OAuthException",
"code": 191
}
}
因為FB app限制redirect的ip或url,程式裡指定的redirect uri,必須符合fb app設定的資料,所以設定以下兩者之一,才能正常運作:
1.settings-basic-Site URL
2.settings-advanced-Security-Valid OAuth redirect URIs
reference
http://stackoverflow.com/questions/8100043/facebook-invalid-redirect-uri-but-the-url-looks-fine-to-me
留言
張貼留言