我的代码:
<?
session_start();
include('facebook.php');
$config['appid' ] = "xxxxxxxxx";
$config['secret'] = "xxxxxxxxx";
// Create our Application instance.
$facebook = new Facebook(array(
'appId' => $config['appid'],
'secret' => $config['secret'],
'cookie' => true
));
$signedRequest = $facebook->getSignedRequest();
if($signedRequest['page']['liked'] == 1) echo "LIKED";
?>
代码在新创建的应用程序中不起作用,但它在旧应用程序中起作用。
我需要帮助。我究竟做错了什么?
谢谢你的回答