当某人尝试在其LinkedIn个人资料可见性未公开(即this)时尝试登录我的网站时,则我的网站针对该人尝试注册时返回未定义的索引/错误异常消息。有没有解决的办法?
我的代码是-
$user->name = $linkedinuser->name;
$user->email = $linkedinuser->email;
$user->password = bcrypt("password");
$user->avatar = $linkedinuser->avatar;
$user->linkedin_headline = $linkedinuser->user['headline'];
$user->linkedin_url = $linkedinuser->user['publicProfileUrl'];