Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 584257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:52:43+00:00 2026-05-13T14:52:43+00:00

I wrote a simple application for facebook and it seems that i fail to

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:52:44+00:00Added an answer on May 13, 2026 at 2:52 pm

    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;
            <!-- fetching facebook user information from this.fbUser -->
        }
    

    and i created a button that executes the following function: (only after I’m logged-in into facebook)

        private function onConfirmLogin():void{
            session.validateLogin();
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got a Wavecom Supreme GSM modem. I wrote a simple application that
I'm learing LINQ-to-SQL right now and i have wrote a simple application that define
I wrote a C# application that is a simple countdown timer. I use it
I wrote simple application that using the cell phone camera. When i trying to
I wrote simple application that send some data to my server. Somehow the data
I wrote a simple application using REALBasic The issue is that AutoDiscovery is binding
I wrote some simple application that make http call ( Post ). The Response
I wrote a simple java application, I have a problem please help me; I
I wrote simple silverlight web application using the default ASP test page. If there
I wrote a simple Java application that reads and writes journals (encrypted text files)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.