Facebook Embedded Post: force mobile view

試著忘記壹切 提交于 2019-12-13 05:57:09

问题


i've created a web platform where you can insert 'facebook embedded posts'.

Facebook Embedded Posts Docs

As you can see, i can show a post on my pages simply with

<div class="fb-post" data-href="{your-post-url}"></div>

With this tag, you can show a post in Desktop version: from 350px to 750px width.

The mobile view will be used automatically only on mobile devices. Docs says: "On mobile web, Embedded Posts automatically scale to the width of the container."

The problem is that i'd like to show these posts in their mobile version also on desktop view.

I've tried changing the browser's user agent, but probably i'm doing something wrong. Any idea?

Thanks!

来源:https://stackoverflow.com/questions/32225973/facebook-embedded-post-force-mobile-view

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