python - facebook authorization error (fandjango) -


i'm trying make first facebook tab app django.

i did resarch , found out fandjago best.

so i'm using , when try require users authorize use decorator

facebook_authorization_required 

see : https://fandjango.readthedocs.org/en/latest/usage/authorization.html

i following error :

{    "error": {       "message": "invalid redirect_uri: given url not allowed application     configuration.",       "type": "oauthexception",       "code": 191    } } 

with url:

https://graph.facebook.com/oauth/authorize?scope=publish_stream%2c+publish_actions%2c+user_photos&redirect_uri=https%3a%2f%2fwww.facebook.com%2fpages%2fwissals-testing%2f368147096656989%3fid%3d368147096656989%26sk%3dapp_269443246412431&client_id=269443246412431 

this redirect uri :

facebook_redirect_uri = "https://www.facebook.com/pages/mypage-testing/36814709662989?id=36814709686989&sk=app_26944328962431" 

please tell me doing wrong, searched topics related th eissu couldn't figure out

edited

it worked,i had add url in app configuration "valid oauth redirect uris" problem gets me out of app url, although need stay on app!!

i'm taking guess here,

you might need set fandjango_authorization_denied_view contain canvas url


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -