I'm trying to parse json data from the facebook c# sdk. The json data I'm trying to parse can be seen here at facebook: https://graph.facebook.com/search?q=coffee&type=place¢er=37.76,-122.427&distance=1000&access_token=AAAAAAITEghMBACQupPhpGCGi1Jce7eMfZCzt9GlpZBdhz3PlGCyHKNZB1r4FHgd9mgpm8W3g4Adpy9jJjFrsDuxcu3pE4uRT1lbIQjYKgZDZD
My code below will pop up a message box showing the first dimension of this json object, however, as you can see, there is a second dimension within each item which gives location information such as longitude and latitude. I'm struggling to find an example as to how one would get this with WP7 C# (most examples on the internet use libraries that aren't usable on WP7).
fbClient.GetCompleted += (o, er) =>
{
if (er.Error == null)
{
var result = (IDictionary<string, object>)er.GetResultData();
Dispatcher.BeginInvoke(() =>
{
foreach (var item in (JsonArray)result["data"])
{
//message box for testing purposes
MessageBox.Show((string)((JsonObject)item)["name"]);
}
});
}
});
Would someone be able to provide a quick example?
Thanks.