LinkedIn Login v1.03

Release Notes

Removed a warning that was being suppressed

  • I can't get it to work. I'm using a fresh 1.7.4. install. I enabled it in mod and created a new application with LinkedIn. When on the login page I press the Signin button I get redirected to the page:

    https://www.linkedin.com/uas/oauth/authorize?oauth_token=&state=

    which shows me the error "we were unable to find the authorization token".

    Where am I going wrong here? Is it a setting at LinkedIn that I didn't enter correctly or an Elgg issue?

  • of course API key and secret Key were entered under the settings menu

  • In /model OAuthLinkedIn.php paste this after line 60 (and before line 61)

    var_dump($response); exit;

    It will tell you the response sent by LinkedIn. It looks like it doesn't contain the token/secret it should, and probably has an error message from LI.

  • The response is then array(0) { }. So it doesn;t seem to get anything back from LI.

  • Thanks for your work on this. I installed the plug in, added the two keys in settings, but when I click on the 'sign in with linkedin' link I get an immediate 404:

    Not Found

    The requested URL /action/linkedin/login was not found on this server

     

    I am running elgg in a subdir, /elgg/ and have added the additional RewriteBase /elgg/ in .htaccess.

    Any ideas?

  • Turns out, it just really doesn't like to run in a subdirectory. I made /elgg/ the root and this and a couple other problems disappeared.

    Thanks!

  • Am having the same issue as M.R.A. Welkers even though all the info key/secret are correctly entered. Am usisng elgg 1.7.4. assistance here would be greatly appreciated.

  • Do you have CURL installed? It seems he's not getting any response from linkedin, which is weird - should at least get an error, my only thought is that it's because no request is made?

  • Curl is enable and running fine. but the issue still persists with the token issue.

  • how can I make it import other fields from LinkedIn on successful login?  

     

    Thanks!

  • In actions/callback.php the fields requested are in line 17, see the linked in docs for what's avail.

    $response = $linkedin->request('https://api.linkedin.com/v1/people/~:(id,first-name,last-name,headline,picture-url,location:(country:(code)))');

    Then deal with them after line 54 if($user->linkedin_sync)

  • Hi! I'm having the exact same problem as M.R.A. Welkers and Small Biz Technology. Any more tips to get it fixed? Should certain app settings be checked at Linkedin perhaps? I've done a little digging and I'm starting to feel it could be a cURL issue. Have a look at http://developer.linkedin.com/message/7967 for instance.  I'm using elgg version 1.7.7 on Windows Server 2008, PHP 5.3.4, cURL enabled (v7.21.2, SSL capable - OpenSSL/0.9.8q). Any help greatly appreciated!

  • We're experiencing a major sync issue.  Every once in a while, a regular user will login using the LinkedIn service, and they will be in someone else's account (also a linkedin user).  Any thoughts?!!?

  • I'm seeing the problem that Jeremy mentioned. I thought it was only admin users, but apparently, non-admin users see this problem. Here's a user msg:

    "FYI several times I have logged in as someone else via the linkedin sign-on. I sign out, and re-sign back in, and it seems to work the 2nd time."

    Has anyone else seen this issue? The problem occurs on the site capitalistcollective.com

  • Hi Hash - excellent plugin - thanks for uploading

     

    I have added more fields to be synced from linkedin but they do not show up in elgg -

     

    $response = $linkedin->request('https://api.linkedin.com/v1/people/~:(id,first-name,last-name,headline,picture-url,industry,summary,specialties,associations,honors,positions,publications,patents,languages,skills,certifications,educations,phone-numbers,date-of-birth,main-address,location:(country:(code)))');
    $xml = simplexml_load_string($response);

     

    what am i doing wrong?

     

     

  • hi @aloha i get the same sync issue - users are getting logged in as someone else -- did u solve it?

  • weird how this system emails me when I'm friended, but won't tell me when someone replied to my post.

    That linkedin problem was huge and scary, but it appears to be solved.

    "hash", the dev, made some suggestions that eventually solved it. You should PM him directly, since no one is apparently notified of posts here.

  • Seems to work great for me.  Since I don't have that many users yet (waiting for the next major update of elgg core), I will probably not know about the profile syncing issue.

    However, when I did sign in as myself, I did notice the profile picture for my admin acct was added to my recently created acct through linkedin.

    I wonder if hash could make a similar plugin for facebook as it would be nice to have the buttons in the same place. Plus this one works well with sites with subdomains.

  • Okay, figured out how to move the button to the login window, just below the password box and just above the login button just like the facebookservice plugin from anirupdutta.

    change line 8 in start.php to:

    elgg_extend_view('login/extend', 'linkedin/login');

    Too bad the buttons aren't the same widths.

  • I am getting an error as below:

    IOException

     

    Unable to save new object's base entity information!

    I am new to web designing, can someone help me out please.

  • I am getting an error as below:

    IOException

     

    Unable to save new object's base entity information!

    I am new to web designing, can someone help me out please. I am using elgg 1.7.11 (latest release) it goes well with authentication and then the page stops here. I tried to install OAuth plugin but it doesn't work.

    Please help

  • I am getting an error as below:

    IOException

     

    Unable to save new object's base entity information!

    and a page refresh is showing the error as below:

    Fatal error: Call to undefined method stdClass::isBanned() in /home/directory/public_html/mysite.com/engine/lib/sessions.php on line 380

    I am new to web designing, can someone help me out please. I am using elgg 1.7.11 (latest release) it goes well with authentication and then the page stops here. I tried to install OAuth plugin but it doesn't work.

    Please help

Stats

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