Facebook Login from subdomains (too many “Valid OAuth redirect URIs”)

我只是一个虾纸丫 提交于 2019-12-22 18:38:37

问题


I've faced with the following problem:

I'm using Facebook js sdk for the login process.

In App settings Site URL is set to "http://example.com/", App Domains are "example.com, www.example.com".

In Facebook Login Settings "Valid OAuth redirect URIs" are "http://example.com/, http://www.example.com/".

From the main domain it works just fine, but under subdomain (e.g. http://subdomain.example.com/) i get the following error:

"URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs."

When I add this subdomain to "Valid OAuth redirect URIs", this problem disappears. But I have too many subdomains to list them all. Is it possible to accept all the subdomains as valid OAuth redirect URLs? Or what approach to solve this problem can be?

Thank you very much

来源:https://stackoverflow.com/questions/42999831/facebook-login-from-subdomains-too-many-valid-oauth-redirect-uris

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!