Get only total_count friends - facebook-graph-api

me?fields=friends sampling

{
  "friends": {
    ...
    "summary": {
      "total_count": 72
    }
  },
  ...
}

I just want it total_count, but it seems that this is not a valid subfield that I can add to the request

me?fields=friends{summary}or me?fields=friends{total_count}does not work.

Not an absolute necessity, just curious why not or is it possible?

+3
source share
1 answer

A field extension only works with the fields of an object.

So, if the object has a user type, the fields that can be extended are listed in https://developers.facebook.com/docs/graph-api/reference/v2.1/user

Example

me?fields=friends{name,link}

, , , , ( ),

me?fields=friends.limit(0)

+5

Source: https://habr.com/ru/post/1545910/


All Articles