【发布时间】:2018-06-03 22:21:42
【问题描述】:
我正在尝试在 laravel 上实现 https://github.com/mgp25/Instagram-API,在 Instagram 成功登录后,我必须使用 _setUser 在登录后使用现有数据,例如:
public function check()
{
$username = 'XXX';
$password = 'XXX';
$ig = new Instagram();
try {
$ig->_setUser($username, $password);
} catch (\Exception $e) {
echo 'Something went wrong: '.$e->getMessage()."\n";
exit(0);
}
}
在这段代码中我得到这个错误:
"Call to protected method InstagramAPI\Instagram::_setUser() from context 'App\Http\Controllers\InstagramController'"
【问题讨论】:
标签: php laravel instagram instagramapi-mgp25