mssola / user_agent

This project has been moved, check the README.md file!

Home Page:https://github.com/mssola/useragent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid Facebook User Agents

dbertouille opened this issue · comments

I have been seeing issues parsing certain user agents from the Facebook app. Most requests from the Facebook app do seem to come prefixed with the browser, etc.. but occasionally I see ones like in my example below.

My feeling is it would be better to leave the browser/version as empty strings in this example. I can probably take a crack at a PR for this soon.

User Agent: [FBAN/FB4A;FBAV/16.0.0.20.15;FBBV/4061184;FBDM/{density=1.5,width=540,height=960};FBLC/en_US;FB_FW/2;FBCR/MY CELCOM;FBPN/com.facebook.katana;FBDV/Lenovo A850+;FBSV/4.2.2;FBOP/1;FBCA/armeabi-v7a:armeabi;]

Browser Name: [FBAN
Browser Version: FB4A;FBAV/195.0.0.35.99;FBBV/128710103;FBDM/{density=1.5,width=540,height=960};FBLC/en_US;FBRV/129521611;FBCR/2degrees;FBMF/samsung;FBBD/samsung;FBPN/com.facebook.katana;FBDV/SM-J250G;FBSV/7.1.1;FBOP/19;FBCA/armeabi-v7a:armeabi;]
&{{BrowserUnknown {0 0 0}} {PlatformUnknown OSUnknown {0 0 0}} DeviceUnknown}

My feeling is it would be better to leave the browser/version as empty strings in this example. I can probably take a crack at a PR for this soon.

👍