facebookfacebook-graph-apix-facebook-platformfacebook-field-expansion

How can I use field expansion to expand one or two fields, while still getting all default fields for an object?


On Facebook's platform, using the Graph API, how can I request default fields + one or two field expanded fields, without having to explicitly request each default field?

As far as I can tell, as soon as you field expand a single field, it overrides all the default fields.

Being able to say, ?fields=default_fields,comments.limit(10).summary(true) would be amazing, considering how often fields change and how most objects have little overlap in the fields available on them.


Solution

  • It is not possible to specify fields in addition to the default.

    By specifying a field, you're indicating your preference to limit (or expand) the specific data you want. As such, the defaults are overridden and you need to specify each field you want to get back.