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.

I have tried what seems like every plugin to add the facebook like button to my site, but none of them are displaying on the page.

I am trying to use the iframe method to avoid having to create an app id to use the XFBML method. The iframe gets created in the right spot, but nothing is showing on the page.

Can anyone recommend a plugin that is currently working? I'm only interested in adding a Like button, I don't need other social sharing, but at this point, I'm willing to use whatever works!

share|improve this question
    
please show me the code you are adding –  andresmijares25 Jan 26 '12 at 16:13
    
Here is code straight from the developer facebook page <iframe src="//www.facebook.com/plugins/like.php?href&amp;send=false&amp;layout=standard‌​&amp;width=200&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;fon‌​t&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:35px;" allowTransparency="true"></iframe> Like I mentioned, I have tried multiple other plugins and none of them are working for me either. –  Evan Mattson Jan 26 '12 at 16:35
    
just posted my answer... –  andresmijares25 Jan 26 '12 at 17:03
add comment

2 Answers

up vote 0 down vote accepted

For the most reliable results, you need to create and App at FB. Try http://wordpress.org/extend/plugins/simple-facebook-connect/

share|improve this answer
    
If you're creating an app for a client's site to use, do you use their personal account to create the app or your own? –  Evan Mattson Jan 26 '12 at 17:06
    
You create the APP in the account you want to access with the plugin and want to "Like", not your own. Follow the instructions that the plugin itself will give you. –  songdogtech Jan 26 '12 at 17:30
1  
You can create the application on your own account and add the other person as an administrator to it. Then, when you're done with the development for them, remove yourself as the admin. I've done this for people before. –  Otto Jan 26 '12 at 17:52
    
@Otto: good point –  songdogtech Jan 26 '12 at 18:06
    
Ah, I thought about that but I wasn't sure if that would break the app ID. Great job! –  Evan Mattson Jan 26 '12 at 18:54
show 1 more comment

you are missing something.... place this on your header

 <div id="fb-root"></div>
 <script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=262517660470312";
  fjs.parentNode.insertBefore(js, fjs);
 }(document, 'script', 'facebook-jssdk'));</script>

that's all

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.