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

  • SEARCH
  • Home
  • 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 6680259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:27:15+00:00 2026-05-26T04:27:15+00:00

Well i developing a Flex desktop app and i cant logout form facebook. I

  • 0

Well i developing a Flex desktop app and i cant logout form facebook. I mean after loggin in and updating the photo i want to update, i run the method to log out, which looks like this

FacebookDesktop.logout(handleLogout);

Where handleLogout is a function where i can do other things.

The method runs but never log out. I think that maybe loading an other request i could log out, and i find that using:

“https://www.facebook.com/logout.php?” + info.get_accessToken() +
“&next=http://www.Google.com”

would log out, but i dont know where i ca get the accesToken.

Thanks in advance!

  • 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-26T04:27:16+00:00Added an answer on May 26, 2026 at 4:27 am

    The following code is implemented in for asp.net page using C# code.

    EXPLANATION

    First you need to send a request to authenticate the user(the IF part). You will get a “CODE” on successfull authentication. Then send a request with this code to authorize the application. On successful authorization you will get the access token as response.

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["code"] != null)
        {
            Response.Redirect("https://graph.facebook.com/oauth/access_token?client_id=CLIENT_ID&redirect_uri=CURRENT_URL&client_secret=APP_SECRET&code="+Request.QueryString["code"]);
         }
         else
         {
            Response.Redirect("https://www.facebook.com/dialog/oauth?client_id=CLIENT_ID&redirect_uri=CURRENT_URL&scope=read_stream");
         }
    }
    

    HERE IS THE PROCEDURE

    1. Create an asp.net website
    2. In the default.aspx page implement the above code.
    3. Replace CLIENT_ID,APP_SECRET with the AppId and AppSecret respectively
    4. CURRENT_URL should be the url of the page in which you are implementing the code.
    5. The part “&scope=read_stream” is not mandatory. If you need any additional permissions please enter it here as comma separated values.

    You will get a string in the format

    access_token=ACCESS_TOKEN_VALUE&expires=EXPIRY_TIME

    as response.


    Try this to send a POST request using flex

    var urlLoader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest("https://www.facebook.com/logout.php?next=YOUR_URL&access_token=ACCESS_TOKEN");
    request.data = binaryData;
    request.method = URLRequestMethod.POST
    urlLoader.load(request);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, I'm developing in App Engine (Java) and after a lot of tries and
Well, I think I have a very basic doubt here: I'm developing an app
I am developing a Spotify App and everything goes very well with a lot
Well, im developing and app for api 8 with TabActivity but i found out
Well I had an app I was developing in iPhone SDK 2.2 and I
Im developing a Rails app that will contain a web front end as well
Well I am developing a simple Tip Calculator app as a part of a
i'm a newbie in Flex/Air. I'm developing an AIR web browser and i want
I'm developing an GWT + AppEngine app. All works well except when I run
Well, after a long time writing .net programs in C# I started to feel

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.