Iam trying to upload images to an album . Is there any way to create a description for the album.
I am using the following code.
<?php
require_once 'fbpic/library/facebook.php';
$app_id = "xxxx";
$app_secret = "xxxxx";
$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
'cookie' => true
));
$fbcheck= $facebook->getUser();
if(is_null($fbcheck) or !$fbcheck or $fbcheck==0)
{
header("Location:{$facebook->getLoginUrl(array('scope' => 'user_status,publish_stream,user_photos,photo_upload'))}");
}
$facebook->setFileUploadSupport("http://" . $_SERVER['SERVER_NAME']);
// add a status message
$photo = $facebook->api('/me/photos', 'POST',
array(
'source' => '@' .realpath("ContactUs.jpg") ,
'message' => 'It is a programming test'
)
);
?>