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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:47:26+00:00 2026-05-22T14:47:26+00:00

I was following the tutorial Getting Started with an ASP.NET MVC 3 Website using

  • 0

I was following the tutorial Getting Started with an ASP.NET MVC 3 Website

using the 5.0.25 (RTW) release.

Everything is fine , except the default display “popup” uses the full width of the screen , so running the app locally is fine , but when i put it on a facebook page the buttons are not visible.

 public ActionResult LogOn(string returnUrl)
    {
        var oAuthClient = new FacebookOAuthClient(FacebookApplication.Current);
        oAuthClient.RedirectUri = new Uri(redirectUrl);
        var loginUri = oAuthClient.GetLoginUrl(new Dictionary<string, object> { 
                    { "state", returnUrl },
                    {"response_type", "token"},
                    { "display", "popup" },

                    { "scope", "offline_access,email" } });
        return Redirect(loginUri.AbsoluteUri);
    }

(screen shot) http://imageshack.us/photo/my-images/855/fbnobuttons.png/

tried to use iframe , but its not allowed , using display:”page” displays the full facebook page again (page in page).
I know i could use the javascript sdk but i need to do it this way.

i would appreciate any help

  • 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-22T14:47:27+00:00Added an answer on May 22, 2026 at 2:47 pm

    I think this related to your return Redirect(..)

    As you are in an iframe, with this code you are only changing the iframe location, while you should be redirect the WHOLE page ..

    Instead of using return redirect you should return an empty html page with this code :

    <script type="text/javascript">
      top.location.href='%s';
    </script>
    

    where %s is your login.AbsoluteUri

    Does this help ?

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

Sidebar

Related Questions

I'm following the tutorial at asp.net mvc3 at http://www.asp.net/mvc/tutorials/getting-started-with-mvc3-part3-cs @{ ViewBag.Title = Welcome; }
I'm following the ASP.NET MVC Tutorial and having started in VB.NET I'm having trouble
I decided to learn MVC so I am going through this tutorial, http://www.asp.net/mvc/tutorials/getting-started-with-mvc3-part2-cs .
I'm following the tutorial located at: http://www.asp.net/learn/mvc/tutorial-20-cs.aspx I created my own .Menu() method to
I'm following the Getting started tutorial from the Boost website. I'm trying to build
I am trying to go through the following tutorial on asp.net. When I get
I am using following tutorial to upload image file to webserver. and getting file
I'm following a tutorial http://fuelyourcoding.com/getting-started-with-jquery-mobile-rails-3/ transforming the views in a straightforward scaffolded Rails 3
I am just getting started using NAnt. I was working from a tutorial, and
I'm following the tutorial here: http://guides.rubyonrails.org/getting_started.html Everything was working fine until I tried 8.1

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.