facebook - Canvas demo (runwithfriends) always redirects to main page under my own GAE -
i'm using runwithfriends example app learn canvas programming , gae. can upload sample code gae without errors. here config.py , app.yaml files:
conf.py:
# facebook application id , secret. facebook_app_id = '' facebook_app_secret = '' # canvas page name. facebook_canvas_name = 'blah' # random token use real-time api. facebook_realtime_verify_token = 'random token' # external url application available @ real-time api # send it's pings. external_href = 'http://blah.appspot.com' # facebook user ids of admins. poor mans admin system. admin_user_ids = [''] app.yaml
application: blah version: 1 runtime: python api_version: 1 handlers: - url: /(.*\.(html|css|js|gif|jpg|png|ico)) static_files: static/\1 upload: static/.* expiration: "1d" - url: .* script: main.py - url: /task/.* script: main.py login: admin accessing demo app on gae works fine. when take exact same code, except changes need run under own gae account, app won't work. can login app using account , app shows under apps menu. so, oauth good. every time go access main page, i'm redirected iframe showing use app (can't show image, runwithfriends app on quota type this) won't go iframe:

at all.
i've looked @ , understand how url routing works:
def main(): routes = [ (r'/', recentrunshandler), (r'/user/(.*)', userrunshandler), (r'/run', runhandler), (r'/realtime', realtimehandler), (r'/task/refresh-user/(.*)', refreshuserhandler), ] application = webapp.wsgiapplication(routes, debug=os.environ.get('server_software', '').startswith('dev')) util.run_wsgi_app(application) all handlers there looks correct post/get methods. there no errors logged in gae instance either, such 404 or 405. when first use http://localhost:8080, see plenty of 200s , nothing else.
i started out using dev_appengine.py had move development gae because of https security setting. disabled https temporarily still redirected apps.facebook.com/path no matter , can't keep development within dev_appengine.py. don't know if that's related issue or not.
since demo works (when not on quota), i'm sure problem own gae instance, or configuration within fb use gae, life of me can't figure out. i'm using eclipse pydev , gae plugins.
update
adding app's fb configuration , window that's displayed after login app.
sandbox:

redirects: 
running under gae, page returned:

can post error looks like?
it sounds don't have fb redirection set properly. or potentially fb set in sandbox , you're trying access app non-sandboxed user.
Comments
Post a Comment