Support » Plugin: Hupso Share Buttons for Twitter, Facebook & Google+ » Facebook button on AJAX content

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author kasal

    (@kasal)

    I am not sure that Facebook can be loaded that way. You can give URL of your website and I will take a look.

    Thanks, Kasal,

    I have figured it out, just needed to add correct parse code, it requires single node, not an array.

    So, in my JavaScript in the success callback function I put:

    success    : function(data){
                        $data = $(data);
                        if($data.length > 7){
                            $data.hide();
                            $datahandle = $content.append($data);
                            $data.fadeIn(500, function(){
    FB.XFBML.parse($datahandle[0]);
                            });

    Of course it seems I’m parsing the whole page rather than needed node, so any suggestions are welcome… 🙂

    Plugin Author kasal

    (@kasal)

    Great that you got it working. You code might help someone with a similar problem in the future.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Facebook button on AJAX content’ is closed to new replies.