fb login popup block

前端 未结 4 1862
失恋的感觉
失恋的感觉 2020-12-13 04:31

I am making using fb login feature but problem comming to me is that whenever I click on the fb login button before page media loading is completed, it blocks the popup for

4条回答
  •  执念已碎
    2020-12-13 05:31

    Make sure you set status to true, this will fixed popup blocker issue.

    window.fbAsyncInit = function() {
      FB.init({
        appId      : '{your-app-id}',
        cookie     : true,  // enable cookies to allow the server to access 
                            // the session
        xfbml      : true,  // parse social plugins on this page
        version    : 'v2.5', // use graph api version 2.5
        status     : true // set this status to true, this will fixed popup blocker issue
      });
    

提交回复
热议问题