获取相册时返回null数组

时间:2010-05-14 10:59:44

标签: php facebook

<?php
$user_id = $facebook->require_login($required_permissions = 'email,photo_upload');
$has_permission = $facebook->api_client->users_hasAppPermission("photo_upload");
$albums=$facebook->api_client->photos_getAlbums($user_id, NULL);
var_dump($albums);
?>

运行此代码时我得到null

1 个答案:

答案 0 :(得分:0)

你能更具体一点吗?

尝试将变量作为第二个参数传递