question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Post embed width under 350px

See original GitHub issue

I try to embed Facebook post to my website. It works well for screen above 350px large but under this width posts are cut… It seems that the max width for posts is 350px. What if you want to display facebook post embed for small screen under 350px? Tried with widht 100% but does not work.

<FacebookProvider appId="1234">
  <EmbeddedPost href={"https://www.facebook.com/teampulse.ch/posts/"+post} width="100%" />
</FacebookProvider>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
camel113commented, May 22, 2017

It works when I add this CSS code

.fb-post>span {
    max-width: 100%;
}
.fb-post iframe {
  border: 0;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

Otherwise I have some issue on mobile desktop

0reactions
seedencommented, Jul 6, 2018

you need to create your app (developers.facebook.com)

Sent from my iPhone

On 6 Jul 2018, at 11:38, omkarsk98 notifications@github.com wrote:

Where will I get the correct appId?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Embedded Instagram post with description: Same heights?
I changed the width to 350px. I searched for responsive instagram embed and found something for single post embeds.
Read more >
How to change Facebook embedded posts plugin width
If you are using the Facebook Embedded Posts Plugin released at the beginning ... but the smaller width that facebook accept is range...
Read more >
Embedded Form Alignment and Other Formatting Tips - Formsite
We recommend setting the form's Style -> Form Width to 100%, then use the host site to size and align the embedding container....
Read more >
Omit CSS and adjust styles - Iframely
For a possible UI fix for Facebook embeds that do not fit on smaller iOS screens (min width for Facebook posts is 350px):...
Read more >
Web Image Specifications "Cheat Sheet"
Will appear on page at a max width of 504 pixels (will scale to a max of 1:1). Shared Link Image (in post):...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found