WordPress.org

Forums

[resolved] Invisible facebook like button (5 posts)

  1. Malivuk
    Member
    Posted 1 year ago #

    Hi,

    My problem is stupid but can't fix it... I want to display a like facebook button with counter. I'm using this iframe :

    <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(the_permalink($post->ID)); ?>&layout=button_count&show_faces=false&width=90&action=like&font=arial&colorscheme=light&height=65"
        scrolling="no" frameborder="0" style="border:none; height:20px; margin-right:10px; width:90px;" allowTransparency="true"></iframe>

    I tried almost all combination for the url : with or whithout urlencode(), $post->ID, ";" or echo but the button still doesn't appear... But when I echo the permalink, it shows the url. If I try another url (this page for instance) box is shown.

    Is it because of linking to localhost ?

    Thanks.

  2. Elshereef
    Member
    Posted 1 year ago #

    I am having the same problem here! have you fixed it?

  3. Malivuk
    Member
    Posted 1 year ago #

    Hi,

    I still have this problem. Are you running on localhost too ? I don't see any reasons for that, g+ and twitter are working well anyway...

  4. Elshereef
    Member
    Posted 1 year ago #

    This turned out to be a localhost problem after all! The code is working fine in my Server now.

  5. Malivuk
    Member
    Posted 1 year ago #

    Okay, thanks for feedback.

Topic Closed

This topic has been closed to new replies.

About this Topic