Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

How do I include the Facebook Like button on a page of my Weebly hosted website?

I went through all the steps to apply a "Like" button but couldn't get it to work. I don't know anything about actually building a website or code really and Weebly requires HTML if you're going to add a button.

Is it not working because the Like button code is JavaScript?

share|improve this question

2 Answers 2

Weebly has a help page that deals exactly with the "Like" button. The first part of the tutorial walks you through generating the Facebook code to be included in your page. The last step of this part is important, because you have to choose the right type of embedding code—in this case iframe. (I think here is your problem, because the XFBML code doesn't work with Weebly.)

Select the iframe code and copy it. This is important as the XFBML code will not work properly.

enter image description here

Then, the second part of the tutorial presents the steps you need to do to embed the code in your website.

share|improve this answer

I would refer to the Facebook like button not working question on Stackoverflow. The answer regarding a tool known as LINTER should do the trick! (This answer.)

This is an issue on Facebook's side that has to do with updating their cache data for your web page.


Update:

I'm not too sure how one would get a Facebook like plugin button to work if JavaScript isn't allowed. I would contact Weebly and ask them what scripting languages can be used on your web page.

Jake Rutter has a jQuery Facebook Like Plugin that you could try out. He has several demos as well as guide on how to implement the plugin. If you have any questions as to how to implement this plugin, don't hesitate to ask.

share|improve this answer
    
More like the Weebly site doesn't allow JavaScript includes –  Eight Days of Malaise Feb 11 '12 at 23:57
    
@EightDaysofMalaise Then I have no idea how she's going to get the like button to work on her web page if they don't allow JavaScript. I'll update my answer with more solutions soon... –  mdeitrick Feb 12 '12 at 13:37
    
Or perhaps Weebly does something odd with JavaScript files/embeds –  Eight Days of Malaise Feb 12 '12 at 13:50
    
@Alex I know you may not be able to view this comment but hopefully if you check here again you'll see it. I understand your answer completely but the only thing that I don't understand is HTML5 is selected in the dialog box and not XFBML. Perhaps they meant XFBML AND HTML5 won't work... maybe? Great answer anyways. –  mdeitrick Feb 12 '12 at 23:53
    
@Mike Yes, that's what they meant, XFBML and HTML5 won't work. If you look at their tutorial, the pasted code (two more steps further) is with iframe. –  Alex Feb 13 '12 at 7:13

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.