views:

47

answers:

1
<?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);
?>

I am getting null when run this code

A: 

Could you be more specific?

try to pass varialbe as a second argument

lukas