Facebook错误“缺少redirect_uri参数。”

时间:2010-08-02 02:22:52

标签: php facebook kohana

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也会报告。

1 个答案:

答案 0 :(得分:2)

REDIRECT_URI = HTTP%3A%2F%2F%2F

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

我不确定你是如何建造它的,但是你应该检查一下会导致多余的斜线。