Search code examples
jsonxmlfacebookfacebook-graph-apiformat

Set result format of Facebook Graph API to XML instead of JSON


I'm trying to change the format of the result i get from the facebook graph api to XML.

I use the format=xml parameter but that don't seem to work for me.

https://graph.facebook.com/me&access_token=xxxxxxxxxxxx&format=xml

The result is shown in Json format :(

Is it still posible to use the xml format?


Solution

  • The new graph api always returns data in json.

    XML has an overhead on communication size and processing required for parsing so it's being dropped from web API's.