php – Facebook错误“缺少redirect_uri参数.”

Kohana_Exception [ 0 ]: Error fetching remote 
    https://graph.facebook.com/oauth/access_token?
                client_id=<removed>&
                client_secret=<remove>&
                code=<remove>&
                redirect_uri=http%3A%2F%2F<ip>%2Flogin%3Fmethod%3Dfboauth%26redirect_uri%3Dhttp%253A%252F%252F<ip>%252F 

[ status 400 ] {"error":{"type":"OAuthException",
                         "message":"Missing redirect_uri parameter."}}

即使我包含redirect_uri,Facebook Connect也会报告.

最佳答案 REDIRECT_URI = HTTP:///

redirect_uri中有三个/,意思是三个正斜杠:http:///

我不确定你是如何构建它的,但是你应该检查一下是什么会导致这个额外的斜线.

点赞