Posting links on wall and appears pictures and text from site

Hey guys,

how does facebook post that extra stuff when u post a link on ur facebook wall? Like it’ll let u choose a picture from the site and it will take text from the page as well. Php script? Javascript? Thx guys :slight_smile:

A mixture. It page scrapes I believe, resizes images etc. For more well known sites likes YouTube it goes further as it has prior knowledge of what text and images are most relevant.

When I post any link it takes a side banner image automatically, but due to resizing the image is not so clear and easily readable.

It’s called ancor link, as a right it is done automatically

Add this to your page source.

<html xmlns:og=“http://opengraphprotocol.org/schema/
xmlns:fb=“http://www.facebook.com/2008/fbml”>

<head>
<link rel=“shortcut icon” type=“image/x-icon” href=“favicon.ico”>

<title>TITLE</title>
<meta property=“og:title” content=“CONTENT”/>
<meta property=“og:type” content=“CONTENT TYPE”/>
<meta property=“og:url” content=“URL”/>
<meta property=“og:image” content=“IMAGE LINK”/> !!!
<meta property=“og:DESCRIPTION”
content=“”/>
<head/>

or as simple as

<html>
<head>
<title>TITLE</title>
.
.
.
<link rel=“image_src” href=“IMAGE_LINK”>
.
.
.
</head>