Facebook Graph API tagged_places returns empty array

前端 未结 3 763
深忆病人
深忆病人 2021-01-16 08:06

I\'m trying to get a users tagged_places but the array always comes back empty. If I go through the Graph explorer and generate a token then I get the results as ex

相关标签:
3条回答
  • 2021-01-16 08:45

    EDIT: It was pointed out that read_stream is not what is required, it is whatever the user was tagged in.

    Found the answer in the end, the permission: read_stream also seem to be required in order to see a users tagged_places however I did not see this mentioned in the docs anywhere.

    0 讨论(0)
  • 2021-01-16 08:48

    I have had a similar issue and it wasnt the read_stream permission I needed. So I went through permissions in groups testing them out and I figured out what the problem was. You need to have the permission of the item you were tagged in. So in my case I was tagged in photos, so I needed user_photos permission to gain access to user_tagged_places. You were obviously tagged in someones post on their stream so you needed that permission. It actually creates quite an issue because you need to know how a user was tagged to retrieve their tagged_places.

    0 讨论(0)
  • 2021-01-16 09:05

    The way i worked around this was by querying for photos first and then its place.

    me?fields=id,name,photos.limit(10){place}
    
    0 讨论(0)
提交回复
热议问题