Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook browser on iOS #168

Merged
merged 1 commit into from
Sep 16, 2021
Merged

Conversation

kyrsquir
Copy link
Contributor

@kyrsquir kyrsquir commented Sep 16, 2021

Current Facebook browser regex doesn't seem to correctly handle iOS case:

Sample user agents:

Android Facebook browser:
Mozilla/5.0 (Linux; Android 10; ONEPLUS A6000 Build/QKQ1.190716.003; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/93.0.4577.82 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/335.0.0.28.118;]

iOS Facebook browser:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_4_1 like Mac OS X) WebKit/8610 (KHTML, like Gecko) Mobile/18D61 [FBAN/FBIOS;FBDV/iPhone8,4;FBMD/iPhone;FBSN/iOS;FBSV/14.4.1;FBSS/2;FBID/phone;FBLC/ru_RU;FBOP/5]

Not sure which part of the iOS string is the version, please correct me if I made a wrong call with FBSV/14.4.1.

@DamonOehlman
Copy link
Owner

@kyrsquir Thanks heaps for this. I'm sure a lot of people will be happy to see this resolved. I'll merge the PR in and do a release.

@DamonOehlman DamonOehlman merged commit 6c0c95f into DamonOehlman:master Sep 16, 2021
@DamonOehlman
Copy link
Owner

And done - 5.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants