在localhost中运行facebook登录 [英] Run facebook login in localhost

查看:135
本文介绍了在localhost中运行facebook登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有网站需要从Facebook帐户登录。
当我从Facebook登录时,得到一个错误,



给定URL不允许应用程序配置:一个或多个给定的URL不是允许由App的设置。它必须与网站网址或画布网址匹配,否则域名必须是应用程序域名之一的子域名。



从其他网站的信息,
I已经下载并安装了pagekite



但仍然出现错误。



任何人都可以告诉我如何纠正这个。
如何运行并能够登录到Facebook。



提前感谢。

解决方案

这一个为我工作 -



1)在developer.facebook.com中,点击应用程序。



2)在APP域的设置下添加localhost。



3)点击添加平台,选择网站



4)在网址的输入框中添加
http:// localhost:portNumber /
(任何端口号适用示例
http:// localhost:9000 /
for play framework)



5。)保存更改,Fb登录应该在您的localhost上工作。


I have website where i need to login from Facebook account. when I login from facebook, get an error as,

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

From some other sites information, I have downloaded and installed pagekite

but still the error shows the same.

can anyone tell me how to rectify this. how to run and able to login to facebook.

Thanks in advance.

解决方案

This one worked for me -

1.) In the developer.facebook.com, click on App.

2) Under settings in the "APP Domain" add localhost.

3) Click on "Add Platform" and choose "Website".

4) In the input box for site url add http://localhost:portNumber/ (whatever port number is applicable example http://localhost:9000/ for play framework)

5.) Save the changes, the Fb login should work on your localhost now.

这篇关于在localhost中运行facebook登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆