We are trying to get user information from getUser() method of facebook using php sdk (3.1.1) but it returns 0. what would be the cause?
$facebook = new Facebook(array(
'appId' => $fbconfig['appid'],
'secret' => $fbconfig['secret'],
'cookie' => true,
));
$facebook->getUser();
最新的SDK是v.3.2.2 https://github.com/facebook/facebook-php-sdk/,您应该改用它,并通过getLoginUrl()
使用登录处理逻辑
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.