• Juukie14

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

  • Maks Surguy

    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

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

  • jasper

    Possible to get the public profile url as well?

  • jay

    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

    Thank you so much for this tutorial!

  • Maks Surguy

    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

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

  • You’re welcome 🙂 glad it’s helpful

  • 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?

  • In the comments here on the blog?

  • Dan

    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

    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

    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?

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

  • 5942marine

    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

    i got this problem when trying to connect with linkedin

  • Nalin

    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

    please reply to this my problem wasn’t solved yet

  • Nalin

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

  • maxsurguy

    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

    It’s my previous post. Now problem has solved

  • Nalin

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

  • nalin1990

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

  • nalin1990

    thanks..

    another problem…

    Unable to get user details

    when i uploaded the site to server

    http://162.254.248.171/Finder/finder/public

  • nalin1990

    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….

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

  • Victor Schelin

    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.

  • 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

    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

    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

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

  • udhaya

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

More in Code Blog
Screen Shot 2013-09-17 at 3.39.08 PM
Bootstrap – Ladda spinner UI effect

About a week ago I have released and open sourced a small experiment, originally created by @hakimel. It is a...

Close