'Google Sign In not working in facebook in app browser
We have a website with "Login with Google" feature. It works fine in chrome. However, when I share the link on Facebook, Facebook opens it in In-App browser and "Login with Google" doesn't work there.
I checked Stack Overflow's login with google functionality in facebook's In-App browser and it was working fine. Can anyone help me here? What are we missing?
Our website: solutions.acharyaprashant.org books.acharyaprashant.org
Solution 1:[1]
This is Facebook In-App Browser You can code js:
<script>
var ua = navigator.userAgent || navigator.vendor || window.opera;
function isFacebookApp() {
return (ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1);
}
if (isFacebookApp()) {
if (!window.location.href.match('redirect_fb')) {
// force open in browser ...
}
}
</script>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
