Hi.
I wrote a simple application for facebook and it seems that i fail to login. I created a test application on facebook and i test my application by going to apps.facebook.com/
i have the following function that is being executed after ApplicationComplete event of my main application.
private function initFacebook():void {
fbApiKey = "API_KEY";
fbSecret = "SECRET";
fbLoaderInfo = stage.loaderInfo;
fbSession = new FacebookSessionUtil( fbApiKey, fbSecret, fbLoaderInfo);
fbSession.addEventListener( FacebookEvent.WAITING_FOR_LOGIN, fbWaitingForLoginHandler, false, 0, true );
fbSession.addEventListener( FacebookEvent.CONNECT, fbConnectHandler, false, 0, true );
fbSession.login();
}
private function fbWaitingForLoginHandler( e:FacebookEvent ):void
{
fbSession.validateLogin();
}
private function fbConnectHandler( e:FacebookEvent ):void
{
Alert.show(fbSession.facebook.is_connected ? ' connected' : 'not connected');
}
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 ?
thansk