api - Facebook app in a page: auth and error 191 on redirect_uri -
i'm following this docs create facebook app work in page, i've errors. i've created index.php with:
$i = parse_signed_request($_post['signed_request'], $mysecret); if ($i['oauth_token']){ echo "<script type='text/javascript'> var oauth_url = 'http://www.facebook.com/dialog/oauth/'; oauth_url += '?client_id=myappid'; oauth_url += '&redirect_uri=' + encodeuricomponent('http://www.facebook.com/pages/null/page_id/app_myappid'); oauth_url += '&scope=email'; window.top.location = oauth_url; </script>"; }else{ location.href="mypage.html"; }
my app's settings are:
website facebook login: http://mysite.com/app/ canvas url : http://mysite.com/app/index.php?canvas=1 page tab url: http://mysite.com/app/index.php
this code generate
api error code: 191 api error description: specified url not owned application error message: 'invalid redirect_uri given url not permitted application configuration.'
i've tried 'http://www.facebook.com/mypagealias/app_myappid' redirect_uri getting same error.
if change redirect_uri http://apps.facebook.com/myappid/index.php (but isn't want!) facebook ask me auth , works fine firefox (ie goes infinite loop).
i've read anywhere , i've doing others tests i've error...
place canvas url , page tab url
http://mysite.com/app/
Comments
Post a Comment