禁用 Facebook 移动浏览器检测? [英] Disable Facebook mobile browser detection?
问题描述
有谁知道通过查询字符串参数禁用 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 移动浏览器检测?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!