Connect to facebook from Flash

I want to press a button in my flash application, login to facebook, leave a comment on the wall and exit. I am trying to figure it out, but it seems complicated. Does anyone have an example or some code sample for this simple function?

+8
comments flash login actionscript-3 facebook
source share
3 answers

Good thing you mentioned actioncript3. This is the AS3 SDK for Facebook
On the side of the note, you can find this article quite useful.

+1
source share

BigSpaceship has released a bunch of classes, one of which is for ActionScript and connecting to Facebook. Take gander on your review page http://www.bigspaceship.com/blog/labs/bss-classes-flash-and-the-fb-graph/ and see if this works for something that works for your idea (it would seem to be).

+1
source share

As stated in previous answers, you can simply use the api chart to connect to facebook. Below is an example of how to start your facebook connection and how to get your access_token (it is used here to publish on the wall).

public function FBConnect():void { //Set applicationid _applicationID = "YourID"; //Set permissions to ask for _extendedPermissions = {perms:"read_stream, publish_stream, user_about_me, read_friendlists, user_photos"}; //Initialize facebook Facebook.init(_applicationID); } public function post(message:String):void { var _params:Object = new Object(); _params.access_token = Facebook.getSession().accessToken; _params.message = message; Facebook.api("/" + _user + "/feed", messagePosted, _params, "POST"); } 

That should do the trick :)

+1
source share

All Articles