FB login callback function not responding if user is already logged in facebook

前端 未结 6 1032
星月不相逢
星月不相逢 2021-02-01 22:51

I am using fb connect using js. This is my code:



        
6条回答
  •  深忆病人
    2021-02-01 23:16

    You need to replace

    FB.Event.subscribe('auth.authResponseChange', function(response){     
    

    with

    FB.Event.subscribe('auth.statusChange', function(response){ 
    

    As auth.authStatusChange event trigger on status change whether already logged in or login by giving credentials.

    thanks

提交回复
热议问题