react-device-detect icon indicating copy to clipboard operation
react-device-detect copied to clipboard

Detect Facebook In-App browser

Open cgadam opened this issue 5 years ago • 4 comments

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

cgadam avatar May 28 '20 23:05 cgadam

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

cgadam avatar May 29 '20 00:05 cgadam

Hi @cgadam, is that user agent mentioned in ua-parser.js issue is the same as you have? Can you share yours?

duskload avatar Jun 02 '20 04:06 duskload

This can be a reference: https://github.com/f2etw/detect-inapp/blob/master/src/inapp.js

mrgoonie avatar Jul 25 '20 08:07 mrgoonie

Doesn't browserName === 'Facebook' work?

ghost avatar Jun 03 '22 09:06 ghost