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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:02:31+00:00 2026-05-20T11:02:31+00:00

I am struggling to get off with ground with some Facebook dev work. All

  • 0

I am struggling to get off with ground with some Facebook dev work. All I want to do is retireve some user info for the logged in user. This is the code I got from another site & it looks fine to me, however is always returns IsConnected() to be false.

I am running this code within an iframe on my facebook app (in sandbox mode)

private const string APPLICATION_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxx";
private const string SECRET_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxx";

public Facebook.Rest.Api Api;   
private Facebook.Session.ConnectSession _connectSession;   

protected void Page_Load(object sender, EventArgs e)
{

    _connectSession = new Facebook.Session.ConnectSession(APPLICATION_KEY,SECRET_KEY);

    if (!_connectSession.IsConnected())
    {
        lit.Text = "Please sign-in with Facebook.";
    }
    else
    {
        try
        {
            Api = new Facebook.Rest.Api(_connectSession);
            Facebook.Schema.user u = Api.Users.GetInfo();
            img.ImageUrl = u.pic_square;
            lit.Text = string.Format("Welcome, " + u.name);
        }
        catch (Exception ex)
        {
            lit.Text = ex.Message;
        }
    }
}
  • 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-20T11:02:32+00:00Added an answer on May 20, 2026 at 11:02 am

    See this other SO question about a similar problem. The poster apparently found what he was looking for, but didn’t know how to implement it. You may be able to do so, since there’s a lot of information in the question body.

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

Sidebar

Related Questions

I'm really struggling to get my first NHibernate project off of the ground, I
I am struggling to get a subsonic select query to work, I am writing
OK, struggling to get a definitive answer to this one... I have an application
I'm trying to make some text bold using HTML, but I'm struggling to get
After some struggling I managed to get boost smart pointers to build for Windows
I've been struggling on and off with this problem since 4.1 (now I'm on
I have been struggling with a problem trying to get PLJava to work on
Ok, so I've been trying to get my head around this, but I'm struggling.
So I have been struggling with this one all morning. I have read a
I want to get a (semi-colon separated) list of all .dll and .exe in

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.