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.
01
<?php
02
/**
03
* Here is a comment!
04
*/
05
$message
=
'Watch this video!'
;
06
$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'
=>
' '
,
'video_link'
=>
'http://www.youtube.com/watch?v=muLIPWjks_M'
,
'video_title'
=>
'ninja cat'
)));
07
08
$action_links
=
array
(
array
(
'text'
=>
'Upload a video'
,
'href'
=>
'http://www.youtube.com/my_videos_upload'
));
09
$target_id
= 2342314;
->api_client->stream_publish(
$message
,
$attachment
,
$action_links
,
$target_id
);
10
11
?>
Exiting isn’t it.
– Steven
-->
Tags: facebook wall video
Similar Posts
- » College players are updating <b>Facebook</b> during games
- » Get the name of host page / <b>php</b> include - Hot Scripts Forums
- » 7 <b>Facebook</b> photos that will get you defriended | Guyism
- » Review: House M.D. (iPhone) | Loot Ninja
- » James Cameron calls fan f**king a**hole | WOPULAR
Comments
9 Comments 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
Bruno Gomes on Wed, 24th Mar 2010 10:18 pm
Hello…
Thanks for the code..
I have a little question.. Do u have a script that uploads a photo to facebook.
Thanks.
Steven Robert on Thu, 25th Mar 2010 10:10 am
Yes Bruno, check this page http://blog.theunical.com/facebook-integration/add-picture-on-facebook-wall-using-php/.
kamarul on Wed, 16th Jun 2010 1:48 am
Dear Steven,
Thank you for your script. Anyway, I got problem when publishing it on my wall. It just appear post on wall. nothing else. Hope you can help me out.
Steven Robert on Wed, 16th Jun 2010 3:52 am
hi Kamarul,
There are many problems solved here pls check http://blog.theunical.com/facebook-integration/5-steps-to-publish-on-a-facebook-wall-using-php/
Steven Robert on Wed, 16th Jun 2010 12:39 pm
Kamarul did u followed all the steps?
kamarul on Thu, 17th Jun 2010 9:51 am
Hi Steven,
Yes, i followed until step 5 and uploaded into server. But not working.
Steven Robert on Thu, 17th Jun 2010 10:59 am
Kamarul, what error you are getting?
Ravi on Mon, 20th Sep 2010 3:28 am
This really rocks Stephen..you are a genius. Thanks for the script
Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!
Saturday, October 23, 2010
Post video on facebook wall using PHP | TheUnical Technologies Blog
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment