I am looking for a way to validate a link to make sure that it is pointing to a LinkedIn public profile page in PHP.
I have a website and I would like my users to be able to share their LinkedIn profile in their profile on my website.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try something like this where
$usernameis the linked-in username.You also can set $profileurl directly to the link given and verify with
str_posthat is starts with http://www.linkedin.com/in/$validprofilewill be a boolean indicating if the profile is valid.