I'm trying to display the number of friends a user has using my app. I've figured out through FQL how to pull out an array of the users friends using the app.
SELECT uid,name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) AND is_app_user=1
Right now, it pulls up an array when displayed. I'm trying to just display the result as a single numerical value. I'm coding in PHP. Anyone know where I need to go from here?