By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,913 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,913 IT Pros & Developers. It's quick & easy.

How to display description, title and image for Facebook sharing via meta tags ?

100+
P: 108
This page is suposed to display a title ,description and image as I press the Compartir de facebook.I've used meta tags for the purpose ..However, they are not displayed. Anyone could guide me on how to make this work?

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#"
  3.       xmlns:fb="https://www.facebook.com/2008/fbml"
  4.      >
  5. <head>
  6.         <meta property="og:title" content="Smith hails 'unique' Wable legacy" /> 
  7. <meta property="og:description" content="John Smith claims beautiful football 
  8.             is the main legacy of Akhil Wable's decade at the club. " /> 
  9. <meta property="og:image" content="http://www.onjd.com/design05/images/PH2/WableAFC205.jpg" />
  10.          <meta property="og:video" content="http://example.com/awesome.swf" />
  11.         <meta property="og:video:height" content="640" />
  12.         <meta property="og:video:width" content="385" />
  13.         <meta property="og:video:type" content="application/x-shockwave-flash" />
  14.         <meta property="og:video" content="http://example.com/html5.mp4" />
  15.         <meta property="og:video:type" content="video/mp4" />   
  16.         <meta property="og:video" content="http://example.com/fallback.vid" />
  17.         <meta property="og:video:type" content="text/html" />
  18.  
  19. <title>Untitled Document</title>
  20.  
  21. <a name="fb_share" type="icon_link" 
  22.    share_url="YOUR_URL">Compartir en Facebook</a> 
  23. <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"
  24.         type="text/javascript">
  25. </script>
  26. </body>
  27. </html>
Sep 20 '11 #1
Share this Question
Share on Google+
3 Replies


Rabbit
Expert Mod 10K+
P: 12,369
It would help to see the code you're using.
Sep 20 '11 #2

100+
P: 108
Just a look at this link : jsfiddle.net/ZShEM
Sep 20 '11 #3

Rabbit
Expert Mod 10K+
P: 12,369
I don't like to visit sites I haven't heard of, could you post the code here?
Sep 20 '11 #4

Post your reply

Sign in to post your reply or Sign up for a free account.