ylliX - Online Advertising Network

Quick tip: How to prevent facebook from redirecting to mobile version

We all know Facebook SDK. It should be marked as beta. Or even alpha. Some things works one day, and few days after they are not. Such situation happened with sharer.php and its mobile browser detection. Using iPad 1 with iOS 5.1.1 (so it’s Safari 5.1) caused facebook to stay at its full version, but using device with iOS 7 (with Safari 7.0) triggered redirection to m.facebook.com. “So what?” some of you may thing. Well, nothing except broken sharing dialog. The solutions is not easy to google, but very simple – just add m2w as GET parameter and it will stick at full version this way:

http://www.facebook.com/sharer.php?s=100&your params here&m2w

Leave a Reply