javascript - how to display title, description and image for facebook share widget -


as i'm new facebook apis, using facebook share widget in website. working fine want share widget post description , thumb image of specific video when user clicks on widget of video in site. posting fine title, link(dynamic) , images(showing images of corresponding page). want show particular thumb image of video, images instead. please me in issue. i've gone through facebook meta tags og:'title',og:'description' , og:'image'. none of them worked well..

here link of site:

http://www.reportershub.com/profile/john_raj

here code..

<div id="fb-root"></div> <html xmlns:fb="http://ogp.me/ns/fb#">    <fb:share-button href="http://<?php echo $_server['server_name']; ?>/tvnews/<?php echo $videos[0]['indexer']; ?>/<?php echo empty($videos[0]['title_seo']) ? $videos[0]['title'] : $videos[0]['title_seo']?>/success/videos/news" type="box_count"></fb:share-button>    <script>                   window.fbasyncinit = function() {                     fb.init({                       appid      : '',                       //status     : true,                       xfbml      : true                     });`enter code here`                   };                    (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";                      fjs.parentnode.insertbefore(js, fjs);                    }(document, 'script', 'facebook-jssdk'));                 </script> 

instead of meta, can use facebook sharer link -

http://www.facebook.com/sharer.php?s=100&p[title]=titleheresexily&p[url]=http://www.mysexyurl.com&p[summary]=mysexysummaryhere&p[images][0]=http://www.urltoyoursexyimage.com


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -