本文整理汇总了PHP中Facebook::out方法的典型用法代码示例。如果您正苦于以下问题:PHP Facebook::out方法的具体用法?PHP Facebook::out怎么用?PHP Facebook::out使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Facebook
的用法示例。
在下文中一共展示了Facebook::out方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: explode
$user = $facebook->require_login();
// $file="http://projects.sibzsolutions.net/rumbaa/applicationtesto/abc.jpg";
$auth_token = $_REQUEST['auth_token'];
//$rr=$facebook->require_sess();
//echo "ddd".$_SESSION['albimg']; exit;
$fbres = $facebook->api_client->auth_getSession($auth_token);
$fb_sig_user = $_REQUEST['fb_sig_user'];
$your_message = "hi";
//$album_id="2044358";
//$response_array = $facebook->api_client->photos_upload($file, $album_id, $your_message, $fb_sig_user);
//var_dump($album_arr);
$ins1 = "select * from facebook limit 1";
$ww = mysql_query($ins1);
$pp = mysql_fetch_array($ww);
$al_name = $pp['alb_name'];
$al_img = $pp['alb_img'];
$create_album_response = $facebook->api_client->photos_createAlbum($al_name, 'A short text describing your album', '', 'everyone', $fb_sig_user);
$aid = $create_album_response['aid'];
$aiyyd = $create_album_response['link'];
$pp = explode('com/', $aiyyd);
$wwww = $pp[1];
//var_dump($create_album_response);
$album_arr = $facebook->api_client->photos_getAlbums($fb_sig_user, $aid);
//var_dump($album_arr);
$album_id = $aid;
//$response_array = $facebook->api_client->photos_upload("abc.jpg",NULL,NULL,NULL);
$response_array = $facebook->api_client->photos_upload($al_img, $album_id, $your_message, $fb_sig_user);
//$facebook->api_client->photos_upload('http://projects.sibzsolutions.net/rumbaa/applicationtesto/abc.jpg',$album_id,$your_message,$fb_sig_user);
//$facebook->out('http://projects.sibzsolutions.net/rumbaa/applicationtesto/index.php?msg=msg');
$facebook->out('http://apps.facebook.com/' . $wwww);