Unable to add a Facebook "Like" button on my GoDaddy Website Tonight websites.?
|
04-13-2014, 06:50 AM
Post: #3
|
|||
|
|||
Hi There,
After going to this link https://developers.facebook.com/docs/ref...gins/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. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Unable to add a Facebook "Like" button on my GoDaddy Website Tonight websites.? - Bill - 04-13-2014, 06:27 AM
[] - Gabe_GoDaddy - 04-13-2014 06:50 AM
|
User(s) browsing this thread: 1 Guest(s)