0 Replies Latest reply on Feb 17, 2011 2:43 AM by Jakob Wagner 2048

    Facebook API success - loop through properties

    Jakob Wagner 2048 Level 1



      When connecting and logging in to facebook using Facebook API (http://code.google.com/p/facebook-actionscript-api/), in return you get either a fail or a success. I would like to loop through the objects properties and display their names. I'm doing it like so: (obj is either fail or success)


      for(var prop:String in obj)





      This works fine on the fail object but not on the success object. What wierd is, it doesn't loop at all, even though the success object have tons of properties and I can call these like this:


      trace(obj.uid); // returns id

      trace(obj.user.first_name); // returns Jakob


      Does any have ideas why this is not working?