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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:32:52+00:00 2026-05-28T03:32:52+00:00

I am hosting a Facebook app on Google app engine, I need to make

  • 0

I am hosting a Facebook app on Google app engine, I need to make sure the user is logged into facebook before anything.

What I can currently do is display facebook’s log in button using fbxml, but I prefer the user would be redirected to Facebook’s log in page if he wasn’t logged in, then back to my app’s main page, this way I can make sure that the user is logged in before doing anything.

I am new to Facebook apps, I read here that I can redirect the user to

https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL

in order to authenticate him. But using GAE’s self.redirect(url) doesn’t work, the page stays the same. I was hoping I could do something like this in my handler:

if u'signed_request' in self.request.POST:
        facebook.load_signed_request(self.request.get('signed_request'))
        if not facebook.user_id:
            self.redirect("https://www.facebook.com/dialog/oauth?"+
                          "client_id={0}&redirect_uri={1}"
                          .format(FACEBOOK_APP_ID, EXTERNAL_HREF))
            return

but as i said earlier this doesn’t work.

  • 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-28T03:32:53+00:00Added an answer on May 28, 2026 at 3:32 am

    I’m assuming by ‘Facebook App’ you mean a Canvas App – so something that will live at https://apps.facebook.com/YOUR_NAMESPACE from a user perspective?

    If so, you’ll need to add the redirect via Javascript using window.top, as your app is loaded in an iframe. See https://developers.facebook.com/docs/appsonfacebook/tutorial/ and search for ‘top’, then view the example toward the end of the page.

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

Sidebar

Related Questions

When hosting WPF user controls within a WinForms MDI app there is a drawing
Currently I am hosting a Django app I developed myself for my clients, but
I am building a facebook platform web app using GWT and hosting it on
How to logout the user from our site when they logged out from Facebook?
Is there any free hosting for Javascript? Recently google has been hosting jQuery,etc... and
I have really simple few lines of Facebook app, using the new Facebook API:
I have a Facebook PHP SDK APP in development phase and i'm stuck on
I want to use Facebook ID to welcome all facebook user that enter my
I am using FBML to embed a swf file into my facebook application, but
I am self-hosting a Firefox add-on that users can download from my website. When

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.