I'm looking for a very simple piece of code that will check if a website user is browsing with the facebook in-app browser. I was able to produce a very simple piece of code to check for safari users. I'm hoping I can find something just as clean and simple for the facebook in-app browser.
Kind of like this:
JS
var isSafari = window.safari !== undefined;
function checkbrowser() {
if (isSafari) {
alert('safari incompatibility warning');
}
}