LinkedIn Login v1.02

Release Notes

Fixed email bug on unsuccessful user creation

  • Does this use the Oauth plugin? If not why not?



  • No. Why should it? Unless you want to set up as a server rather than consumer, there would be no real benefit in requiring the oauth plugin.

  • To reduce duplication?

    From the Oauth plugin description

    "This plugin makes available a fully functional OAuth consumer library"

  • What version of PHP is this tested with?

    My install is not working I am getting the following error

    CURLOPT_HTTPHEADER An array of HTTP header fields to set, in the format array('Content-type: text/plain', 'Content-length: 100')

    But the $request->to_header() function is returning a string instead.

    I downloaded version 1.02.



  • Hmm changed line 92 in OAuthLinkedin.php

        curl_setopt($ch, CURLOPT_HTTPHEADER, array($request->to_header()));

    and now I don't get the error message but its sending me to the linkedin home page instead of logging me in.

  • You can remove the two lines that set CURLOPT_HTTPHEADER, sorry, I should have spotted this but for some reason warnings are suppressed in my Elgg setup.

    The library that is actually being duplicated everywhere is the OAuth.php file, which is the library recommended by OAuth for PHP apps. This should be in /vendors where all plugins are free to use it, but I imagine that makes installation a pain.

  • Thanks for the explanation and bug fix!



  • Category: Authentication
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 1847
  • Recommendations: 3