views:

21

answers:

0

Alright,

I am developing a website that integrates with Facebook, and it retrieves photos of the users. The code to call it is

$param  =   array(
'method'  => 'photos.get',
'subj_id'       => $fbme['id'],
'fields'     => 'name',
'callback'  => ''
);


$photos   =   $facebook->api($param);

However the problem is that this returns a blank entry. When I try the test console at the facebook developers site it works fine for the test console however when running through my application is returns a blank entry, so I'm assuming it is a permissions problem.

The login button is currently this: <fb:login-button v="2" size="large" perms="user_photos,friends_photos,publish_stream">Login</fb:login-button>

This dialog lists the permission to grant, so I am assuming it granted the permission successfully. Any ideas as to why the photos.get isn't working. Do I have the wrong permissions?

Thanks in advance

related questions