FB.getLoginStatus never launches callback in mobile browsers

I use FB.getLoginStatus (according to the documentation), and it works exactly as expected in all desktop browsers, but for reasons that I cannot output, the call just disappears on la-la-earth when it is called from iPad or Android (tested on a wide range of devices and OS versions).

I do not understand how to debug this. There are no exceptions (I can insert a warning), so I'm just completely at a dead end. All suggestions on how to determine what might be the problem, or better yet, SOLUTION! would be highly appreciated.

+4
source share
2 answers

The most common problem is that the URL of the mobile site is not added to the application settings, check https://developers.facebook.com/apps/YOURAPPID/summary/ and scroll down to the Mobile Web section.

Also: if you are developing locally, pls keep in mind that, for example, 192.168.0.123! = Localhost, which is a classic that cost me almost an hour recently (all urls / ip addresses should be in facebook settings. com, otherwise FB.getLoginStatus or any other auth event does not fire!)

+2
source

I had an EXACT problem, and I realized that I was testing my mobile versions with the name domainname.com instead of www.domainname.com. Facebook will only redirect information to one or the other, and not both.

+1
source

All Articles