[英]How can I know the data type in graph API response?
I'm beginner of graph API. 我是图API的初学者。 For my Application, I have to use many graph API at the same time.
对于我的应用程序,我必须同时使用许多图形API。
My question is... how can I know the response's data type? 我的问题是...我怎么知道响应的数据类型? => How can I know the response that it is the friends data?
=>如何知道响应是朋友数据?
ex) for friend data. 例如)获取朋友数据。 In response data, I can't find the data name for friend.(== like friend tag name in XML response)
在响应数据中,我找不到朋友的数据名称。(==类似于XML响应中的朋友标签名称)
request Graph URL = https://graph.facebook.com/100000726819009/friends
请求图URL =
https://graph.facebook.com/100000726819009/friends
response data in graph API for friends 朋友在图谱API中的响应数据
{
"data": [
{
"name": "Jong-Mu Choi",
"id": "1931865"
},
{
"name": "Joo Yeon Kim",
"id": "4812863"
},
{
"name": "Tommy Kang",
"id": "516573995"
},
{
"name": "Hyeoniee Jeong",
"id": "526059737"
},
{
"name": "Sung Park",
"id": "528812415"
}
]
}
http://graph.facebook.com/cocacola?metadata=1 http://graph.facebook.com/cocacola?metadata=1
You will see type=page
at the bottom. 您将在底部看到
type=page
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.