Facebook login without pop-up?

前端 未结 5 1110
一向
一向 2020-12-08 08:18

I\'m trying to make a simple facebook app, but for the authorization, it seems that it\'s always blocked by a popup-blocker. My code is thus:

FB.init({
              


        
5条回答
  •  误落风尘
    2020-12-08 09:13

    Small update for this old question which I found very useful, I was keep getting error which the domain is not allowed and it was allowed:

    Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.

    so, after small research I discovered you have to change your facebook app setting to allow such navigation:

    1. enforce HTTPS
    2. Use Strict Mode for redirect URIs
    3. Embedded Browser OAuth Login (In case you use app webview)

提交回复
热议问题