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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:09:06+00:00 2026-05-22T16:09:06+00:00

I have an app that’ll be used in a Facebook page tab for which

  • 0

I have an app that’ll be used in a Facebook page tab for which I’ll be requesting basic permissions.

I’m using ASP.NET MVC2 with ASP.NET 3.5.

I’m using the following Action Attributes:

[HttpPost]
[CanvasAuthorize]
public ActionResult Index(string signed_request)
{
    ViewData["section"] = "post";
    FacebookPageModel page = new FacebookPageModel();
    if (!string.IsNullOrEmpty(signed_request))
    {
        string signedRequest = Request.Form["signed_request"];
        var DecodedSignedRequest = 
            FacebookSignedRequest.Parse(
             ((FacebookConfigurationSection)   
                ConfigurationManager
                    .GetSection("facebookSettings"))
                    .AppSecret, 
            signed_request);
        var SignedRequestData = DecodedSignedRequest.Data;
        var RawRequestData = (IDictionary<string, object>)SignedRequestData;
        // ok, start getting the data
        page.user_id = FacebookWebContext.Current.UserId.ToString();
        if (RawRequestData.ContainsKey("page") == true)
        {
            Facebook.JsonObject RawPageData = 
                (Facebook.JsonObject)RawRequestData["page"];
            if (RawPageData.ContainsKey("liked") == true)
            {
                page.UserLikesThisPage = (bool)RawPageData["liked"];
            }
        }

        if (RawRequestData.ContainsKey("app_data") == true)
        {
            page.app_data = RawRequestData["app_data"].ToString();                    
        }
    }
    return View(page);
}

public class FacebookPageModel
{
    public Dictionary<string, string> SignedRequestParameters { get; set; }
    public bool UserLikesThisPage { get; set; }
    public string app_data { get; set; }
    public string user_id { get; set; }
    public IEnumerable<TwitterSearchResultsModel> tweets { get; set; }
}   

web.config:

<facebookSettings 
    appId="221731264504206" 
    appSecret="blah-blah-blah" 
    canvasUrl="http://url-of-canvas-page-tab/" 
    canvasPage="http://url-of-canvas-page-tab/" />

Calling CanvasAuthorize without any other parameters seems to request Basic permissions, which is what I want. The problem is that after clicking Allow, the forward url is sending me to the user’s profile page, not to my page tab.

How do I configure my app to forward the user back to the calling page after Allowing the requested permissions?

Thanks,
Scott

  • 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-22T16:09:06+00:00Added an answer on May 22, 2026 at 4:09 pm

    It turns out that [CanvasAuthorize] has some additional parameters I can use:

    [CanvasAuthorize(ReturnUrlPath="enter-url-here")]
    

    I know it is strange I didn’t know this, since C# Facebook SDK is so well documented. :^)

    But it is Free, so who am I to complain, right?

    Thanks.

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

Sidebar

Related Questions

I have an App that will send authenticated emails using System.Net.Mail and System.Net.NetworkCredential my
I have an app that was created using .net Framework 3.5. However, I now
I have an app that uses Apples reachability code. When I tab out of
I have an App that is used for mobile shopping. I have a LocationModel
I have an app that's a simple clone of reddit. Using Devise you can
I have a app that I'm deploying to a development server using Capistrano. I'd
I have an app that is using query string to pass some values around
I have an app that used to accept push notifications without any issues but
I have an app that lists a number of venues which have their latitude
I have my app that have some tab's (tabbar). In the first tab, there

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.