FB.getLoginStatus returns status unknown

前端 未结 10 1264
不思量自难忘°
不思量自难忘° 2020-12-05 14:20

When calling FB.getLoginStatus using a valid Facebook App the response status is always unknown. Exact response is {authResponse: undefined, status: \"unknown\"}.

         


        
10条回答
  •  佛祖请我去吃肉
    2020-12-05 14:52

    This was happening for me in Chrome, and was because Chrome was configured to block third-party cookies and data.

    Once I made that configuration change, FaceBook is able to log me into my app without a problem.

    • Chrome Settings
    • Show advanced settings...
    • Privacy
    • Content settings...
    • uncheck Block third-party cookies and site data

提交回复
热议问题