I am looking at the facebook search api, but I have difficulties with the object returned.
I am using the following code:
Dictionary<string, object> searchParams = new Dictionary<string, object>();
searchParams.Add("q", "cookie");
searchParams.Add("type", "post");
var facebookClient = new Facebook.FacebookClient();
dynamic content = facebookClient.Get("/search", searchParams );
But it seems like the dynamic data returned form the query is very obscure. Sometimes the content.data[..].link returns the link to the post, other times it returns a link to an image, or a youtube video.
Are there any guide to what to expect from the results, so I can distinguise if a link is to the post, image or something else?
You should really look on
typefield in every search result which specify what object type it is, and look on documentation for searching (to know which types is supported in results) and objects fields for every object (likephoto,page,post, etc…) since every object may have different meaning of the same field…