0
即時通訊只是從Facebook的頁面/事件,我仍然懷疑如何做到這一點Facebook從頁面獲取事件!不是用戶PHP sdk v4.0.x圖2.1
如果即時通訊正確或我完全跟蹤?
// for permanet session
$session = new FacebookSession("permanet app token");
// If you're making app-level requests: (copy paste from facebook :P)
$session = FacebookSession::newAppSession();
// To validate the session:
try {
$session->validate();
} catch (FacebookRequestException $ex) {
// Session not valid, Graph API returned an exception with the reason.
echo $ex->getMessage();
} catch (\Exception $ex) {
// Graph API returned info, but it may mismatch the current app or have expired.
echo $ex->getMessage();
}
if (isset($session) && $session->validate()) {
if($session) {
try {
$user_profile = (new FacebookRequest(
$session, 'GET', '/PAGE/events'
))->execute()->getGraphObject(GraphUser::className());
print_r($user_profile);
} catch(FacebookRequestException $e) {
echo "Exception occured, code: " . $e->getCode();
echo " with message: " . $e->getMessage();
}
}
所以我想知道這是錯的或者是它好我只是想後事件我不想登錄之類的東西
對不起IM在英語或解釋不好,所以如果有什麼不清楚請讓我知道,我會盡我所能解釋!
是啊,只是查看事件和它的公衆:P,非常感謝我會試試這個(我想我不能讓它看起來像Facebook上的一個upcomming事件,加入和衰落和東西?) – coldasice 2014-10-02 17:10:51