goaccess icon indicating copy to clipboard operation
goaccess copied to clipboard

Facebook App User-Agent

Open nborrmann opened this issue 8 years ago • 5 comments

Hey guys,

I have a bunch of user-agents in my log that look like this:

Mozilla/5.0 (Linux; Android 7.1.1; Build/LMY47O.H18; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/58.0.3029.83 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/127.0.0.22.69;]
Mozilla/5.0 (Linux; Android 7.0; SM-G930F Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/58.0.3029.83 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/127.0.0.22.69;]
Mozilla/5.0 (Linux; Android 7.0; MHA-L29 Build/HUAWEIMHA-L29; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/58.0.3029.83 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/127.0.0.22.69;]
Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 [FBAN/FBIOS;FBAV/96.0.0.45.70;FBBV/60548545;FBDV/iPhone7,2;FBMD/iPhone;FBSN/iOS;FBSV/10.3.2;FBSS/2;FBCR/E-Plus;FBID/phone;FBLC/de_DE;FBOP/5;FBRV/0]
Mozilla/5.0 (iPhone; CPU iPhone OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Mobile/14C92 [FBAN/FBIOS;FBAV/90.0.0.51.69;FBBV/56254015;FBDV/iPhone6,2;FBMD/iPhone;FBSN/iOS;FBSV/10.2;FBSS/2;FBCR/1&1;FBID/phone;FBLC/de_DE;FBOP/5;FBRV/0]
Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 [FBAN/FBIOS;FBAV/96.0.0.45.70;FBBV/60548545;FBDV/iPhone8,1;FBMD/iPhone;FBSN/iOS;FBSV/10.3.2;FBSS/2;FBCR/o2-de;FBID/phone;FBLC/de_DE;FBOP/5;FBRV/0]
Mozilla/5.0 (Linux; Android 4.4.4; G7-L01 Build/HuaweiG7-L01) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/MESSENGER;FBAV/121.0.0.15.70;]

These apparently are from the facebook in-app browser. Goaccess displays them as "Chrome" and "Others". It would be cool if they were recognized as the facebook app.

nborrmann avatar Jun 12 '17 16:06 nborrmann

I can look into this. Do you know what's the difference between FBBV, FBSV, etc?

allinurl avatar Jun 12 '17 23:06 allinurl

These guys have figured it out a bit: https://www.webmasterworld.com/search_engine_spiders/4729148.htm

For goaccess it should be sufficient to check for FBAN/FB_IAB and the proceding string that specifies what app is being used (android, ios, messenger). I'll try to grep my logs for all facebook user-agents so you can test on them.

nborrmann avatar Jun 13 '17 20:06 nborrmann

Here's all user-agents from my logs that contain "FB":

https://hastebin.com/ulifeliwic.apache

nborrmann avatar Jun 13 '17 21:06 nborrmann

Hi nborrmann! You can share all user-agents from my logs that contain "FB" ? Thank you very much!

xuan2261 avatar Jun 30 '17 16:06 xuan2261

Hello

AF-CYBER-409 avatar Feb 07 '24 02:02 AF-CYBER-409