01 Окт

Setting up permissions in actionscript3 facebook API

I found a solution how to set up working permissions in my flash facebook game. Here is the code:

protected function handleLoginClick(event:MouseEvent):void {
var permissions:Array = ["publish_stream", "email", "user_birthday"];
Facebook.login(onLogin, {perms:permissions.join(',')});
}

Right now i can asking facebook user to access his Email and Birthday and request to publich from my application on his facebook wall.

this code is actual for GraphAPI_Source_1_8_1.zip. All other as3 code you can find in GraphAPI_Examples_1_8_1.zip