Hi, I want to create a Flash app for facebook. I want to load in the users friends data into Flash, and then do things with that data. Any idea how I would do that?
That's probably because the facebook apps industry is fairly untapped, and a fairly awesome way to make a lot of money
Have to say I dont know much about action script but you can certainly get the information using the API with PHP or .Net etc and then pass it to the Flash file for consumption but given it uses the REST method at the moment (though i am sure I read they will be launching a proper SOAP method) I would be surprised that action script didnt support it anyway.
I know a bit of AS2, but I've never heard of "REST". With Flash you can use sendandload to fire an object at a php script, and then just echo out the vars you want back to the flash script, but what would the php script look like?
I've got a thread going about that elsewhere, but I dunno, there's an awful lot of facebook apps out there right now...
Wouldnt have a clue as we develop in .Net rather than PHP. Dont like REST as a method of using an API but then .Net has such great support for SOAP it isnt surprising.... basically with REST you call to a URL with a lot of querystring variables/ values and receive back an XML response for your script to consume. See http://en.wikipedia.org/wiki/Representational_State_Transfer
you have to work with "amfphp" Flash > php > amfphp > mysql (or other database) > php > Flash like this. http://apps.facebook.com/mypuzzle