Topic-icon Facebook login with some mobile browsers

Active Subscriptions:

None
Hi,

we have a Joomla 3.x website with the latest version of JFBConnect and when making a mobile app which shows the Joomla website we found that after users login, the user is brought to a blank page. This happens with a webview inside an app or with browsers which don't have tabs / popup support forcing the FB login to appear on the same page. An example of a browser you could use to check the problem is:
play.google.com/store/apps/details?id=com.dolphin.browser.zero

The "Show 'Login Credentials' in popup" setting is checked, but if it's unchecked, the user is redirected gracefully but it seems JFBConnect couldn't get any FB information... and this happens even with a regular desktop browser like Chrome.

Thanks.
The topic has been locked.
Support Specialist
8 years 50 minutes ago #57982 by alzander
If you uncheck the "Show 'login credentials' in popup", JFBConnect will redirect the user to Facebook, which should redirect them back to your site after a successful authentication.

If you're not getting data, it means there's something else going on that's interfering with that process. Can you try the following steps to see if it helps:
* Set Debug Mode in JFBConnect to 'On' - That may show an error message as to what's going wrong
* Turn off any SEF extensions you haven't enabled, or anything else that could alter the URLs on your site
* Disable any optimization extensions

Hopefully, one, or all, of the options above helps fix things. If so, we can help you pare back those settings so you don't have your website working without optimization or SEF URLs for long.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
7 years 11 months ago #58007 by intrahouse

alzander wrote: If you uncheck the "Show 'login credentials' in popup", JFBConnect will redirect the user to Facebook, which should redirect them back to your site after a successful authentication.

If you're not getting data, it means there's something else going on that's interfering with that process. Can you try the following steps to see if it helps:
* Set Debug Mode in JFBConnect to 'On' - That may show an error message as to what's going wrong
* Turn off any SEF extensions you haven't enabled, or anything else that could alter the URLs on your site
* Disable any optimization extensions

Hopefully, one, or all, of the options above helps fix things. If so, we can help you pare back those settings so you don't have your website working without optimization or SEF URLs for long.

Thanks,
Alex


Ok. After enabling the Debug mode, disabling the System - SEF extension and disabling the "Show 'Login Credentials' in popup" setting too, we only got this message:

"We were unable to retrieve your Facebook account information. Please try again".

We don't have any other optimization / SEF extension (unless we're unaware of it of course).

If the "Show 'Login Credentials' in popup" setting is enabled, the browser stays with a blank page and the address bar has a Facebook url (m.facebook.com/v2.6/dialog/oauth?redirect_uri=...).

We have Joomla 3.5.1 and just upgraded to the latest JFBConnect, 7.0.0.

Thanks.
The topic has been locked.
Support Specialist
7 years 11 months ago #58011 by alzander
There's no common problems I see on your site. However, I do see some issues with the Facebook Tracking Pixel you've included on the page. It looks like:
<script src="/<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
...
That script src in the first line is invalid Javascript.

A few lines lower, there's also:
<script src="// ViewContent
// Track key page views (ex: product page, landing page or article)
fbq('track', 'ViewContent');
Again, the src is wrong (I don't think there should be a src at all).

Since that is Facebook's own Javascript code that's getting munged up, it could easily be causing problem with other Facebook features. All I can suggest for now is to fix those issues and let me know if you see an improvement. If not, we'll continue to help however we can.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
7 years 11 months ago #58021 by intrahouse

alzander wrote: There's no common problems I see on your site. However, I do see some issues with the Facebook Tracking Pixel you've included on the page. It looks like:

<script src="/<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
...
That script src in the first line is invalid Javascript.

A few lines lower, there's also:
<script src="// ViewContent
// Track key page views (ex: product page, landing page or article)
fbq('track', 'ViewContent');
Again, the src is wrong (I don't think there should be a src at all).

Since that is Facebook's own Javascript code that's getting munged up, it could easily be causing problem with other Facebook features. All I can suggest for now is to fix those issues and let me know if you see an improvement. If not, we'll continue to help however we can.

Thanks,
Alex



Thanks, Alex. I cleaned those scripts. I left the FB tracking code but in a good state as you can see now, yet the problem's still there.
The topic has been locked.