本文整理汇总了PHP中myclass::get_fb_freinds_on_fb方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::get_fb_freinds_on_fb方法的具体用法?PHP myclass::get_fb_freinds_on_fb怎么用?PHP myclass::get_fb_freinds_on_fb使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myclass
的用法示例。
在下文中一共展示了myclass::get_fb_freinds_on_fb方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
# get mno logon
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
# update total login so that this popup will not show again when closed.
$mc->update_total_login($mno, 3, true);
# initialize invite friends
$from = 0;
$_SESSION['cif_fb'] = 2;
// page of the invite friends in fb
$to = $limit = $_SESSION['cif_limit'] = 12;
// this is the total result every show more button clicked
# initialize facebook sdk
$facebook = $mc->fb_init('../../../../fs_folders/API/facebook-php-sdk-master/src/facebook.php');
#get fb all friends on fb
$mc->get_fb_all_freinds($mno, "-+-");
$freinds_on_fb = $mc->get_fb_freinds_on_fb($mno, "-+-", $from, $to);
if ($freinds_on_fb != false) {
$fb_freinds_on_fb_len = $freinds_on_fb['fb_freinds_on_fb_len'];
$fb_freinds_on_fb = $freinds_on_fb['fb_freinds_on_fb'];
$_SESSION['fb_freinds_on_fb'] = $freinds_on_fb['fb_freinds_on_fb'];
}
# posting profile pin in the wall
$mppno = $mc->member_profile_pic_query(array('mno' => $mno, 'type' => 'get-latest-mppno'));
$mc->add_activity_wall_post($mno, $mppno, 'Joined', 'fs_member_profile_pic', $mc->date_time);
?>
<div id="welcome-content-container" >
<center>
<div id="welcome-about-container" >
<div id="suggested-member-res" style="display:none" >
result here
示例2:
echo " \n\t\t\t\t\t\t\t\t\t\t\t\t</center> \n\t\t\t\t\t\t\t\t\t\t\t</td> \n\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t</td> \n\t\t\t\t\t\t\t\t";
if ($c % 6 == 0) {
echo "<tr>";
}
}
echo " \n\t\t\t\t\t</table>";
}
break;
case 'if-fb':
$pagenum = $_SESSION['cif_fb']++;
$limit = $_SESSION['cif_limit'];
$start = $mc->get_loop_start($pagenum, $limit);
$end = $mc->get_loop_end($pagenum, $limit);
#get fb all friends on fb
$mc->get_fb_all_freinds($mno, "-+-");
$freinds_on_fb = $mc->get_fb_freinds_on_fb($mno, "-+-", $start, $end);
if ($freinds_on_fb != false) {
$fb_freinds_on_fb_len = $freinds_on_fb['fb_freinds_on_fb_len'];
$fb_freinds_on_fb = $freinds_on_fb['fb_freinds_on_fb'];
}
if (count($fb_freinds_on_fb) != 1) {
echo " \n\t\t\t\t\t<table border='0' >\n\t\t\t\t\t\t<tr> ";
$c = 0;
for ($i = $start; $i < $end; $i++) {
if (!empty($fb_freinds_on_fb[$i]['fbfid'])) {
$c++;
$fbid = $fb_freinds_on_fb[$i]['fbfid'];
// echo " fbid [$fbid] <br>";
$fbfid = $fb_freinds_on_fb[$i]['fbfid'];
$fbfname = $mc->get_facebook_user_info_by_fbid(null, $fbid);
echo "\n\t\t\t\t\t\t\t\t\t<td style='padding-right:10px; padding-bottom:5px;' > \n\t\t\t\t\t\t\t\t\t\t<table border='0' cellspacing='0' cellpadding='0' > \n\t\t\t\t\t\t\t\t\t\t\t<tr> \n\t\t\t\t\t\t\t\t\t\t\t\t<td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t";
示例3: myclass
/**
* Created by PhpStorm.
* User: Jesus
* Date: 7/15/2015
* Time: 8:29 AM
*/
require("../fs_folders/php_functions/connect.php");
require("../fs_folders/php_functions/function.php");
require("../fs_folders/php_functions/myclass.php");
require("../fs_folders/php_functions/library.php");
require("../fs_folders/php_functions/source.php");
$mc = new myclass();
$mno =133;
//5006304-+-18604298-+-19706777-+-23204650-+-39606598-+-41003479-+-45012133-+-50104036-+-79602537-+-83400227-+-138701542-+-194600816-+-218300817-+-501146285-+-502874508-+-505657597-+-507501627-+-508547502-+-512157070-+-516668222-+-521191684-+-534805160-+-537217401-+-541896094-+-556818340-+-578342628-+-582313681-+-584652887-+-619480543-+-619756059-+-624331162-+-630621374-+-638265794-+-653084528-+-663962969-+-668336259-+-670251947-+-672846816-+-683019702-+-693416217-+-700605597-+-710264844-+-712009066-+-719853575-+-729131870-+-737820904-+-738842181-+-793587930-+-802539626-+-1002002867-+-1024988212-+-1034033904-+-1077905073-+-1079632452-+-1091653432-+-1094310128-+-1116770352-+-1136544902-+-1143658171-+-1159275053-+-1181967107-+-1188050127-+-1199361308-+-1208250019-+-1210135911-+-1213881262-+-1241820164-+-1243675327-+-1274010085-+-1286242536-+-1313181069-+-1317451421-+-1319487103-+-1339867839-+-1373507207-+-1382130266-+-1388194282-+-1407355232-+-1431840018-+-1456883726-+-1466910022-+-1472384092-+-1483482906-+-1488774109-+-1523056344-+-1585306966-+-1593150281-+-1618975995-+-1624262340-+-1635430335-+-1655364630-+-1783789844-+-1807617669-+-1832666053-+-100000074013468-+-100000106981680-+-100000140033115-+-100000147099441-+-100000169719736-+-100000199694545-+-100000316491108-+-100000357338203-+-100000359856001-+-100000407154334-+-100000464319523-+-100000549259774-+-100000677910406-+-100000779055151-+-100000805228306-+-100000907304558-+-100000963030299-+-100001000433826-+-100001019533722-+-100001070955854-+-100001075725505-+-100001231256074-+-100001272030778-+-100001305480233-+-100001532094501-+-100001665627582-+-100001705501454-+-100001890774088-+-100002028969897-+-100002097050564-+-100002532362613-+-100003462348052-+-100003527651730-+-100003639610197-+-100003670820673-+-100003796067489-+-100003818213537-+-100004895342796-+-
$freinds_on_fb = $mc->get_fb_freinds_on_fb($mno,"-+-",1,2);
$fb_freinds_on_fb_len = $freinds_on_fb['fb_freinds_on_fb_len'];
$fb_freinds_on_fb_len_limit = $_SESSION['noti_limit_end_init'];
$fb_freinds_on_fb = $freinds_on_fb['fb_freinds_on_fb'];
print_r($freinds_on_fb);