Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COI'm retrieving basic information about friends. There is no limit to the number of friends at Facebook (at least as far as I know) and this can make the query string arbitrarily long. The query string length is considerably different for someone who has fifty friends than someone who has five thousand friends. For someone with five thousand friends for example, probably I should make more than one GET requests, but I was trying to figure out what would be a good threshold for the number of friend IDs to put in a single query. After all you would want to make as less queries as possible.
      singulars
    2. COAh, quite true that you want to make as few queries as possible, but I'm pretty sure you can't ask for multiple friends' info at the same time using the Graph API: looking at https://developers.facebook.com/docs/reference/api/user/ I see no way to change the query depending on the number of friends you have. I'd be very interested in seeing what one of the Graph API URLs you are using that requests multiple friends' info looks like.
      singulars
    3. COYou can actually and I've been doing this. Here is a copy paste from http://developers.facebook.com/docs/reference/api/ "You can also request multiple objects in a single query using the 'ids' query parameter. For example, the URL https://graph.facebook.com?ids=arjun,vernal returns both profiles in the same response." Instead of 'arjun' or 'vernal' above you can also use their corresponding numeric IDs. Imagine how long this query string would be if you were requesting information about friends of someone who has five thousand connections :-)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload