當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Facebook::get_info_filtered方法代碼示例

本文整理匯總了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();
開發者ID:nsystem1,項目名稱:clanscripts,代碼行數:31,代碼來源:facebookconnect.php

示例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";
}
開發者ID:nsystem1,項目名稱:clanscripts,代碼行數:26,代碼來源:disconnect.php


注:本文中的Facebook::get_info_filtered方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。