0
我開發了Facebook應用程序並在我的頁面上添加了頁面選項卡。使用Facebook Like按鈕和FSQL
我已閱讀Facebook文檔以進行畫布應用程序開發並在頁面選項卡上添加應用程序。
我想爲顯示不同頁面的人點擊我的頁面上的Like按鈕和不同頁面上的人,而不是像按鈕一樣點擊的人。
閱讀文檔後,我發現,有可能使用FSQL但是從我的SQL查詢
https://developers.facebook.com/docs/reference/fql/url_like/
https://developers.facebook.com/docs/reference/fql/
require_once 'facebook.php';
// *** Add your Facebook API Key, Secret Key here ***
$appapikey = '*********';
$appsecret = '**********';
$facebook = new Facebook($appapikey, $appsecret);
// $user_id = $facebook->require_login();
//$fql = "select name from user where uid=me()";
//$fql = "SELECT user_id FROM like WHERE object_id='122706168308'";
$fql = "SELECT user_id, object_id, post_id FROM like WHERE user_id=me()";
$param = array(
'method' => 'fql.query',
'query' => $fql,
'callback' => ''
);
$fqlResult = $facebook->api($param);
echo"hi";
echo"<pre>";
print_r($fqlResult);
echo"</pre>";
任何想法如何使它的工作,我沒有得到任何結果?
- 謝謝。
我不知道如何授權的應用程序,但是當我從以下網頁上運行的SQL可以按預期工作和我的想法我得到結果https://developers.facebook.com/docs/reference/rest/fql.query/ – 2012-02-27 11:27:00
現在我正在空數組陣列 ( [數據] =>數組 ( ) ) – 2012-02-27 12:27:16
在第一您必須授權具有所需權限的應用程序 – 2012-02-27 13:02:00