New JS SDK with OAuth 2.0 saving subdomain in fbsr_ cookie?

前端 未结 4 768
轻奢々
轻奢々 2021-02-03 12:08

EDIT: This bug was logged, and confirmed as a Facebook bug. It has now been fixed!



I am testing my updates to move onto the new JS SDK. My app runs across mu

4条回答
  •  一向
    一向 (楼主)
    2021-02-03 12:59

    1) Check your App. domain in settings is set as mydomain.com and not www.mydomain.com
    2) Use channel file and url in init:

    FB.init({  
    appId : [APP_ID],  
    status : false,  
    cookie : true,  
    xfbml : true,
    channelUrl : document.location.protocol + "//domain.com/xd_receiver.html",  
    oauth : true
    });  
    

    https://developers.facebook.com/docs/reference/javascript/FB.init/

    hope this helps

提交回复
热议问题