我正在使用facebook身份验证模块,试图使用facebook登录,但它似乎不起作用。当我尝试点击按钮时,它会在facebook网站上询问许可和类似的东西,然后重定向回我的网站,但似乎什么都没有发生(没有登录),但我可以看到一些使用firebug的会话。我在我的本地主机上工作。这是它的原因吗?我尝试手动登录并尝试单击该按钮,但它执行的操作是注销。我在数据库中检查了我的facebook id和facebook的名字,似乎是正确的。
只是为了添加更多信息。如果我已经登录,如果我使用Javascript,它似乎连接到facebook,否则,如果我注销,它类似于上面的senario。
顺便说一下,我不太擅长Silverstripe和php。非常感谢您的帮助。
谢谢!
编辑:我做得对吗?
<form id="FacebookLoginForm_LoginForm" enctype="application/x-www-form-urlencoded" method="post" action="Security/LoginForm">
<p id="FacebookLoginForm_LoginForm_error" class="message" style="display: none"></p>
<fieldset>
<input type="hidden" value="FacebookAuthenticator" name="AuthenticationMethod" id="FacebookLoginForm_LoginForm_AuthenticationMethod" class="hidden AuthenticationMethod">
</fieldset>
<div class="Actions">
<input type="image" alt="Sign in with Facebook" title="Sign in with Facebook" src="facebook/Images/signin.png" name="FacebookLoginForm_dologin" id="FacebookLoginForm_LoginForm_action_Facebook_dologin" class="action">
</div>
</form>发布于 2013-04-12 00:58:05
新西兰Pocket Rent公司的Simon Welsh创建了一个模块,允许通过Facebook登录-它在登录页面上添加了一个额外的标签。我添加了一个更整洁的read me,并修复了一些小问题。请参阅https://github.com/gordonbanderson/facebook-auth/commits/development
可以在subversion代码库http://svn.rentbox.co.nz/public/facebook/中找到西蒙的原件
https://stackoverflow.com/questions/15945508
复制相似问题