Sir I wanted to ask u how did u add like button to your site because when i enter the iframe in the site only the front page is liked when i am in the other page of the site the thing is that there is another code XFBML i dont how how to connect it to a javascript ie i have added the code of XFBML but i dont know how to connect it to the javascript code ie <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({appId: 'your app id', status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e); }()); </script> so pls tell me what to do i hav already created a file called connect.js i dont know how to connect it
sir i dont have a forum i have a video sharing site i want like when a person is in a show like chuck and i click like the link which is posted should be the chuck programs url not the website main url
easiest way would be to use the iframe version on your site. it will pull the name, description, thumb image from your header. <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2FYOUR=DOMAIN=HERE.COM&layout=button_count&show_faces=false&width=450&action=like&font=verdana&colorscheme=light&height=35" style="border: medium none; overflow: hidden; width: 450px; height: 35px;" allowtransparency="true" frameborder="0" scrolling="no"></iframe> HTML: use this information in the header of your page <meta property="og:title" content="TITLE-OF-PAGE"/> <meta property="og:url" content="YOUR-SITE-URL"/> <meta property="og:image" content="LINK-TO-IMAGE-ON-YOUR-SITE-50x50"/> <meta property="og:description" content="DESCRIPTION-OF-CONTENT"/> <meta property="og:site_name" content="SITE-NAME"/> HTML: Details more on facebook at: http://developers.facebook.com/docs/reference/plugins/like will generate your iframe code for you. Hope this helps.