Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Richard Targett
Richard Targett
4,960 Points

Help with developer tools on facebook. I'm having trouble adding "LIKE" button

https://developers.facebook.com/docs/plugins/like-button

Click "Get Code" It takes two seconds. Then you will see the code that is failing me.

I dont know where or how or mainly [what] Im doing wrong. Just copied the script to under the body like it said, then placed the button on page.

It's not showing up.

Move this if possible. But above all, please don't disregard it. I found over at stack-exchange.com that people don't care for questions like this.

And facebook isn't helping. Their AI is NES-days-style

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

The code does look pretty straight forward, but I didn't try it out personally. On one of my sites (created with blogger), the Facebook like button is created with a < iframe >.

I know there are some third-party sites that create 'like' buttons for you (I can't stand dealing with Facebook cuz you really do get nowhere). I'm not sure how secure or reliable these third-party sites are, but it might be something to look into.

I don't even use FB on my other sites. I'm pretty much done with them. Sorry for you troubles and that I couldn't be more help.

Jason