Actionscript 3 AS3 Mobile:Facebook API OAutheException错误

Actionscript 3 AS3 Mobile:Facebook API OAutheException错误,actionscript-3,facebook-graph-api,Actionscript 3,Facebook Graph Api,我正在使用,在尝试调用FacebookMobile.login后,当前出现OAutheException错误: var stageWebView:StageWebView = new StageWebView(); stageWebView.stage = this.stage; stageWebView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight); FacebookMobile.login(onFace

我正在使用,在尝试调用FacebookMobile.login后,当前出现OAutheException错误:

var stageWebView:StageWebView = new StageWebView();
stageWebView.stage = this.stage;
stageWebView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
FacebookMobile.login(onFacebookLogin, stage, ["publish_stream"], stageWebView);
“错误”:{ “消息”:“无效重定向\u uri:应用程序配置不允许给定URL。”, “类型”:“OAutheException”, “代码”:191}

到目前为止,使用相同的Facebook应用程序ID,我的AS3网络版本运行良好


非常感谢您的帮助和指导。

我使用了Facebook的默认重定向URL,但不幸的是,我使用的Facebook API使用了无效的默认URL,该URL与我设置的Facebook App->Advanced->Valid OAuth redirect URI不匹配,因此我添加了一个快速修复:

FacebookMobile.login(onFacebookLogin, stage, ["read_stream"], facebookWebView);

var url:String = facebookWebView.location;
url = url.replace("http%3A%2F%2Fwww%2Efacebook%2Ecom%2Fconnect%2Flogin%5Fsuccess%2Ehtml", "https://www.facebook.com/connect/login_success.html");
facebookWebView.loadURL(url);

希望这也能帮助其他人。

重定向URL需要与画布URL匹配。请参阅Thank you@Jacob的指导,我实际上回到了这篇文章来分享我发现的解决方案,但我看到了你的评论,这与我实施的解决方案相同。