jQuery Facebook - 错误消息:redirect_uri 不属于应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8077140/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 09:58:37  来源:igfitidea点击:

Facebook - Error Message: redirect_uri is not owned by the application

jqueryfacebookfacebook-javascript-sdk

提问by mauzilla

I am trying to use the FB.ui() to send apprequests to friends. My application is a tab iframe app (NOT A CANVAS APP) so in my developers section, I only have the "Basic info" and "Page Tab" section complete (not the app on facebook area) as I do not want users to be able to directly go to the application.

我正在尝试使用 FB.ui() 向朋友发送 apprequests。我的应用程序是一个标签 iframe 应用程序(不是画布应用程序),所以在我的开发人员部分,我只有“基本信息”和“页面选项卡”部分完整(不是 facebook 区域上的应用程序),因为我不希望用户成为可以直接进入应用程序。

the FB.UI() worked yesterday when I had the app of facebook area completed for my app, but when removing it I get the following error:

FB.UI() 昨天在我为我的应用程序完成了 facebook 区域的应用程序时工作,但是在删除它时我收到以下错误:

API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: redirect_uri is not owned by the application.

API 错误代码:191 API 错误说明:指定的 URL 不属于应用程序错误消息:redirect_uri 不属于应用程序。

The code I am using to send the messages is:

我用来发送消息的代码是:

FB.ui({method: 'apprequests',
                        message: 'Play RCS Let\'s make it happen game!'
                    }, function(data) {
                        $("#sendToFriends").fadeOut();
                        $("#didyouknow").fadeIn();
                        console.log(data);
                    });

I dont mind completing the area for the "App of Facebook", but is that required and does that then make the above message notification url the app location or the page tab where the application is installed?

我不介意完成“Facebook 应用程序”的区域,但这是必需的,然后使上述消息通知 url 成为应用程序位置或安装应用程序的页面选项卡吗?

Any help will do!

任何帮助都可以!

回答by leo.vingi

Populate the App Domain:and Site URL:fields in the Tab Settings. That will help with your problem. And you have to be sure that the Redirect URL matches the domain you specify.

填充选项卡设置中的App Domain:Site URL:字段。这将有助于解决您的问题。并且您必须确保重定向 URL 与您指定的域匹配。

回答by Abby

The domain of the page you are calling FB.ui()from has to match the domain that your app is set up to use in the facebook configuration.

您正在调用的页面FB.ui()的域必须与您的应用程序设置为在 facebook 配置中使用的域相匹配。