我有以下代码。即使我授权了应用程序,我也没有收到任何错误,我的名字也不会显示。也许我应该说,我的主机不支持卷曲,所以我用不需要卷曲API(https://github.com/mattmecham/php-sdk)无法连接到Facebook Graph API
<?php
require 'src/facebook.php';
$facebook = new Facebook(array(
'appId' => 'my app id here',
'secret' => 'the code that should be here...',
'cookie' => true,
));
$me = $facebook->api('/the thing that follows after facebook.com/ to get to my profile');
echo $me['name']
?>
你知道问题可能在哪里?请让我知道,如果你需要任何额外的信息...
nope ...不工作 – Tom83B 2011-03-13 19:16:05