Topic-icon LinkedIn-login returns blank page

Active Subscriptions:

None
11 years 7 months ago #48441 by lehmkjaerbye
Hi, I'm having issues with the LinkedIn-login function. I have set up the API like stated in your documentation but everytime I allow the newly created LinkedIn-app to get my LinkedIn-info, I return to a blank page at my domain

Domain: m3ug.dk/lk
LinkedIn integration can be found here: m3ug.dk/lk/index.php/login
OAuth 2.0 Redirect URLs: www.m3ug.dk/lk/index.php,http://m3ug.dk/lk/index.php

The user is created when I go into the user manager to check, but the integration with JomSocial doesn't seem to work either as the avatar isn't uploaded to the JomSocial profile even though I can see the LinkedIn-avatar in the user map.

What can be the problem? Thanks in advance.
The topic has been locked.
Support Specialist
11 years 7 months ago #48447 by mel
Can you update your Redirect URLs to the following:
http://www.m3ug.dk/lk/index.php?option=com_jfbconnect&task=authenticate.callback&provider=linkedin,http://m3ug.dk/lk/index.php?option=com_jfbconnect&task=authenticate.callback&provider=linkedin

Let's focus on the login issue first before the JomSocial profile import, which may be resolved when we fix the login.

Let me know if updating the URL's work.

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #48448 by lehmkjaerbye
Hi Melissa,

Thanks for getting back to me so quickly. I tried updating the URL's to your suggestion yesterday and also right now, but unfortunately it doesn't work.
Any other suggestions? I can PM you admin access if that would help.

Regards
The topic has been locked.
Support Specialist
11 years 7 months ago #48452 by mel
Sure, PM me and I will take a look.
The topic has been locked.
Support Specialist
11 years 7 months ago #48454 by mel
Actually, I was able to use the LinkedIn login button to create an account successfully at m3ug.dk/lk/index.php/login

Can you log in to LinkedIn as the user you are trying to authenticate with? Then go to Privacy & Settings > Groups, Companies & Applications > View your applications. Then remove your app from the list and try again.
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #48457 by lehmkjaerbye
Everytime the blank page appears I delete my Joomla user and I delete the app from LinkedIn in order to try again from scratch. As you say, the user is created, but the process isn't right as the blank page appears and the user isn't notified about what has happened. I have sent you a private message with admin details
The topic has been locked.
Support Specialist
11 years 7 months ago #48460 by mel
I was able to reproduce your issue on your site when I added a telephone number to my LinkedIn account. When I removed the phone number from my LinkedIn account, I was able to login with the LinkedIn button, the account was created successfully and logged in. On the front-end I saw a valid page with 'Hi Melissa Andreae' and the 'LinkedIn profile successfully connected.' messages. On the backend, JomSocial had my user with an avatar imported correctly.

Temporarily, I have removed your field mapping of the telephone number in the JomSocial Social Profile. I can investigate further to see why the phone number is not importing correctly, but I think this can get you going with registration and login in the meantime.
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #48462 by lehmkjaerbye
Thank you very much, Mel! It seems to be working now that the phone number isn't mapped. This can work as a temporary solution but please see if you have any other ninja tricks up your sleeve so we are also able to import our users phone numbers into our site :-)

Thanks again for the great and quick support
The topic has been locked.
Support Specialist
11 years 7 months ago #48463 by mel
In /components/com_jfbconnect/libraries/profile/linkedin.php around line 344, there is this 'if' block
if (array_key_exists(1, $valueParts))
    $index = intval($valueParts[1]);

After that, add this 'else' block
else
   $index = 0;

It seems to fix the problem, but I do need to run it through our automated tests to make sure none of the other fields being imported break.
The topic has been locked.