Hello,
I am creating a Facebook application using Flash, javascript and the Graph API. I receive Facebook objects as JSON objects, and pass them into Flash via ExternalInterface
I know that, for example, if I access
https://graph.facebook.com/cocacola
I receive this object:
{
"id": "40796308305",
"name": "Coca-Cola",
"picture": "http://profile.ak.fbcdn.net/object3/1853/100/s40796308305_2334.jpg",
"link": "http://www.facebook.com/coca-cola",
"category": "Consumer_products",
"username": "coca-cola",
"products": "Coca-Cola is the most popular and biggest-selling soft drink in history, as well as the best-known product in the world.
Created in Atlanta, Georgia, by Dr. John S. Pemberton, Coca-Cola was first offered as a fountain beverage by mixing Coca-Cola syrup with carbonated water. Coca-Cola was introduced in 1886, patented in 1887, registered as a trademark in 1893 and by 1895 it was being sold in every state and territory in the United States. In 1899, The Coca-Cola Company began franchised bottling operations in the United States.
Coca-Cola might owe its origins to the United States, but its popularity has made it truly universal. Today, you can find Coca-Cola in virtually every part of the world.",
"fan_count": 5453427
}
How can I list the names of properties of the objects?
In the example above, what I’m trying to get is an Array like this one:
Array("id","name","picture","link","category","username","products","fan_count")
)
I need the name of the properties, not their values.
Any help?