当我连接到fb
时,我看到此错误消息Fatal error: Uncaught Exception: 102:
parameters uid or session key required thrown in C:\Online\lib\fb\base_facebook.php
on line 708
我可以知道这是什么问题吗?我也验证了appID和密钥。谢谢。
这是我在php中的代码
$facebook = new Facebook(array('appId' => FB_ID, 'secret' => FB_SCRT, 'cookie' => true,));
$user = $facebook->getUser();
$api_call = array(
'method' => 'users.hasAppPermission',
'uid' => $user,
'ext_perm' => 'publish_stream'
);
$users_hasapppermission = $facebook->api($api_call);
我正在尝试将用户的权限发布到FB流