Untitled
By: a guest | Feb 9th, 2010 | Syntax:
PHP | Size: 1.04 KB | Hits: 38 | Expires: Never
$message = 'Check out this cute pic.';
$attachment = array( 'name' => 'i\'m bursting with joy',
'href' => 'http://icanhascheezburger.com/2009/04/22/funny-pictures-bursting-with-joy/',
'caption' => '{*actor*} rated the lolcat 5 stars',
'description' => 'a funny looking cat',
'properties' => array('category' => array( 'text' => 'humor', 'href' => 'http://www.icanhascheezburger.com/category/humor'), 'ratings' => '5 stars'), 'media' => array(array('type' => 'image', 'src' => 'http://icanhascheezburger.files.wordpress.com/2009/03/funny-pictures-your-cat-is-bursting-with-joy1.jpg', 'href' => 'http://icanhascheezburger.com/2009/04/22/funny-pictures-bursting-with-joy/')), 'latitude' => '41.4', 'longitude' => '2.19');
$action_links = array( array('text' => 'Recaption this', 'href' => 'http://mine.icanhascheezburger.com/default.aspx?tiid=1192742&recap=1#step2'));
$facebook->api_client->stream_publish($message, $attachment, $action_links);