Facebook Graph API tagged_places returns empty array

I am trying to get users of tagged_places, but the array is always returned empty. If I go through the Graph explorer and create a token, then I get the expected results, but using the access token generated in my application, I get an empty array. I am requesting user_tagged_places permission, I know my application will have to go to validation due to this permission requirement, but for now I am just testing my own developer account and testing users, but it doesn't work for any of them. Will I be able to get the data before submitting my viewer app? Thanks in advance for your help. EDIT: Here's the request

function get_fb_tagged_places($session, $uid)
{
    $request = new FacebookRequest($session, 'GET', '/'.$uid.'/tagged_places');
    $response = $request->execute();
    $graphObject = $response->getGraphObject();
    $events_array = $graphObject->asArray();
    return $events_array;
}

      

UPDATE: To be sure I have added all permissions for my app and now it works! To save me the trouble of removing the permissions until I figure out, does anyone know exactly what permissions are required to get tagged_places? I assumed that user_tagged_places was all that was needed because the entire SDK manual is mentioned, but there are obviously other permissions.

+1


source to share


3 answers


I had a similar problem and didn't need permissions read_stream

. So I went through the group permissions checking them and I figured out what the problem was. You need to have permission on the item you were tagged to. So in my case, I was tagged with photos, so I needed to user_photos

allow access to user_tagged_places

. You were obviously tagged in some post in your stream, so you needed this permission. This actually poses a pretty serious problem because you need to know how the user was tagged to get their tagged_places.



+3


source


EDIT: It has been pointed out that read_stream is not what is required, it is what was noted by the user.



Found the answer at the end, permission: read_stream also seems to be necessary to view users' tagged_places, but I haven't seen this in the docs anywhere.

0


source


The way I worked was to request photos first and then its location.

me?fields=id,name,photos.limit(10){place}

      

0


source







All Articles