問題描述
通過重定向到以下網址請求授權時:
When asking for authorisation by redirecting to the following url:
https://graph.facebook.com/oauth/authorize?client_id=...&scope=email,offline_access&redirect_uri=http%3A%2F%2Flocalhost%2Flogin%2Findex.php%3Fcallback%3Dfacebook
Facebook 返回無效的redirect_uri 應用程序配置不允許給定的 URL."
Facebook returns 'Invalid redirect_uri Given URL is not permitted by the application configuration.'
可能是因為我的應用程序是在 http 上注冊的://syncacity.com 上的應用程序配置.但是,twitter 允許我重定向到任何 url,那么為什么 facebook 抱怨?
Possibly because my application is registered with http://syncacity.com on the application configuration. But still, twitter allows me to redirect to any url, so why is facebook whining?
我很感激你的想法:)
推薦答案
為什么不直接編輯您的主機文件并將您的域指向您的本地 ip,那么您只需要在做任何事情之前切換 dev box 主機.
why not just edit your hosts file and point your domain to your local ip then you only need to switch the dev box hosts before doing anything.
這篇關于Facebook OAuth redirect_uri 問題“應用程序配置不允許給定的 URL."的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!