本文整理匯總了PHP中Facebook::get_info_filtered方法的典型用法代碼示例。如果您正苦於以下問題:PHP Facebook::get_info_filtered方法的具體用法?PHP Facebook::get_info_filtered怎麽用?PHP Facebook::get_info_filtered使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Facebook
的用法示例。
在下文中一共展示了Facebook::get_info_filtered方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Facebook
$memberInfo = $member->get_info_filtered();
$consoleObj->select($_GET['cID']);
if (!$member->hasAccess($consoleObj)) {
exit;
}
}
if (trim($_SERVER['HTTPS']) == "" || $_SERVER['HTTPS'] == "off") {
$dispHTTP = "http://";
} else {
$dispHTTP = "https://";
}
include_once "../plugins/facebook/facebook.php";
$fbObj = new Facebook($mysqli);
$blnCheckForFacebook = $fbObj->hasFacebook($memberInfo['member_id']);
if ($blnCheckForFacebook) {
$fbInfo = $fbObj->get_info_filtered();
$fbID = $fbInfo['fbconnect_id'];
if (time() - $fbInfo['lastupdate'] > 1800) {
$fbObj->accessToken = $fbInfo['access_token'];
$fbInfo = $fbObj->getFBInfo();
if ($fbInfo == "") {
// User revoked access through Facebook, refresh page and re-ask for access
$fbObj->delete();
echo "\n\t\t\t\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\n\t\t\t\t\twindow.location = '" . $MAIN_ROOT . "members/console.php?cID=" . $_GET['cID'] . "';\n\t\t\t\t\n\t\t\t\t</script>\n\t\t\t\n\t\t\t";
exit;
}
$arrColumns = array("name", "lastupdate");
$arrValues = array($fbInfo['name'], time());
$fbObj->select($fbID);
$fbObj->update($arrColumns, $arrValues);
$fbInfo = $fbObj->get_info_filtered();
示例2: Member
<?php
/*
* Bluethrust Clan Scripts v4
* Copyright 2014
*
* Author: Bluethrust Web Development
* E-mail: support@bluethrust.com
* Website: http://www.bluethrust.com
*
* License: http://www.bluethrust.com/license.php
*
*/
include_once "../../_setup.php";
include_once "../../classes/member.php";
$prevFolder = "../../";
include "facebook.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$fbObj = new Facebook($mysqli);
if ($member->authorizeLogin($_SESSION['btPassword']) && $fbObj->hasFacebook($member->get_info("member_id"))) {
$fbObj->accessToken = $fbObj->get_info_filtered("access_token");
$fbObj->getFBInfo();
$fbObj->delete();
echo "\n\t\t\n\t\t<div class='shadedBox' style='width: 50%; margin-left: auto; margin-right: auto'>\n\t\t\n\t\t\t<p align='center' class='main' style='padding: 20px'>\n\t\t\t\tSuccessfully disconnected your Facebook account!<br><br>\n\t\t\t\t<a href='" . $MAIN_ROOT . "members'>Return to My Account</a>\n\t\t\t</p>\n\t\t\n\t\t</div>\n\t\n\t";
}