Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The Facebook button is in an iFrame with a source that is on a different domain, Facebook’s domain, and so you can't change the button as it's protected by the <a href="https://en.wikipedia.org/wiki/Same-origin_policy" rel="nofollow noreferrer">same-origin policy.</a></p> <p>Also, <a href="https://developers.facebook.com/policy" rel="nofollow noreferrer">Facebook’s policy</a> prohibits changing their buttons and logos when using embedded content from Facebook, like social buttons.</p> <p>So, you're not suppose to be able to change the FB buttons, and even if you could it would be against the Facebook Terms of Service.</p> <p>But... if you still want to do it, you can use the native Facebook button and lay your own image on top or below the Facebook button to fake a custom button.</p> <p>Laying your image on top is only possible if you use CSS3 pointer-events, wich will make your image click-through and the click event will work "through" your image and actually click the Facebook button. This only works in newer browsers that support Pointer Events.</p> <p>Another option is to lay the image behind the FB button and set the FB button's opacity to zero.</p> <p>I have used this several times myself, and with a little digging around in the Facebook code you can attach hover events and everything else to make it look like a custom button. You would have to find what elements to set <code>opacity : 0</code> on.</p> <p>Have never spent any time trying to figure out how to make the unlike function of the original button work on a custom button, but it's probably possible.</p> <p>All my attempts to actually trigger the FB button with javascript or jQuery trigger() have failed, but maybe someone else has figured out how to do it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload