android 的 facebook 应用程序的用户代理字符串是什么 [英] What is the user agent string for facebook app from android

查看:33
本文介绍了android 的 facebook 应用程序的用户代理字符串是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们从安卓手机打开 facebook 应用程序时添加的用户代理字符串是什么.我想使用用户代理字符串从 android 操作系统中检测 facebook 应用程序,这是可以实现的.facebook 应用程序的不同设备是否有唯一的用户代理字符串

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

推荐答案

强制性免责声明:用户代理字符串通常是错误的答案.它们会改变,它们不一致,这是一种检测任何事物的脆弱方式.

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

也就是说,在三星 Galaxy S5 上进行测试,截至今天,我使用了新安装的 FB 应用程序,我得到了:

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;]

带有'FB'的部分特别像是Facebook的信息.我猜:

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

  • FB_IAB:Facebook 应用内浏览器(后跟一个版本)
  • FBAV:Facebook 应用程序版本(后跟一个版本)

FBAV 与 iOS 用户代理字符串共享,如下所示:http://mpulp.mobi/2012/01/funky-user-agent-on-facebook-iphone-app/

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/

这篇关于android 的 facebook 应用程序的用户代理字符串是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆