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 not known #296

Closed
andrewduhan opened this issue Apr 3, 2017 · 2 comments
Closed

Facebook browser not known #296

andrewduhan opened this issue Apr 3, 2017 · 2 comments

Comments

@andrewduhan
Copy link

How to reproduce

browser = Browser.new("Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Mobile/14D27 [FBAN/FBIOS;FBAV/86.0.0.48.52;FBBV/55555555;FBDV/iPhone9,3;FBMD/iPhone;FBSN/iOS;FBSV/10.2.1;FBSS/2;FBCR/AT&T;FBID/phone;FBLC/en_US;FBOP/5;FBRV/0]")
browser.known?
=> false
browser.name.to_s
=> "Generic Browser"

What do you expect

browser.known?
=> true
browser.name.to_s
=> "Facebook"

Software:

  • Rails version: 5.0.0.1
  • Browser gem version: 2.3.0
@fnando
Copy link
Owner

fnando commented Apr 16, 2017

Is this the user agent when Facebook opens up a page on a web view?

@JustinMcDonald
Copy link

Here is another example; user agent from an external link opened from iOS Facebook app (uses Facebook browser):

Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60 [FBAN/FBIOS;FBAV/135.0.0.45.90;FBBV/66877072;FBDV/iPhone9,3;FBMD/iPhone;FBSN/iOS;FBSV/10.3.3;FBSS/2;FBCR/AT&T;FBID/phone;FBLC/en_US;FBOP/5;FBRV/0]

@fnando fnando closed this as completed in 7f3a4d2 Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants