WordPress.org

Forums

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

  1. RomSocial
    Member
    Posted 1 year 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 1 year 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 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Hupso Share Buttons for Twitter, Facebook & Google+
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.