I'm tearing my hair out. I'm using the Facebook SDK in an iOS application to request the score of a player. The response I get looks like this when output to the console:
{ data = ( { application = { id = 790595290993938; name = "Laser Blast"; }; score = 100; user = { id = 10152606174287397; name = "Chris Koncewicz"; }; } ); }
How do I get the value for the score? I've tried making an NSDictionary using NSDictionary *d = [NSJSONSerialization JSONObjectWithData:result options:kNilOptions error:&error]; but can't see how to access the score value.
Any help greatly appreciated.
Aucun commentaire:
Enregistrer un commentaire