public static function shareNewRegisterOnLinkedin($id) { $type = 19; //$id = Auth::User()->id; $user = User::find($id); $url = URL::to('/') . '/profile/' . strtolower($user->fname . '-' . $user->lname) . '/' . $id; $comment = "I just joined KarmaCircles."; //$title = "I have registered on KarmaCircles."; $title = "I just registered on KarmaCircles.com"; //echo"<pre>";print_r($user);echo"</pre>";die; $description = "On KarmaCircles, people give and receive help for free. When you help others, you build your online reputation around various skills."; MessageHelper::shareOnLinkedin($user->token, $url, $comment, $title, $description); }