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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:51:59+00:00 2026-05-18T02:51:59+00:00

I am making an iFrame application for Facebook using the Facebook C# SDK. I

  • 0

I am making an iFrame application for Facebook using the Facebook C# SDK. I have it that the user is authenticating and I can get their username using the Graph API (FaceBookApp.Api(“/userid”))

My problem now is that when I do an AJAX call to a page I can no longer use the Api. The userid is 0. When opening up FireBug the response from the request is “Unsupported get request.” I suspect this has something to do with the face that the AJAX request is using a different session for the call and that session is not authenticated. I was wondering if there is any way to get around this? I known I could make the page I am requesting re-authenticate but that would mean I would have to reauth for every request which does not seem efficient. I am using Jquery to make the request.

Any help is much appreciated.

Thanks

  • 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-18T02:51:59+00:00Added an answer on May 18, 2026 at 2:51 am

    The issue is that with an ajax call in an iframe you must send the session info for the client to the server. Otherwise the FacebookApp has no way of knowing who the current user is. You can solve this in one of two ways.

    1. You can send the entire signed_request value to the server.
    2. You can use the Javascript SDK to get the users access token and send just that value to the server.

    I think the first way is the best. All you need to do is change your ajax url to include the signed request like this:

    var ajaxUrl = ‘/services/example?signed_request=<%=Request.Querystring[“signed_request”] %>’;

    Then just make your call like normal with the new url. After that the FacebookApp class will read the session from the ajax request and you will be good to go.

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

Sidebar

Related Questions

I have been making a little toy web application in C# along the lines
When making changes using SubmitChanges() , LINQ sometimes dies with a ChangeConflictException exception with
I'm making a WinForms app with a ListView set to detail so that several
Making echo of a question around the web: Is the syntax for svn:ignore patterns
After making some changes in my models (eg. new field in a model and
After making a few modifications to a rails app I am tinkering on, railroad
Im making a small python script to upload files on the net. The script
I've been making a concerted effort to improve my javascript skills lately by reading
I am making a simple game in order to learn a new language. I
I'm thinking about making a networked game. I'm a little new to this, and

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.