【发布时间】:2016-04-12 05:01:23
【问题描述】:
当我使用下面的代码时,当我使用 hybridauth-2.5.1 时,我不断从 Facebook 获得这个。
无效范围:read_stream。此消息仅向开发人员显示。您的应用程序的用户将忽略这些权限(如果存在)。请阅读文档以获取有效权限:https://developers.facebook.com/docs/facebook-login/permissions
$config = dirname(__FILE__) . '/config.php';
require_once( "Hybrid/Auth.php" );
$hybridauth = new Hybrid_Auth( $config );
// try to authenticate with Facebook
$adapter = $hybridauth->authenticate( "Facebook" );
// return Hybrid_User_Profile object intance
$user_profile = $adapter->getUserProfile();
echo "Hi there! " . $user_profile->displayName;
【问题讨论】:
-
只使用谷歌,该权限已经消失多年。错误信息应该很清楚,权限不存在。
标签: facebook hybridauth