草庐IT

APINotAllowedError

全部标签

php - 在私有(private)配置文件上请求媒体时获取 "APINotAllowedError",即使允许所有范围

我正在使用PHPInstagramAPIhttps://github.com/cosenary/Instagram-PHP-API我想检索用户的提要,即使他有私有(private)资料。首先,我正在生成具有所有授予范围的url$instagram->getLoginUrl(array('basic','likes','relationships','comments'));然后,一旦用户批准了申请,我就尝试检索他的提要//GrabOAuthcallbackcode$code=$_GET['code'];$data=$instagram->getOAuthToken($code);//S