我试图让HybridAuth社会登录这个简单的PHP站点工作。 下载HybridAuth并安装它。 然后发现,即使例子并不为社会登录(试过远程服务器上工作过。
正常signin_signup例如工作正常。 但每当我点击链接登录到社交网络(即Facebook,微博)重定向我(MY_BASE_URL /的index.php?hauth.start = Facebook和hauth.time)不显示在所有任何登录窗口/错误消息。
我已经仔细阅读张贴在这里的文档和其他解决方案。 调整好自己的config.php有一个基本的URL像http://example.com/index.php 。 但它只是没有响应。 是否有什么我失踪? 我已经花了2天了。
这里是我的config.php
return
array(
"base_url" => "http://example.com/index.php",
"providers" => array (
// openid providers
"OpenID" => array (
"enabled" => false
),
"AOL" => array (
"enabled" => false
),
"Yahoo" => array (
"enabled" => false,
"keys" => array ( "id" => "", "secret" => "" )
),
"Google" => array (
"enabled" => true,
"keys" => array ( "id" => "", "secret" => "" )
),
"Facebook" => array (
"enabled" => true,
"keys" => array ( "id" => "xxxxxxxxx", "secret" => "xxxxxxx" )
),
"Twitter" => array (
"enabled" => true,
"keys" => array ( "key" => "xxxxxxxx", "secret" => "xxxxxxxx" )
),
// windows live
"Live" => array (
"enabled" => false,
"keys" => array ( "id" => "", "secret" => "" )
),
"MySpace" => array (
"enabled" => false,
"keys" => array ( "key" => "", "secret" => "" )
),
"LinkedIn" => array (
"enabled" => true,
"keys" => array ( "key" => "xxxxxxxx", "secret" => "xxxxxxx" )
),
"Foursquare" => array (
"enabled" => false,
"keys" => array ( "id" => "", "secret" => "" )
),
),
// if you want to enable logging, set 'debug_mode' to true then provide a writable file by the web server on "debug_file"
"debug_mode" => false,
"debug_file" => ""
);
有人可以帮帮我吗? 我得到了它不搜索互联网相当长的一段后,在所有的工作很好的感觉。 如果是这样的话,可以有人指向一个更好的选择,开源/免费的社交登入库?