{JFBCLogin providers=linkedin}I don't know. Where is the $linkedinUser variable coming from?- Is this an improper usage?
- Is there an api to check whether a user has logged in using a particular social network right now from the session?<?php
if ($linkedInUser < 1) // does the user have a linkedInUser login
{
?>
<p style="font-size:1.4em;">To use this feature please sign in with your Linkedin account</p>
{JFBCLogin show_reconnect=true providers=linkedin}
<?php
} else {
....We have no way to merge accounts. There's no way for JFBConnect to know which information is 'right' and which information should be overwritten.- Is there a way to merge the two accounts with different email-ids?
I'm not exactly sure what you mean by logging out and how that fixes things, but since there's no way to merge, if this method is something that works for you, I'd recommend trying it.- Or should we just logout, so when user logins with LinkedIn account: it shows the proper user-id and information.
We have the Custom DB social profile plugin which is installed with JFBConnect. Using that, you can setup how to store user profile information into a custom database table. You don't need to edit our files to do this. Once enabled, you can configure it in the Profiles configuration area of JFBConnect.- Is there a place in login flow, like autocreateUser in registration, where we can fetch the profile and store data in database for the new user-id
JFBConnect doesn't have a profile database table. All information stored is either in a 3rd party extension or a custom database table, as noted above. JFBConnect isn't a profile extension. There's enough of those out there that focus on creating profiles for users that it's not something we plan to implement again.- I have not seen the user data stored in the jfbconnect database: is there a table where I should be looking? Currently we are using tables from another component.
Correct. That's how our LinkedIn integration works, we have separate data for each of the education fields because most fields that are imported to are simple text-type fields. If you have a special format you want it in, you'll need to use the fetchProfile call like you seem to be doing.I checked the custom db: it doesn't understand insides of education and certification fields (rather treating the profile fields of education.0, 1, 2 as separate records).
The access token is meant to be used repeatedly. If no access token is being used, that would be a problem. From the error message, it looks like no user ID is being sent at all. Th error is:However I am getting the following error from LinkedIn, maybe because access token is used again (?):
Error code 404 received requesting data: { "errorCode": 0, "message": "Could not find person based on: ", "requestId": "XD59QHNONO", "status": 404, "timestamp": 1409311857224 }
- How do we correct this error: I have seeen this error sometimes on login earlier also
There is nothing after the :, which means no user ID is being sent. You'll need to determine what user ID should be used and why it isn't being set."Could not find person based on: "
If you set the "Enable Debug Mode" setting in JFBConnect to "No", that message should not display.- Also is there a way to suppress this message from showing (can you tell where this is enqueued so I can comment it)? I am seeing it to be a benign error, i.e. it doesn;t affect the end user functionality: is that right?
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
