vendredi 14 mars 2014

Unity Facebook AppRequestCallback


Vote count:

0




I'm having a problem to get the users' id when after I send a app request. In the facebook manual, it is described as

"An array of the recipient user IDs for the request that was created."

http://ift.tt/Ne3DzL

And my code in the callback is like:

if(responseObject.TryGetValue ("to", out to)) { string[] output = (string[])to; print(output.Length); } Where responseObject is a deserialized FBResult.

But this is giving me and error says:

"InvalidCastException: Cannot cast from source type to destination type."

I have also tried foreach string in the object, but it just would convert.

Can I please get some help on getting the number of users that I have sent request to please.

Thank you very much.



asked 49 secs ago






Aucun commentaire:

Enregistrer un commentaire