简体   繁体   English

JSF + Facebook集成该应用程序的设置不允许使用一个或多个给定的URL。 它必须与网站URL或Canvas URL匹配

[英]JSF+Facebook Integration One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL

I have created a Facebook Application and details are given screen shot ! 我创建了一个Facebook应用程序,并提供了详细的屏幕截图!

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

But when i am clicking on JSF Button Login with Facebook I am getting below exception 但是,当我单击使用Facebook的“ JSF按钮登录”时,出现以下异常

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. 应用程序配置不允许使用给定的URL 。:应用程序的设置不允许使用一个或多个给定的URL。 It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. 它必须与网站URL或Canvas URL匹配,或者域必须是该应用程序域之一的子域。

Here are code i am using for redirect 这是我用于重定向的代码

private void redirect(String url, HttpServletResponse response)
            throws IOException {

        String urlSessionID = response.encodeRedirectURL(url);
        response.sendRedirect(urlSessionID);

    }

I tried other solution provided in other question which i found in Stackoverflow but its not worked for me . 我尝试了在Stackoverflow中找到的其他问题中提供的其他解决方案,但对我不起作用。

if (requestUrl.indexOf("Login.xhtml") > 0) {
            callback = requestUrl.replaceAll("Login.xhtml", "fblogin.xhtml");
        } else if (requestUrl.indexOf("UserRegistration.xhtml") > 0) {
            callback = requestUrl.replaceAll("UserRegistration.xhtml",
                    "fblogin.xhtml");
        }
        service = new ServiceBuilder().provider(FacebookApi.class)
                .apiKey(apiKey).apiSecret(apiSecret).callback(callback)
                .scope("email,offline_access").build();

I made changes in the application and it worked but only for the user who created application not for other user 我在应用程序中进行了更改,但它仅对创建应用程序的用户有效,不适用于其他用户

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 App domains must match the domain of the Facebook Web Games URL (https), Mobile Site URL, Unity Binary URL, Site URL or Secure Page Tab URL - App domains must match the domain of the Facebook Web Games URL (https), Mobile Site URL, Unity Binary URL, Site URL or Secure Page Tab URL 如何在网址格式中指示一个或多个匹配项? - How to indicate one or more match in url pattern? Facebook Canvas重定向URL - Facebook Canvas Redirect URL Facebook登录:无法加载URL此URL的域未包含在应用程序的域中 - Facebook Login :Can't Load URL The domain of this URL isn't included in the app's domains Url 代码名称一中的模式匹配用于验证 url - Url pattern matching in Codename One for validating urls 正则表达式以匹配具有6个或更多级别的URL - Regular expression to match a URL with 6 or more levels 禁用Cookie和不允许URL重写时,如何识别网站访问者? - How to identify website visitor when cookies disabled and URL rewriting is not allowed? 正则表达式一个或多个组-正则表达式以匹配带有和不带有端口号的URL - Regular expression one or more groups - regex to match a url with and without port number 由于应用程序设置损坏,Google App Engine(Java)自定义页面为“无法解析服务器的DNS地址”。 我该如何解决? - Google App Engine (Java) custom page is “Unable to resolve the server's DNS address” caused by corrupted Application Settings. How can I fix it? 集成到android的设置中 - Integration into android's settings
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM