Jan 28, 2011

Flex + Facebook -calling Friendliest and send them app request.


during my development a game for Facebook there is need for show a friend list and send them your app (in my case a game) request.

I searched a lot on Google but no result found that exact implement this functionality in Flex/Action Script 3.

So i decide to study the Facebook API to find the exact solution.When i dig deep in the API i found that this is very simple! but finding this lost my three hours.
So i decide to share this with other Action Script 3 developers.

Action Script Code for calling friend List.

protected function button1_clickHandler(event:MouseEvent):void
var strFuncname:String = 'inviteFriends';
The "inviteFriends" is in the index.html/index.php a JavaScript function.
I upload the sample application Code of the app, you use your own ID to login and authenticate this app.
download the source code from here.

Enjoy :)

Tahir  Alvi

Sr Flex Technologist