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

The Archive Base Latest Questions

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

On my site I allow users to authenticate via creating an account with my

  • 0

On my site I allow users to authenticate via creating an account with my site or using their Facebook account. In the case they choose to log in with my site account rather than FB, on one page within my site I allow them to search for friends using the friend list from their FB account. So at the point they choose to search for friends that also have accounts with my site, I have to authenticate them at that point so I make the call to present the FB login page. I am using the Facebook SDK to do this. No problems to this point…

string[] extendedPermissions = FacebookApp.ExtendedPermissions.Split(',');

        FacebookOAuthClient oauth = new FacebookOAuthClient { ClientId = FacebookApp.AppId };

        var parameters = new Dictionary<string, object>
                {
                    { "response_type", responseType },
                    { "display", display },
                    { "state",  state},
                    { "redirect_uri", FacebookApp.RedirectUri + redirectUriPage}
                };

        if (extendedPermissions != null && extendedPermissions.Length > 0)
        {
            var scope = new StringBuilder();
            scope.Append(string.Join(",", extendedPermissions));
            parameters["scope"] = scope.ToString();
        }

        Uri loginUrl = oauth.GetLoginUrl(parameters);

        return loginUrl;

In my app settings on Facebook I have specified the Site URL as: [http://www.]suchandsuch.com/Subdir/. Facebook states that they will only redirect to this URL. When I make the call to authenticate the person, I pass in a redirect_uri parameter as seen above because instead of [http://www.]suchandsuch.com/Subdir/ I want to redirect to http://www.suchandsuch.com/Subdir/subpage.aspx. The redirect works but when I check Response.QueryString it is empty however when I look at the address bar on the browser, all the parameters are there on the querystring. I assume that FB will redirect to any page underneath the url specified on the Apps page. Am I missing something or is it true that FB will only redirect to the exact url specified?

PS ignore the [] around the urls, SO wouldn’t let me post that many links in my question. 🙂

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

    Apparently, FB will only redirect to that exact URL with the parmeters.

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

Sidebar

Related Questions

On my site users should be able to authenticate using their twitter account. Another
I'm using the Facebook C# SDK to allow users to log in to my
I'd like to allow users on my site to preview their posts before submitting
I am looking to allow users to register and login using their social network
I have a site that uses the Facebook JavaScript API to allow users to
I'm using Facebook's PHP SDK to log users in to my website, like so:
To allow users and site admins to view/add/edit/delete data in my application I decided
I'm trying to allow users to post videos on my site by supplying only
My asp.net site allows users to pick the theme they want from a list
I'm creating an site which allows users to upload photos. It's a linux server.

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.