0
When sharing the link of a page on facebook either by messenger or in some post when the user clicks, the same will open in the browser of facebook itself, which in turn is giving some "weird" bugs on my page, the same being on Chrome and firefox works perfectly well, so I would like to know if there is any way to detect and force the opening of the link in the mobile browser and not on facebook?
This is the code to detect whether it is the facebook browser or not
function faceApp() {
var ua = navigator.userAgent || navigator.vendor || window.opera;
return (ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1);
}
I tried to open the external browser like this and it didn’t work
navigator.app.loadUrl('http://m.site.com', { openExternal:true });
And I also tested this one, but it didn’t work either
window.open('http://m.site.com', '_system');
It is possible. UOL does it. I also want to find out how. Facebook Browser gives some bugs in my Jquery codes.
– Priscila Nascimento