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

  • Home
  • SEARCH
  • 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 6232103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:03:32+00:00 2026-05-24T10:03:32+00:00

First I have searched a lot before asking ,so thanks in advance for any

  • 0

First I have searched a lot before asking ,so thanks in advance for any help
Well I have one mvc solution Developed using Facebook C# sdk What i need to do is setting Facebook application settings problematically which i have done (why?) because i need more than Facebook application to use the same solution i retrieve the settings from the database ,well one application working great the other is redircting me to the application then FacebookRedirect.axd and do it like it is crazy from here to here

http://localhost:1365/facebookredirect.axd?code=-VgxfYdz8W6uX3xBdnX0k6INCKo-SoY_OruGXt-3_PQ.eyJpdiI6Ikpfa05LclFKb1lEWHlIdFZrMlE1OUEifQ.7L99gStiSUWltcYR7WYNM57ABbZrKAnAx3efxjMiwKAlF2zolMPQsnO-85REgUSDFWPF5rSuXVnQVYX286bqNLL6RJLJFBYqG22Th1_-yuM_IGO-pTgv4MlXal7evl47&state=eyJyIjoiaHR0cDovL2FwcHMuZmFjZWJvb2suY29tL3Zhc3RzdmVyaWdldnR3byIsImMiOiJodHRwOi8vd3d3LmZhY2Vib29rLmNvbSJ9

I set the settings in the right way that is why the first application works but the second give me the same result each time .

  • 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-24T10:03:33+00:00Added an answer on May 24, 2026 at 10:03 am

    Hello every body I have figured what is the problem and thanks prabir for your help the problem was I was a new in Facebook application development the problem was i want to make more than one application use the same solution so there is no need the settings in the config file because i set them problematically on the run time and here is the peace of code i am using :

    I create a class the implement ifacebookapplication whisch contain this method :

     private IFacebookApplication GetCurrent()
            {       
                RouteData UrlData = HttpContext.Current.Request.RequestContext.RouteData;
    
                FaceBookSettings fbSettings = FaceBookSettingsManager.GetFaceBookSettingsByAppId((string)UrlData.Values["appId"]);
                var FBApp = new DefaultFacebookApplication();
    
                FBApp.AppId=fbSettings.AppId;
                FBApp.AppSecret=fbSettings.AppSecret;
                FBApp.CancelUrlPath=fbSettings.CancelUrlPath;
                FBApp.CanvasPage=fbSettings.CanvasPage;
                FBApp.CanvasUrl=fbSettings.CanvasUrl;
                FBApp.SecureCanvasUrl=fbSettings.SecureCanvasURL;
                FBApp.SiteUrl=fbSettings.SiteUrl;
                FBApp.UseFacebookBeta = fbSettings.UseFacebookBeta;
    
                return FBApp;
            }
    

    and within my application start I st this :

       FacebookApplication.SetApplication(new FaceBookApplicationSettings());
    

    and within my config file i am not setting any configuration except :

      <httpHandlers>
          <add verb="*" path="facebookredirect.axd" type="Facebook.Web.FacebookAppRedirectHttpHandler, Facebook.Web" />
        </httpHandlers>
    

    that is all thanks alot 🙂

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

Sidebar

Related Questions

I have searched around a lot for a solution, but could not find any.
this is my first question I have searched for any launching activity questions and
at first. I have searched and read here a lot and googling with bing
I have searched a lot regarding my problem but no solution so i am
I have searched a lot on this topic. I found one answer on stackoverflow,
I would like your help with something that I have searched a lot but
First of all I have searched many times in this forum but none is
First of all i want to say that i have searched each and every
First, let me just say that I have searched for information on this topic;
First of I have searched everywhere for an answer and have not come across

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.