Query Photos uploaded only by friends

You must Login before you can answer or comment on any questions.

Hi. Wanted to know if there's a direct query whose response would be the array of photos uploaded by friends in ACS. Thanks in advance.

1 Answer

Accepted Answer

There is no this kind of direct query. Photo query api allows an optional query option "user_id", you can assign friend's id to it to query photos uploaded by friends.

— answered 9 months ago by Kefeng Zhang
answer permalink
8 Comments
  • What if I wanted an array of photos containing only those photos which are uploaded by my friends?

    — commented 9 months ago by Ammar Githam

  • Use where query to do this, following array contains friends' id.

    where = {"user_id": {"$in":[id1,id2,...]}}
    See where query.

    — commented 9 months ago by Kefeng Zhang

  • Ok Great, I'll try that. Thanks. One more thing. Suppose a user has 100+ friends in the app, how can I request all friends ids in a single query? In short I'm asking if there is any way to get the count of friends a person has. Because I can't seem to find a query related to that. Thanks in advance.

    — commented 9 months ago by Ammar Githam

  • Show 5 more comments

Your Answer

Think you can help? Login to answer this question!