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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:41:19+00:00 2026-05-22T20:41:19+00:00

I am using Facebook Connect in my application. Everything works out pretty well. However

  • 0

I am using Facebook Connect in my application. Everything works out pretty well. However on my page in constructor, i want to know user already has logged into Facebook i want to display a different page rather than login page. How can i do this? I am using Facebook Developer Toolkit 3.1 and Silverlight 4.0. In short, i want to know whether the user is connected to facebook or not.

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-22T20:41:19+00:00Added an answer on May 22, 2026 at 8:41 pm

    Note – this is in MVC – if you are using Silverlight, you may need to modify some of the code.

    I’ve used the following. In my “landing page” I have the following:

    if (Request.Cookies["AuthenticatedViaFacebook"] != null)
    {
        string val = Server.HtmlEncode(Request.Cookies["AuthenticatedViaFacebook"].Value);
        if (val == "true")
        {
            return RedirectToAction("Login", "Account");
        }
    }
    

    In the Account/Login page I do a quick re-direct to facebook:

    var oAuthClient = new FacebookOAuthClient(FacebookApplication.Current);
    oAuthClient.RedirectUri = new Uri(ConfigurationManager.AppSettings["RedirectUrl"]);
    var loginUri = oAuthClient.GetLoginUrl(new Dictionary<string, object> { { "state", returnUrl } });
    return Redirect(loginUri.AbsoluteUri + "&scope=user_birthday");
    

    If it comes back succesfull – I authorize the user and send them into the system.

    I store the facebook id in my database, so I know what user it is.

    I don’t know of a quicker, or better way of doing it – this works pretty quickly. You see the facebook page url for a second or so and then you are in your system

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

Sidebar

Related Questions

I'm using facebook connect to let users login my application easy. It works well,
I am using Facebook Connect for sharing something on my appliction. So I want
I have a facebook connect site using the c# facebook toolkit. I want to
I'm building a website that allows user to connect using Facebook Connect. So far
I have a mobile application that I'm using with Facebook connect. I'm having trouble
I am using Facebook Connect with my app. Everything is set up, all the
I have a Facebook Connect app that I monetize using Google AdSense. I want
I'm developing a facebook connect Application with Facebook C# SDK, I want to send
I using facebook connect in my application. i am not able to logout of
I'm using Facebook connect for request credentials to the user's information. I'm doing it

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.