Disable Facebook mobile browser detection?

40,650

Solution 1

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.

Solution 2

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.

Share:
40,650
user330468
Author by

user330468

Updated on July 09, 2022

Comments

  • user330468
    user330468 almost 2 years

    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.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.