Facebook login without pop-up?

前端 未结 5 1108
一向
一向 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 08:50

    You should initiate your login code on click of some button. As a good practice while dealing with FB, the login process should always be initiated by user.

    Call your code on click of a button and it should FIX your problem.

提交回复
热议问题