Fb how button code doesn't work

I tried all the options for inserting the code to get the facebook button as a button on the clients website and it doesnโ€™t appear, can anyone help me with a simple code that will make the button work, the link to it is nnacanada

+4
source share
3 answers

First you need to create an application to get the application id

https://developers.facebook.com/apps

Secondly, you must create the code for your button: https://developers.facebook.com/docs/reference/plugins/like/ OR use the following code:

You need to place your html tag like this:

<html lang="pt" xmlns:fb="http://www.facebook.com/2008/fbml"> 

And between <body> and </body> you need to put the following code

 <fb:like href="http://www.your.page.url" layout="standard" show-faces="true" send="true" width="450" action="like" colorscheme="light"></fb:like> <!-- Facebook --> <div id="fb-root"></div> <script type="text/javascript"> window.fbAsyncInit = function() { FB.init({appId: 'your-facebook-app-id', status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement('script'); e.type = 'text/javascript'; e.src = document.location.protocol + '//connect.facebook.net/pt_PT/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); </script> 

don't forget to replace "http: //www.your.page.url" and "your-facebook-app-id" with the correct values.

+2
source

Facebook provides this generator to create similar ones. http://developers.facebook.com/docs/reference/plugins/like/

If it does not appear and is generated from there, this is usually your fault. Check if you have Ghostery or similar plugins. Also check if you are using FBML without including the necessary Javascript.

Else just grab the iFrame code that Facebook provides.

+1
source

I had the same problem. At https://developers.facebook.com/docs/reference/plugins/like/ a pop-up window with the code did not appear.

In Chrome, โ€œEmpty Cache and Hard Rebootโ€ fixed it for me. At FireFox cleanup, the story did the job.

0
source

All Articles