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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:36:16+00:00 2026-06-17T09:36:16+00:00

I have some problems getting canvas url to display for my facebook application that

  • 0

I have some problems getting canvas url to display for my facebook application that is hosted on google app engine, I’m working with python.

On google app engine (www.my-app.appspot.com) everything works great, but when I try to see my app on facebook the canvas is totally blank.

URL canvas: http://my-app.appspot.com/
Secure URL canvas: https://my-app.appspot.com/

Is there something wrong with my configurations?

Thanks

  • 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-17T09:36:17+00:00Added an answer on June 17, 2026 at 9:36 am

    Your configurations are correct.

    If you are using the https://github.com/pythonforfacebook/facebook-sdk

    You will need to make some changes to the example code.

    The example.py file defines “get” and “post” methods under the HomeHandler class.

    The “get” will not work when the page is running as a Canvas App inside Facebook.com, though it will work when the page is directly called by a browser.

    Facebook loads the Canvas App into its iframe using a POST request containing the signed_request argument as detailed here:
    https://developers.facebook.com/docs/howtos/login/signed-request/

    The first step you can take to fix the example.py file is as follows.

    This will at least get code showing up inside Facebook:

    1. Comment out the original “post” method:

      #def post(self):
      #url = self.request.get('url')
      #file = urllib2.urlopen(url)
      #graph = facebook.GraphAPI(self.current_user['access_token'])
      #response = graph.put_photo(file, "Test Image")
      #photo_url = ("http://www.facebook.com/"
                    #"photo.php?fbid={0}".format(response['id']))
      #self.redirect(str(photo_url))
      
    2. Duplicate the “get” method as the “post” method, now both get and post are:

      def post(self):
      template = jinja_environment.get_template('example.html')
      self.response.out.write(template.render(dict(
          facebook_app_id=FACEBOOK_APP_ID,
          current_user=self.current_user
      )))
      

    Once that is done, you can test within Facebook. “example.html” should display in the iframe, however, by default, “example.html” asks for an image URL to upload. That will no longer work since the original “post” method is commented out.

    To fix the functionality, you’ll need to create if/then statements in the def post(self): method to handle requests. For instance, you may want to re-integrate the original “post” method by checking for the ‘url’ argument – using self.request.get(‘url’) – if it is there, then you know you are receiving an image URL and should branch to the original “post” code

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

Sidebar

Related Questions

I have problems getting some of my views aligned in a relative layout that
i have some problems with a Query seem IN dosen't work with Group_concat, that
I have some problems with Javascript. In fact, I'm just newbie in that script
i have some problems getting trac to be running with apache. have no idea
I have some problems with my script below, I am getting the following warnings,
I have an application that makes use of a canvas that contains several WPF
I'm fairly new to WPF and I have some problems getting databinding to work
I have had some problems with getting GAE and Maven to work with each
I have some problems getting the custom formated JSON data into a dijit.form.FilteringSelect. It
I'm new to Tkinter and I have some problems getting the desired layout. Here's

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.