Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

Facebook API success - loop through properties

$
0
0

Hi

 

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)

{

     trace(prop);

}

 

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?

 

 

Jakob


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>