Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 geolocation in facebook app browser - no allow/block prompt

I have a website which uses HTML5 geolocation. It works very well except through the Android Facebook in-app browser. This is the internal app browser that opens when a link is clicked in the Facebook app.

Normally when accessing the page a user would get a use location prompt (Allow / Block) but in the Facebook app nothing is requested and the page/site doesn't have location access.

Does anybody, for the love of all that's holy, know a solution to this or even a way around it?

I'm kind of at my wit's end here as I do not have a valid solution other than recognising that the user is in the Facebook browser and asking them to break out via the 'Open in Chrome' menu setting.

Thanks in advance

like image 314
Adam Avatar asked Feb 20 '15 22:02

Adam


1 Answers

I'm pretty sure that the Facebook in-app browser doesn't implement the HTML5 geolocation API on purpose because that would be a very easy way for somebody to phish out people's location since a lot of people already allow location for their Facebook app.

like image 104
ds-bos-msk Avatar answered Sep 28 '22 09:09

ds-bos-msk