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 8570079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:28:43+00:00 2026-06-11T18:28:43+00:00

I have a Silverlight app that will be used by users as a kiosk

  • 0

I have a Silverlight app that will be used by users as a kiosk app. One user will come along, use the app, log-in to Facebook and do his thing, then the next user will come along and restart the process, also logging-in to Facebook and doing his thing.

Problem is, I can’t log the first user out of Facebook.

I’m using a web browser control within my app and, I know this is a little out of date, but I followed the instructions on Prabir’s blog, http://blog.prabir.me/post/Facebook-CSharp-SDK-Logout.aspx, to get my logout function working.

Here is my logout function:

    private void SetFacebookLogoutSource()
    {
        var fbClient = new Facebook.FacebookClient();

        var logoutParameters = new Dictionary<string, object>
                  {
                      { "next", GenerateLoginUrl(fbClient, "publish_actions").AbsoluteUri }
                  };

        var logoutUrl = fbClient.GetLogoutUrl(logoutParameters);

        webBrowser.Navigate(logoutUrl);
    }

But this just takes me to the last logged in users Facebook wall.

The GenerateLoginUrl method works as it’s what I use to get the login URL first time around.

Any ideas?

Thanks,
Greg.

  • 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-06-11T18:28:44+00:00Added an answer on June 11, 2026 at 6:28 pm

    It looks like Facebook requires an access_token to be logged out (although, correct me if I’m wrong) and this is working for me:

    private void SetFacebookLogoutSource()
    {
        var fbClient = new Facebook.FacebookClient();
    
        var logoutParameters = new Dictionary<string, object>
                  {
                      { "next", GenerateLoginUrl(fbClient, "publish_actions").AbsoluteUri },
                      { "access_token", [user's_access_token] }
                  };
    
        var logoutUrl = fbClient.GetLogoutUrl(logoutParameters);
    
        webBrowser.Navigate(logoutUrl);
    }
    

    I now have another problem… I don’t get an access_key if they don’t approve my app’s permissions, so I can’t log them out, they stay in some kind of limbo state! The joys of working with Facebook API 🙂

    /Greg

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Silverlight 3 app that that will let users download PDF files
I have a silverlight app that will be installed OOB with full trust and
I have a Silverlight app that has to load an image dynamically, depending on
In my Silverlight app I have an event handler that dynamically creates a new
I have a WCF web-service and a Silverlight app displaying data from that service.
I have a Windows Phone 7.5/Silverlight app. I have some code that I duplicate
I have a silverlight application that needs to talk to a rails app to
I have a silver light App that captures the tweets of certain Twitter user.
I have a small Silverlight 4 app that essentially consists of a grid containing
I have a Silverlight app that has a bunch of styles that are referenced

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.