Validate URL linkedin account
-
The validate field “Linkedin URL” doesn’t work correctly It works if I put an unexisting user or only numbers in to the field
How can i do to work correctly?
THX
-
Is your issue with a company Linkedin URL?
No, with an individual profile. If i put an unexisting url profile, it doesn’t send an error messages
- This reply was modified 2 years, 4 months ago by pasalomoco.
- This reply was modified 2 years, 4 months ago by pasalomoco.
Hi @pasalomoco
Unfortunately, UM can only validate the profile URL pattern. This requires customization on your end if you need to validate the existence. Let’s see if others in the forum have done something similar and share their solutions here.
Regards,
- This reply was modified 2 years, 4 months ago by Champ Camba.
Hi @pasalomoco
..Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂
Regards,
Oukey, i am going to search on my own
- This reply was modified 2 years, 4 months ago by pasalomoco.
I try with this code:
$username = "lucia-villatoro-lópez-1ba32618a"; $profileurl = "https://www.linkedin.com/in/".$username; $fp = curl_init($profileurl); echo "FP --->"; var_dump($fp); $response = curl_exec($fp); echo "<br>response--->"; var_dump($response); $response_code = curl_getinfo($fp, CURLINFO_HTTP_CODE); echo "<br>response_code--->"; var_dump($response_code); $validprofile = ($response_code == 200); echo "<br>validprofile--->"; var_dump($validprofile); die();
But linkedin send this response : 999
Status code 999 – a non-standard code is returned by some sites (e.g. LinkedIn) which do not permit scanning.
https://docs.microsoft.com/en-us/linkedin/shared/authentication/authentication
The LinkedIn API uses OAuth 2.0 for member(user) authorization and API authentication. Applications must be authorized and authenticated before they can fetch data from LinkedIn or get access to LinkedIn member data.
What kind of code do should need ?
@missveronicatvRead the documentation in the link and ask LinkedIn about further details.
Hey there!
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂
Regards,
It is impossible to resolve because linkedin does not allow it
Since we are using the r_liteprofile permission in the LinkedIn app, the VanityName( public profile URL name ) of the LinkedIn app won’t be retrieved. You need special app permission like r_basicprofile. But LinkedIn has stopped accepting permission requests for the r_basicprofile. Also, please see https://stackoverflow.com/a/57024539
- This reply was modified 2 years, 3 months ago by pasalomoco.
- The topic ‘Validate URL linkedin account’ is closed to new replies.