1
<?
$fb_signed_request = $facebook->getSignedRequest();
$page_id = $fb_signed_request["page"]["id"];
$fb_like_status = $fb_signed_request["page"]["liked"];
$fb_is_admin = ($fb_signed_request["page"]["admin"]==1)?TRUE:FALSE;
$fql = "SELECT uid FROM page_admin WHERE page_id='" . $page_id . "'";
$param = array(
'method' => 'fql.query',
'query' => $fql,
'callback' => ''
);
$fqlResult = $facebook->api($param);
print_r ($fqlResult);
我得到PAGE_ID確定,但FQLRESULT爲空。我正在嘗試獲取網頁所有者的ID ..
你如何設置它們? – 2012-02-21 14:01:47
當您提示他們登錄時,您需要詢問權限。你不能設置它們,而是你可以問問用戶。請參閱http://developers.facebook.com/docs/authentication/和http://developers.facebook.com/docs/reference/api/permissions/ – DMCS 2012-02-21 15:28:53
我不明白。作爲應用程序開發人員,我不需要設置應用程序需要的權限嗎? – 2012-02-21 17:44:23