Facebook like button errors

  • sylvia

    #3232

    I am having 2 errors with the Facebook like button that i implemented….one is that it only works on the posts on the home page…and 2, when I like a post on the home page…the image it posts on Facebook is always the image associated with the first post on my blog, as opposed to the correct image that is within the post that was liked. Here is my code:

    <iframe src="//www.facebook.com/plugins/like.php?href=<?php the_permalink() ?>;
    send=false&layout=standard&width=450&show_faces=false&action=like&colorscheme=light&font&height=35"
    scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;"
    allowTransparency="true"></iframe>

    Anyone here know what the issue could be?

    soapy

    #23967

    The code isn’t showing up right in the first post…here it is again….

    <iframe src="//www.facebook.com/plugins/like.php?href=<?php the_permalink() ?>;send=false&layout=standard&width=450&show_faces=false&action=like&colorscheme=light&font&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>

    Anyone here know what the issue could be?

    Anonymous

    #23968

    Search around the forum. Syahir has answered to your second question.

    jamilapatel

    #23969

    Sir do I am able to use this code on my PHP? I am using Facebook user plugin but am not 100% satisfied with that plugin can I use this code in my wordpress?

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.