我试图找出用户是否喜欢我的粉丝页面(我已经在里面安装了一个 FB 应用程序作为标签)页面,
我在网上搜索过,发现这段代码应该可以工作:
$signed_request = $facebook->getSignedRequest();
echo "<pre>";
print_r($signed_request);
echo "</pre>";
$liked = $signed_request["page"]["liked"];
这是我得到的数据,但我不知道用户是否喜欢该页面:
大批
(
[algorithm] => HMAC-SHA256
[code] => AQA7PQo8FBLaHlEe3IgYMBg_4Smwt_qsgWpiUnnG2XIco0ndK3zcCMgK4M7975cr1oUmL2iYv5UhBKM-hAxOmUUwbhuj2ZHfMiLNeO8ZBc4c5jexI-VZuDGFwnnW4-eg433gVbDo_uLQ8MBpjI2kT8c6B_VvNLoY4_Oel5odc6tObW54a0Thdd7a_Bhq-kHOHz-CJxgBOWLDGR9plUhgZGs9o34jHfOZLFRGOQvSxd1PcFkuMorKy2lP9AHnBdZ2BI8wsy_U_TGbPPt2uGdS5nkpvJbfvh5JPT8zULAm_nWBtZ4YfZcngSj64KZDvr8Fwr0
[issued_at] => 1374161190
[user_id] => ----
)
我错过了什么?谢谢