Responsive width Facebook Page Plugin

前端 未结 17 1898
温柔的废话
温柔的废话 2020-12-02 16:28

Facebook introduced a new Page Plugin to replace the Like box plugin.

Documentation: https://developers.facebook.com/docs/plugins/page-plugin/

I\'m replacing

17条回答
  •  伪装坚强ぢ
    2020-12-02 17:30

    It seems that Facebook Page Plugin doesn't change at all in past  5-7 years :) It wasn't responsive from the begining and still not now, even new param Adapt to plugin container width doesn't work or I don't understand how it works.

    I'm searching for the most posible simple way to do PLUGIN SIZE 100% WIDTH, and it seems it is not posible. Nonsense at it's best. How designers solve this problem?

    I found the best decision for this time 2017 Oct:

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

    This lets do not broke screen size width for responsive screens, but still looks ugly, because cuted in some time and doesn't stretch... Facebook doesn't care about plugins design at all. That's the truth.

提交回复
热议问题