Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

As the name of the thread indicates, I want to add to my website a Facebook 'Share' and 'Like' buttons to each of my individual posts. On each post page I will have those two buttons so people can like or share that individual page.

I can't seem to find a way to do that, so i would like to ask you guys how can i achieve that effect (with a plugin or a code solution).

share|improve this question
    
What have you tried already? –  toscho Oct 9 '12 at 15:06
    
I've tried some solutions that i found on google, but with no success. –  Cláudio Ribeiro Oct 9 '12 at 15:12
    
Please read into »How to ask« and edit your question with more information. –  kaiser Oct 9 '12 at 15:17
    
Ok, i will do that. –  Cláudio Ribeiro Oct 9 '12 at 15:18
add comment

2 Answers

up vote 1 down vote accepted
  1. Install 'Simple Facebook Connect' Plugin.

  2. Go to 'Simple Facebook Connect' under 'Settings' in WordPress Admin.

  3. Configure the plugin. There is a help tab to help you.

  4. Enable 'Like Button' and 'Share Button' modules.

  5. Change the 'Like Button Settings' according to your requirements.

You are done.

More Info

  1. This plugin is from Otto. Visit this plugin on Ottopress.

  2. This plugin properly outputs Open Graph tags.

  3. From the plugin description

"Simple Facebook Connect is a framework and series of sub-systems that let you add any sort of Facebook functionality you like to a WordPress blog. This lets you have an integrated site without a lot of coding, and still letting you customize it exactly the way you'd like."

share|improve this answer
add comment

Add:

<div class="fb-like" data-send="true" data-layout="box_count" data-width="450" data-show-faces="true"></div>

into your loop where it should appear on single.php. Also the script that you need to render this is unique to your Facebook App ID when you create the code here - http://developers.facebook.com/docs/reference/plugins/like/ place that in your header for starters. I bookmark all my social button code pages in one place.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.