将Facebook Graph API的结果格式设置为XML而不是JSON [英] Set result format of Facebook Graph API to XML instead of JSON

查看:121
本文介绍了将Facebook Graph API的结果格式设置为XML而不是JSON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用的是format = xml参数,但是,对我来说似乎是有效的。



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



结果显示为Json格式:(



是否仍然可以使用xml格式?

解决方案

新的图形api总是返回json中的数据。



XML对解析所需的通信大小和处理有一个开销,所以它被从web API中删除。 b $ b

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?

解决方案

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.

这篇关于将Facebook Graph API的结果格式设置为XML而不是JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆