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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:39:37+00:00 2026-06-18T06:39:37+00:00

I have a web site already integrated with Facebook login, using server-side authentication. I

  • 0

I have a web site already integrated with Facebook login, using server-side authentication.

I have an issue to turn it into an application running under Facebook.

The problem is that Facebook does not show the authentication page at all

Therefore, I am not even getting to the server authentication process for real.

Right now, the application is running on my local machine.

My app is defined as Facebook Application: (adding blank before localhost for site security purpose only)

  • Canvas URL: http ://localhost:4300/fbopt/
  • Secure canvas URL: https ://localhost:4303/fbopt/”

[same problem happens when running in a Sandbox, without Secure URL]

I have a “fan page” with “Go to App” button there.
Pressing a button leads me to the URL:
https://apps.facebook.com/%5Bappid%5D/?fb_source=timeline

The browser starts loading the page with the frames.
The lower frames makes the POST request to the URL I provided.

My application redirects the page to the following URL:

https://www.facebook.com/dialog/oauth?client_id=%5Bappid%5D&redirect_uri=https://localhost:4303/fbopt/hook&scope=email,user_location,user_birthday

I would expect Facebook to show up the application authentication form, with the permissions required.

Unfortunately, this does not happen. An empty page is shown within the frame, HTML is empty!

I see (from the Chrome network debugger) that the URL is indeed accessed, but the response is with HTTP 200 status (not error), but no response data. Instead, getting

X-Frame-Options: DENY

response header – rendering denied within frame! Why?

When loading the URL above “manually” outside the Facebook frames structure, I do get the authentication screen with the right permissions.

I wonder what is missing to get it work with canvas.

Any hint on what I should add, or how to debug such a problem – will be appreciated.

Thanks ,
Max

  • 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-06-18T06:39:39+00:00Added an answer on June 18, 2026 at 6:39 am

    Looks like me fundamental problem was that I was trying to redirect the whole page, instead of making a frame redirection.

    Started here:
    Blank Canvas => 'Refused to display document because display forbidden by X-Frame-Options.'

    Went here:
    https://developers.facebook.com/docs/howtos/login/login-for-canvas/

    It says:

    Because your application is being loaded in an iframe, returning a 302 to redirect the user to the Login Dialog will be unsuccessful. Instead you must redirect by setting the Javascript window.top.location property, which causes the parent window to redirect to the Login Dialog URL

    This was probably my major mistake.

    Max

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

Sidebar

Related Questions

I have a web site already developed with tons of updatePanels, buttons, and integrated
I have a web site hosted on IIS with windows authentication. I am trying
I already have an express checkout integrated with my Codeigniter application. Now I want
This is the first time I have integrated facebook into an app so I
If I want to create web site in android application by using eclipse 3.7
I have a web site already, but I would like the user to interact
I want to create an ASP.NET web site. I have not been using ASP.NET
I have a server which already host ASP.Net website. I am migrating from blogger
I was already running a sub-website under following path http://example.com/sub-site/ Now, I have created
Here's the setup. I have web site which is essentially a simple CMS. Here

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.