Disable Facebook mobile browser detection?

前端 未结 3 2021
不知归路
不知归路 2020-12-30 08:13

Does anyone know of a way to disable the mobile browser detection and redirect feature of Facebook via querystring parameters?

For example, if I go to www.facebook.c

相关标签:
3条回答
  • 2020-12-30 08:22

    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

    For reference see here and here.

    0 讨论(0)
  • 2020-12-30 08:39

    The first answer is correct, however if you want it to work on an Android phone (and keep working when you click on links within the site) you need to go into the browser settings (after you've gone to the http://facebook.com?m2w) and check the "Desktop version" setting. This will prevent the browser from constantly trying to send you to either the mobile version of the site or the FB app.

    0 讨论(0)
  • 2020-12-30 08:44

    Method given by Yahia is good. Adding ?m2w to link means converting mobile to web view.

    Or,
    Change settings of mobile browser i.e. User Agent. Both Steel and Dolphin browsers allow you to change that setting however. Both are free in the market. (I am not doing any marketing of browsers.)

    Some of you may have noticed that, despite changing the User-Agent in the browser, you are still sent to a mobile website anyway. Check this patches given.

    Check this huge discussion about tricks used for hiding mobile browser.

    0 讨论(0)
提交回复
热议问题