简体   繁体   English

使用Facebook登录PHP

[英]PHP Login using Facebook

I am having problem connecting php web application using facebook single sign on. 我在使用Facebook单点登录连接php Web应用程序时遇到问题。

This is my setting 这是我的设定

AppDomain : localhost Site URL: http://localhost/shop/home.php AppDomain:本地主机站点网址: http://localhost/shop/home.php

Error 错误

API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration. API错误代码:191 API错误描述:应用程序不拥有指定的URL错误消息:无效的redirect_uri:应用程序配置不允许给定的URL。

I just followed this tutorial http://www.9lessons.info/2011/02/login-with-facebook-and-twitter.html anybody can guide me? 我只是按照此教程http://www.9lessons.info/2011/02/login-with-facebook-and-twitter.html有人可以指导我吗?

Localhost is not a valid domain , there are few ways to bypass the error when working locally. Localhost不是有效的域,在本地工作时,有几种方法可以绕过该错误。

One way is using hostfile . 一种方法是使用hostfile

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM