강대헌파란닷컴
강대헌파란닷컴

Reputation: 11

How can I know the data type in graph API response?

I'm beginner of graph API. For my Application, I have to use many graph API at the same time.

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)


{                               
  "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"         
    }                           
  ]                             
}

Upvotes: 0

Views: 586

Answers (1)

dailyfrappe
dailyfrappe

Reputation: 11

http://graph.facebook.com/cocacola?metadata=1

You will see type=page at the bottom.

Upvotes: 1

Related Questions