简体   繁体   中英

Is it possible to style the new Facebook Page Plugin?

The Facebook Like Box for Pages is being deprecated today, and Facebook is encouraging Page owners to replace it with the new Page Plugin. I have not been able to style the new Page Plugin though, and the white background does not look good on sites with dark backgrounds.

Here is what the Page Plugin code looks like:

<div class="fb-page" data-href="https://www.facebook.com" data-width="500"
data-small-header="false" data-adapt-container-width="true" data-hide-cover="false"
data-show-facepile="true" data-show-posts="true">
<div class="fb-xfbml-parse-ignore">
<blockquote cite="https://www.facebook.com"><a href="https://www.facebook.com">Facebook</a>
</blockquote>
</div>
</div>

I tried inserting style="background-color:black !important;" in both of the divs, but the plugin background color remains white.

Has anyone been able to style the Page Plugin successfully?

In their current implementation, Facebook doesn't allow you to change the background color from white. The full list of attributes that they do allow are on their developer docs .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM