react-device-detect
react-device-detect copied to clipboard
Detect Facebook In-App browser
It would be nice to be able to detect Facebook in-app browser.
Looks like ua-parser-js already detects it too: https://github.com/faisalman/ua-parser-js/blob/master/src/ua-parser.js#L318
Actually there's an open issue that needs to be solved in the dependency before this one can be actually addressed: https://github.com/faisalman/ua-parser-js/issues/421
Hi @cgadam, is that user agent mentioned in ua-parser.js issue is the same as you have? Can you share yours?
This can be a reference: https://github.com/f2etw/detect-inapp/blob/master/src/inapp.js
Doesn't browserName === 'Facebook' work?