i have facebook reply follows:
dynamic response = client.get("me", new { fields = "verified, picture" }); below json in 'response' {"verified":true, "picture":{"data":{"url":"https://www.abc.com","is_silhouette":true}}}
how access 'url' value in subkey of 'picture'? here's tried fails:
fbpicture = response["picture.data.url"].tostring();
i've tried different syntax no avail , i've looked around no avail.
thanks in advance !
the facebook c# sdk implements object called jsonobject. easiest cast returnvalue (in json) jsonobject.
in case should like:
<!-- language-all: c# --> dynamic response = client.get("me", new { fields = "verified, picture" }); string url = response.picture.data.url;
Comments
Post a Comment