getLoginStatus not firing with calling from FB canvas

妖精的绣舞 提交于 2019-12-04 10:36:41

I have been facing the same pb and this is how i fixed it :

Even if the getLoginStatus() works within your http website, the getLoginStatus() will not fire at all within the fb canvas unless you provide a valid Secure Canvas URL (https://yoursite.com/) ! It means you need to run your app on a https server (port 443)
If you do not want to buy a certificate you can create and self-signed a certificate (see here : http://greengeckodesign.com/blog/2013/06/15/creating-an-ssl-certificate-for-node-dot-js/)

I Hope this will help

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!