by kage65
8 replies
I'm trying to figure this out. I've figured out how to make a button where visitors can "like" my facebook page. But what about a button where they are not liking the facebook page, but instead or liking only say, an individual post, or an individual page (wordpress).
Do I make that button somewhere else?
tks
#button #facebook
  • Profile picture of the author fenway2k
    If you are using Wordpress for your site, then they have a variety of plugins that you can configure to automatically display like buttons on your pages and posts.

    Here's a link to 35 of the best Facebook Plugins for Wordpress. Some are free and some are premium.
    {{ DiscussionBoard.errors[6251972].message }}
  • Profile picture of the author Ryan Donrew
    Each like button links to a specific URL, if you have many pages you can put a PHP variable in each like button instead of putting a new link.
    That is if your making your own website, if your using Wordpress or any other CMS then you can find plugins that will do that for you.

    Example of using a php variable:

    $id = $db_connetion['id']; <---- this connects to the table where each ID is set to each post.

    <div class="fb-like" data-href="mywebsite.com/post_<?php echo $id; ?>" data-send="false" data-width="450" data-show-faces="false"></div>

    Good luck!
    {{ DiscussionBoard.errors[6251980].message }}
  • {{ DiscussionBoard.errors[6252025].message }}
    • Profile picture of the author kage65
      Originally Posted by WillR View Post

      You can create a like button for any url by using this generator:
      Ok, yea looks like I will have to make every button manually? : o (
      {{ DiscussionBoard.errors[6252128].message }}
      • Profile picture of the author wolfmmiii
        Originally Posted by kage65 View Post

        Ok, yea looks like I will have to make every button manually? : o (
        No, leaving the URL field blank tells the code to use the current URL as the default.
        Signature
        Want a REAL Online Business That's Fun to Run?
        CLICK HERE FOR INFO
        {{ DiscussionBoard.errors[6252134].message }}
        • Profile picture of the author Ryan Donrew
          Originally Posted by wolfmmiii View Post

          No, leaving the URL field blank tells the code to use the current URL as the default.
          Great info, actually did not know that, guess i have missed!
          Thanks!
          {{ DiscussionBoard.errors[6252201].message }}
  • Profile picture of the author kage65
    What's frustrating about their like button is that it dissapears if the person is not logged into facebook... For that reason I have to go and remove it.
    {{ DiscussionBoard.errors[6281027].message }}
  • Profile picture of the author Robert Bleach
    I use the Add-to-Any plugin. It has an easy to configure option to break specific share buttons out of its default bar. On my sites, I have the share bar, plus the Like button, the +1 button, and StumbleUpon -- but they have a large list of buttons to choose from. I think the bar itself is probably useless (I don't know anyone who bothers to click that) but the separate buttons make the plugin worthwhile.

    You can configure it to appear at the top, bottom or top and bottom of posts by default.
    {{ DiscussionBoard.errors[6281356].message }}

Trending Topics