Проверить есть ли в user-agent FBAN / FBAV
function isFacebookApp() {
var ua = navigator.userAgent || navigator.vendor || window.opera;
return (ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1);
}
FBAN = Application Name
FBAV = Application Version
FBBV = Build?
FBDV = ?Device??
FBMD = ?
FBSN = ? Obviously something to do with the OS/platoform
FBSV = ? Can it be OS version?
FBCR = Carrier
FBLC = Language code
Facebook user agent