问题描述
有人知道通过查询字符串参数禁用Facebook的移动浏览器检测和重定向功能的方法吗?
Does anyone know of a way to disable the mobile browser detection and redirect feature of Facebook via querystring parameters?
例如,如果我在移动浏览器中转到 www.facebook.com/CraigslistGenie ,我被重定向到 http://m.facebook.com/CraigslistGenie .我希望用户继续使用该页面的www版本.
For example, if I go to www.facebook.com/CraigslistGenie in a mobile browser, I get redirected to http://m.facebook.com/CraigslistGenie. I would like the user to stay on the www version of the page.
推荐答案
,您可以更改用户代理以实现此目的,或者将?m2w
添加到链接即 http://www.facebook.com/CraigslistGenie/?m2w 不会重定向(在Android上测试),而 http://www.facebook.com/CraigslistGenie 确实重定向到 http://m.facebook.com/CraigslistGenie
you either change the user-agent to achieve that or you add ?m2w
to the link i.e. http://www.facebook.com/CraigslistGenie/?m2w does NOT redirect (tested on Android) while http://www.facebook.com/CraigslistGenie does redirect to http://m.facebook.com/CraigslistGenie
这篇关于禁用Facebook移动浏览器检测?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!