I have a database of usernames and LinkedIn profile URLs. Annoyingly, there is no standard LinkedIn URL format (such as Twitter), but they usually take the form:
1) http://www.linkedin.com/in/geoffroyondet
2) http://www.linkedin.com/profile/view?id=34178115
On my site I want to display information about LinkedIn. My OAuth works fine, and for people with the first format (above), I can successfully display LinkedIn data on my site. I am using the "Shared Profile URL" parameter from https://developer.linkedin.com/documents/profile-api
But for the second format I have problems. It is not valid as a "public profile", and the identifier in the URL does not seem to be the "member_id" from the above link.
Btw, if I try to use this numeric identifier as member_id, I get the following error:
object(SimpleXMLElement)[652] public 'status' => string '404' (length=3) ... public 'message' => string 'Invalid member id {34178115}' (length=28)
Due to the fact that I'm trying to use the API, the only way to get the alphanumeric identifier (member_id) is to successfully call the API (blah-> person-> id). But for a successful API call, I first need a valid URI. So it looks like the situation with the chicken and the egg.
Any suggestions on how I can display LinkedIn data using the second URL above?
source share