tmort / Socialite

Other
1.68k stars 163 forks source link

How to load the first Facebook like button? #37

Closed ghost closed 10 years ago

ghost commented 11 years ago

I have a page full of Facebook like buttons. I am using fake buttons (static images). When the user hovers them - the real one appears. All is working fine. However I also have Facebook Like box which does not appear until the user hovers a button.

How can I load the first Facebook like button? Or how can I load the like box separately?

Krossmaskinen commented 11 years ago

Maybe set an id on it and then use Socialite.activate() on it.

Doc quote: "Activate

Socialite.activate(element, 'widget'); activate replaces a single element (or an array of) with the specific social widget."

guillaumegarcia13 commented 11 years ago

Same issue here, Facebook button does not behave like the others. I use Socialite in a jQueryMobile web app and trigger Socialite.load with

$(document).ready(function() { Socialite.load($('.social-buttons')); });

The thing is that Facebook inject the button with a that has style="height: 0" !! :-/

tmort commented 10 years ago

We're working on the facebook height issue. Are you still experiencing the issue with the like box @ninetienne ? Closing issue for now, reopen if you are still experiencing a problem.