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