views:

29

answers:

1

i have a problem with gettin photos using facebook graph.no errors gives,but it return empty array

permissions that i gave

$par['req_perms'] = "publish_stream, offline_access, user_status, user_photos or friend_photos, user_videos or friend_videos, read_stream, user_likes or friend_likes, user_events or friend_events, email, user_groups";

+1  A: 

You need to comma separate each permission. You can't say "...user_photos or friend_photos...", you need to say "...user_photos,friend_photos..."

Mike Sherov
still not works
kasun
@Mike Sherov Did u done this before?
kasun
Yes, I have. You need to make sure you visit a page with the req_perms code on it so the user you're looking up has granted the corrected permissions.
Mike Sherov
i didn't get u.
kasun
this is the output i am getting after decoding array(1) { ["data"]=> array(0) { } } an empty array
kasun
I meant, after you changed the code to have the permissions declared the way I mentioned, you need to visit a page on your app as the user you're trying to get pictures from. That way, it will ask for the correct permissions, and then you can perform the lookup you need.
Mike Sherov
yes now it asks me for permissions but return empty array.even though i ask user informations it doesn't give me "user like pages" list
kasun
i get the like pages adding "/likes" at the end of the requesting url
kasun
@Mike Sherov i need help for getting photos
kasun