Twitist Forums
Unable to add a Facebook "Like" button on my GoDaddy Website Tonight websites.? - Printable Version

+- Twitist Forums (http://twitist.com)
+-- Forum: Facebook forums (/forum-14.html)
+--- Forum: Facebook apps (/forum-22.html)
+--- Thread: Unable to add a Facebook "Like" button on my GoDaddy Website Tonight websites.? (/thread-139373.html)



Unable to add a Facebook "Like" button on my GoDaddy Website Tonight websites.? - BILL - 04-13-2014 06:27 AM

GoDaddy support says that it is possible, but that they cannot tell me how to do it. I've spent a lot of time putting together 3 websites, and this is holding me back from being able to get more traffic to them.
I've found that, and it looks like it would work. But nothing I have tried with that on my webpage actually works. I'm looking for an explanation of how to use it.


- abraXus - 04-13-2014 06:38 AM

here are the instructions

https://developers.facebook.com/docs/reference/plugins/like/


- Gabe_GoDaddy - 04-13-2014 06:50 AM

Hi There,

After going to this link https://developers.facebook.com/docs/reference/plugins/like/

Plug in your domain name to see the HTML5 code:

It should look something like this:

1. Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.
This script uses the app ID of your app

<script type="text/javascript">(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=1156164";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Above I removed the div tag at the beginning and added type="text/javascript".

- Copy the code output from facebook and make the changes noted above. Then Open your Website Tonight and hover over the properties option for the page you wish to add the like button. Select JavaScript. Enter the copied code with the alterations to the second box titled "JavaScript placed before </body>"

Click Apply/Ok and go back to the page you are working on.

Next copy the second code from Faceboook as shown below.


2. Place the code for your plugin wherever you want the plugin to appear on your page.

<div class="fb-like" data-href="http://yourdomain.com" data-send="true" data-width="450" data-show-faces="true"></div>

Go Back to your Website Tonight and choose the content block you want to add the like button to. Once it is editable, select HTML at the lower left. Paste in the code, then save the content block.

Now save your page and voila! You should have a working FB like button.