WordPress.org

Ready to get started?Download WordPress

Forums

Hupso Share Buttons for Twitter, Facebook & Google+
[resolved] Facebook button on AJAX content (4 posts)

  1. RomSocial
    Member
    Posted 9 months ago #

    I'm using ajax to load more posts.
    And Twitter and G+ works, but facebook does not appear.
    Can you suggest some ways to make it work?

    Thanks!

    http://wordpress.org/plugins/hupso-share-buttons-for-twitter-facebook-google/

  2. kasal
    Member
    Plugin Author

    Posted 9 months ago #

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

  3. RomSocial
    Member
    Posted 9 months ago #

    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... :)

  4. kasal
    Member
    Plugin Author

    Posted 8 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.