Reputation: 11951
I am not even sure what its called, but when you put a link in Facebook in your comments, an image and a little description come up. I am looking to do this for my website, I just have no idea where to start, can someone shed some light on this.
Thanks, J
Upvotes: 0
Views: 68
Reputation: 3858
IMB's answer will probably work, but what you really want is Open Graph metadata in there.
That's the first thing the Facebook parser looks for when scanning pages for descriptions and images.
Once you've added the metadata, you can use the Facebook debugger to confirm that everything is as you want. Not only will that tool show you what properties Facebook is detecting, it also has the added benefit of blasting away Facebook's cache for that page, so you can be sure that it's displaying the most up to data information for your site.
Upvotes: 1
Reputation: 15909
When users post your URL in their wall, you can help Facebook choose this for you by putting this in your web page's <head>
tag:
<meta name="title" content="Your Title" />
<meta name="description" content="You Description" />
<link rel="image_src" href="http://example.com/image.jpg" />
Upvotes: 1