Pulling data from FB data API

Mar 4, 2010 at 12:04 AM


Has anyone done this successfully? I have:

Facebook.Schema.data_getObject_response resp = Master.Api.Data.GetObject(temp.id2, new List<string> { "distance" });

to pull data I've stored in the datastore already. It successfully returns an object of type data_getObject_response, but if I try to print out the value (it should just be a string), I end up printing out the name of the type (Facebook.Schema.data_getObject_response). How does one work with this returned object?





Mar 7, 2010 at 10:02 PM

Anyone with any ideas on this? How does one use the result of a call to GetObject?



Mar 8, 2010 at 2:42 PM

To be more specific, take a look at the documentation for Data.GetObject method:

Return Value

An array of the values only (not the names) of specified properties of the object.


The second (index 1) is the object id (fbid); after that they will be properties you added yourself.
Well, I certainly can't apply an indexer to resp. Am I to cast this? Strange...
Mar 31, 2010 at 9:48 PM