Moon
Moon

Reputation: 22605

How to style facebook like button?

I am trying to apply css to facebook like button. I know that it is violating TOS to change how the like button look. All I am trying to do is change the background of facebook like button to make it consistence with my website.

I googled about it and found several articles that I can style facebook like button if I am using fbml because fbml does not use iframe. The problem is, it looks like facebook is using iframe for fbml as well.

as far as I know, I can't directly style a webpage that is included in an iframe.

Is there an api for styling (in my case, changing background only!!) the like button?

Upvotes: 0

Views: 2288

Answers (2)

saadlulu
saadlulu

Reputation: 1395

how about over riding the image with another? i know its not the best practice, but u can't change the Facebook branded "Like" button

Upvotes: 0

alex
alex

Reputation: 490567

You can use dark or light theme.

You can not do anything to an iframe of whom's src attribute is not your domain.

The only thing I can think of is an ugly hack using absolute positioning, opacity and z-index, but I don't think it is worth mentioning.

Upvotes: 5

Related Questions