39 comments

  • Juukie14 September 20, 2013  

    I really didn’t know it would be this easy. Thanks for sharing.

  • Maks Surguy September 20, 2013  

    Glad you found it useful! Yes, it doesn’t take much =) same with Facebook and other oAuth 2 providers! I’ll post up some more tutorials on this soon!

  • jay September 22, 2013  

    Hi Max, thanks for the tutorial, i always follow your blog activities. Request you to put up a post on linkedin auth…
    thanks

  • jasper September 24, 2013  

    Possible to get the public profile url as well?

  • jay September 25, 2013  

    Hi Max, In the project folder i see files for facebook, google, linkedin etc. Can we also implement auth for google with the same project just after adding few files?
    Can you explain what all changes/addition to be done?

  • Jorge November 19, 2013  

    Thank you so much for this tutorial!

  • Maks Surguy November 19, 2013  

    You can, I don’t have a tutorial for that since for each provider it would be a little different, but you could try the code specified in the package readme : https://github.com/php-loep/oauth2-client

  • Victor Kurauchi March 19, 2014  

    Thanks for sharing this great content!!! It helped me a lot.

  • Maks Surguy March 20, 2014  

    You’re welcome 🙂 glad it’s helpful

  • Jim Preston April 17, 2014  

    I made a post by filling in my “details below” and posted but instead of success I received in “invalid token” message. Did you receive the message anyway?

  • Maks Surguy April 17, 2014  

    In the comments here on the blog?

  • Dan June 3, 2014  

    Hi, thanks for this helpful tutorial. I’ve followed it exactly, however, my request will not pull any of the r_fullprofile information. When the linked in page comes up asking for authentications, it only asks about “basic, contact info, and email address” even though i have ‘r_fullprofile’ listed in the scope as well. Any idea why?

  • maxsurguy June 11, 2014  

    Try changing the name of the ‘scope’ in the config/social.php to “scopes” and try pulling the profile again. Let me know if that works.

  • 5942marine June 26, 2014  

    I’m running Laravel 4.2, and following the above steps, I get this error:

    Class ‘LeagueOAuth2ClientProviderLinkedin’ not found

    What’s odd, is that on local, it works, but when I push this up to Dev, I get that error. Any ideas as to what might be causing this?

  • Raúl Contreras July 7, 2014  

    Did you run composer require league/oauth2-client on your Dev Server?

  • 5942marine July 8, 2014  

    Yeah, I did that while trying to troubleshoot this. I ended up having to change the alias in app.php to this:

    ‘Linkedin’ => ‘LeagueOAuth2ClientProviderLinkedIn’,

    Now, it works on my dev site. So odd, because the way in your docs, works locally, just not on dev.

  • Nalin July 9, 2014  

    i got this problem when trying to connect with linkedin

  • Nalin July 10, 2014  

    i solved it by my self. Problem was with layout.blade.php file i hadn’t created a file.
    So i downlaoded it from github and added to the project.

  • Nalin July 10, 2014  

    please reply to this my problem wasn’t solved yet

  • Nalin July 10, 2014  

    Problem was with my proxy settings i remove the proxy and now i can access data 🙂 greate application thank you very much

  • maxsurguy July 10, 2014  

    I’m glad to hear you got it sorted out. With the release of my book tomorrow I’ve been pretty swamped working on that so couldn’t get to solving people’s problems.

  • Nalin July 11, 2014  

    It’s my previous post. Now problem has solved

  • Nalin July 12, 2014  

    With laravel 4 and Ubuntu this isn’t going to work. Class LeagueOAuth2ClientProviderLinkedin not found please help me

  • nalin1990 July 23, 2014  

    I can’t access linkedin skills using this method please tell me the keys to get details about skills

  • nalin1990 July 24, 2014  

    thanks..

    another problem…

    Unable to get user details

    when i uploaded the site to server

    http://162.254.248.171/Finder/finder/public

  • nalin1990 July 24, 2014  

    thanks..

    another problem…

    Unable to get user details

    when i uploaded the site to server

    http://162.254.248.171/Finder/finder/public

    Please help me….

  • Rizky Syaiful July 25, 2014  

    Woops. I haven’t tried to deploy it. I’ll let you know if anything happen. ( scary :0 )

  • Victor Schelin August 8, 2014  

    Hi, scopes is the correct one to use (the variable in IdentidyProvider.php is called “scopes” and is the one we automatically want to override. Otherwise it will default to the default scope.

  • Dennis Bruijn October 16, 2014  

    Note that the scope index in the array isn’t supported, It will use the default scopes provided by the package.

    ‘scope’ => ‘r_basicprofile r_emailaddress r_contactinfo r_fullprofile’

    Change it in

    ‘scopes’ => ‘r_basicprofile r_emailaddress r_contactinfo r_fullprofile’

  • shewn March 5, 2015  

    This is a great tutorial Maks!!Thanks for sharing. I would like to post to a user’s feed, do you have a way I can go about that? Any help would be appreciated 🙂

  • JustinG March 11, 2015  

    This is really awesome. Helped a lot. Quick question – after successful integration, the app shows that I’m requesting basic, full, email address, and contact info. My scopes: ‘scopes’ => ‘r_emailaddress r_basicprofile r_fullprofile r_contactinfo’, However, the data dump does not include email address or profile summary. Anyone have any ideas? Thanks!

  • JustinG March 11, 2015  

    Scratch all of this – the fix was just adding the API fields into $resource, completely overlooked that we’re requesting specific fields here.

  • udhaya March 18, 2015  

    ErrorException in AliasLoader.php line 63:
    Class ‘IlluminateSupportFacadesView’ not found Error showing how to rectify this error?

Leave a comment