15

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.

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
user330468
  • 381
  • 2
  • 4
  • 6
  • 2
    In your browser object (WebView or whatever), you need to change the user agent string to be a desktop browser one. I don't think there's any GET params to skip the mobile redirect. –  Sep 15 '11 at 00:17

3 Answers3

20

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.

Yahia
  • 69,653
  • 9
  • 115
  • 144
  • +1, completely correct. Modifying your user agent is, [with thin exception](https://en.wikipedia.org/wiki/Metasploit_Project), your key to equal citizen status with any browser. Do note that this doesn't work where browser capabilities differ, but for reasons of grabbing the full version of the site, this should do just fine. – MrGomez Apr 04 '12 at 21:44
1

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.

clayRay
  • 683
  • 1
  • 14
  • 32
0

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.

Somnath Muluk
  • 55,015
  • 38
  • 216
  • 226