Doubt with facebook API

Asked

Viewed 35 times

-1

I’m using the facebook comment api, but it’s not responsive, when the screen is small wanted the width of the box to be different, how can I do that?

1 answer

0


I found the same doubt in Soen. Change the classes in your CSS:

.fb-comments, 
.fb-comments iframe[style] {
    width: 100% !important;
 }

Also try to:

.fb_iframe_widget,
.fb_iframe_widget iframe[style],
.fb_iframe_widget span[style],
.fb_iframe_widget *  {
    width: 100% !important;
}

There is also a reply which says the following:

This problem has been addressed by Facebook. You can now add data-width="100%" or set the width option to100% and delete any Crazy js hacks as appropriate!

In a free translation, it’s something like:

This issue was addressed by Facebook. Now you can add the property width="100%" or set the width option to 100% and delete any js hack added!

  • when the screen is responsive there is a bar underneath for me to roll to the side, I do not want this, I wanted it to decrease according to the size of the screen, that way I could not.

  • It worked Philip, thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.