Hi,
the isDevice() function is pretty simple, it just checks the occurrences of the given device strings in the the Javascript 'navigator.userAgent' string...
an alternative to 'navigator.userAgent' can be 'navigator.platform', but it depends to what values the Facebook app is setting these variables...
can you please try adding that code in your page and try it in the Facebook app and post the alert string:
|
Quellcode
|
1
|
alert("platform="+navigator.platform+" useragent="+navigator.userAgent);
|
best regards,
Klaus