Flex 4 and facebook-actionscript-api : cannot login?

The following does work: private var fbook:Facebook; private var session:FacebookSessionUtil; private var fbUser:FacebookUser private function initFacebook():void { session=new FacebookSessionUtil(API_KEY,SECRET,loaderInfo); session. AddEventListener(FacebookEvent. CONNECT,onConnect); fbook=session.

Facebook; session.login(); } private function onConnect(e:FacebookEvent):void{ var call:FacebookCall=fbook. Post(new GetInfo(fbook. Uid,GetInfoFieldValues.

ALL_VALUES)); call. AddEventListener(FacebookEvent. COMPLETE,onGetInfo); } private function onGetInfo(e:FacebookEvent):void{ this.

FbUser=(e. Data as GetInfoData).userCollection. GetItemAt(0) as FacebookUser; } and I created a button that executes the following function: (only after I'm logged-in into facebook) private function onConfirmLogin():void{ session.validateLogin(); }.

The following does work: private var fbook:Facebook; private var session:FacebookSessionUtil; private var fbUser:FacebookUser; private function initFacebook():void { session=new FacebookSessionUtil(API_KEY,SECRET,loaderInfo); session. AddEventListener(FacebookEvent. CONNECT,onConnect); fbook=session.

Facebook; session.login(); } private function onConnect(e:FacebookEvent):void{ var call:FacebookCall=fbook. Post(new GetInfo(fbook. Uid,GetInfoFieldValues.

ALL_VALUES)); call. AddEventListener(FacebookEvent. COMPLETE,onGetInfo); } private function onGetInfo(e:FacebookEvent):void{ this.

FbUser=(e. Data as GetInfoData).userCollection. GetItemAt(0) as FacebookUser; } and I created a button that executes the following function: (only after I'm logged-in into facebook) private function onConfirmLogin():void{ session.validateLogin(); }.

I wrote a simple application for facebook and it seems that I fail to login. I have the following function that is being executed after ApplicationComplete event of my main application. I get an alert that I'm not connected and I cannot fetch any information.

I entered the proper api key and secret. If it fails to do something, how can I debug and see exactly where it failed?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions