Post video on facebook wall using PHP
First Follow the 5 Steps from my Previous post http://blog.theunical.com/facebook-integration/5-steps-to-publish-on-a-facebook-wall-using-php/ then in last program include the below code to publish a photo and also meta data on a facebook wall.
<?php
/**
* Here is a comment!
*/
$message = 'Watch this video!';
$attachment = array( 'name' => 'ninja cat', 'href' => 'http://www.youtube.com/watch?v=muLIPWjks_M', 'caption' => '{*actor*} uploaded a video to www.youtube.com', 'description' => 'a sneaky cat', 'properties' => array('category' => array( 'text' => 'pets', 'href' => 'http://www.youtube.com/browse?s=mp&t=t&c=15'), 'ratings' => '5 stars'), 'media' => array(array('type' => 'video', 'video_src' => 'http://www.youtube.com/v/fzzjgBAaWZw&hl=en&fs=1', 'preview_img' => 'http://img.youtube.com/vi/muLIPWjks_M/default.jpg?h=100&w=200&sigh=__wsYqEz4uZUOvBIb8g-wljxpfc3Q=', 'video_link' => 'http://www.youtube.com/watch?v=muLIPWjks_M', 'video_title' => 'ninja cat')));
$action_links = array( array('text' => 'Upload a video', 'href' => 'http://www.youtube.com/my_videos_upload'));
$target_id = 2342314; $facebook->api_client->stream_publish($message, $attachment, $action_links, $target_id);
?>
Exiting isn’t it.
– Steven
Similar Posts
- » WGTS 91.9 On The Morning Show: Donate your <b>Facebook Status</b> to WGTS <b>...</b>
- » Arts and Entertainment | The Independent UK - When friends fall <b>...</b>
- » <b>Facebook</b> On Xbox 360 - Impressions From A Live Demo
- » The TV column live
- » PHPBenelux Conference 2010 | phpbenelux.eu
Comments
One Comment on Post video on facebook wall using PHP
-
5 Steps to publish on a facebook wall using php | TheUnical Technologies Blog on
Thu, 14th Jan 2010 5:45 am
Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!






