Is it possible to import fields for user's Company Name and Position? If so, how can I do that?
Is saw this page but do not know what the OneAll field names, if they exist, would be to replace "gender" on this line: update_user_meta ($user_data->id, 'gender', $identity->gender); https://docs.oneall.com/plugins/guide/social-login-wordpress/
If the Social Login plugin as is doesn't have its own field names for company and position, maybe I can add them in?
In LinkedIn's API, it looks like the field selectors would be: positions:(company:(name)) positions:(title)
I have the API public and secret keys from LinkedIn.
Is adding this line of code to functions.php what is necessary for getting the position? update_user_meta ($user_data->id, 'positions:(title)', $identity->position);
Please do add the company name retrieval functionality. How long do you think that will take to be implemented?
Hi, The array $identity->organizations may already contain what you want. If present in the user's identity, it holds the organization, position, industry..., such as:
So, you could do something like (in the theme functions.php file, as you already found in the docs): update_user_meta ($user_data->id, 'current_org', $identity->organizations[0]->name);where 'current_org' is the field name in the database, and you can choose almost what you want. This is a rough indication, test if the organizations property is present before accessing it.
Hope this helps. PS: Feel free to contact us by email for more details.
Answers
We support Job Position (and can add more if needed), however the first thing to do is request proper access from LinkedIn. Please have a look at this discussion for more details.
support.oneall.com/forums/discussion/comment/1701/#Comment_1701
Regards.
I have the API public and secret keys from LinkedIn.
Is adding this line of code to functions.php what is necessary for getting the position?
update_user_meta ($user_data->id, 'positions:(title)', $identity->position);
Please do add the company name retrieval functionality. How long do you think that will take to be implemented?
Thank you!
The array $identity->organizations may already contain what you want.
If present in the user's identity, it holds the organization, position, industry..., such as: So, you could do something like (in the theme functions.php file, as you already found in the docs):
update_user_meta ($user_data->id, 'current_org', $identity->organizations[0]->name);
where 'current_org' is the field name in the database, and you can choose almost what you want. This is a rough indication, test if the organizations property is present before accessing it.Hope this helps.
PS: Feel free to contact us by email for more details.
I tried emailing but I'm not sure if it went through. Please let me know the best email address to use.
Thank you,
Jonah
No, I did not see your email, maybe try: fpinel@oneall.com
Thanks.