Change User-Agent Using PHP

爱⌒轻易说出口 提交于 2019-12-06 10:35:17
ini_set('user_agent', 'MyBrowser v42.0.4711');

Your server cannot affect the remote browser's configuration. The only place where you could change the user agent is if you were proxying the browser's requests to facebook, as it'd be your server connecting to FB, not the client.

Try redirecting to m.facebook.com instead. That displays a minimal "mobile" version.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!