Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the user agent string for facebook app from android

Tags:

user-agent

What is the user-agent string added when we open facebook app from an android mobile. I want to detect facebook app from android OS using user-agent string, is that achievable. Are there unique user-agent strings for different devices for facebook app

like image 281
kharevbv Avatar asked Mar 17 '15 08:03

kharevbv


1 Answers

Obligatory disclaimer: user-agent strings are usually the wrong answer. They change, they're inconsistent, it's a brittle way to detect anything.

That said, testing on a Samsung Galaxy S5, with a freshly installed FB app as of today, I got:

Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.121 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/35.0.0.48.273;]

The parts with 'FB' specifially seem to be Facebook information. I'd guess that:

  • FB_IAB: Facebook In-App Browser (followed by a version)
  • FBAV: Facebook App Version (followed by a version)

The FBAV is shared with the iOS user-agent string as found here: http://mpulp.mobi/2012/01/funky-user-agent-on-facebook-iphone-app/

like image 108
pixelbandito Avatar answered Oct 14 '22 10:10

pixelbandito