rahultailwal Posted July 4, 2012 Share Posted July 4, 2012 Hi, I am trying to get the contact list of a linkedin account using a php script. What i want is to make a login form in php where user will submit his email id and password for linkedin and then i have to fetch the contact list for this account. Is there any one has some idea about this. Thanks, Link to comment Share on other sites More sharing options...
birbal Posted July 4, 2012 Share Posted July 4, 2012 It don't think either linkedin will let you use their user password or your user will reveal their linkedin credential ay third party site.. it is not a good idea and is considered as security risk. You should use their api to get information about their user and get authenticated. Link to comment Share on other sites More sharing options...
rahultailwal Posted July 5, 2012 Author Share Posted July 5, 2012 Yes you are right. but my requirement is go ask for username and password from the user in my php form and then get authenticate that user and fetch his contact detiails. Is there any code for this. i m searching but not getting anything. Link to comment Share on other sites More sharing options...
birbal Posted July 5, 2012 Share Posted July 5, 2012 if you directly enter the login credential you must have to pass it to the location where linkedin processing it. you can use http://php.net/curl to send login credential to that location and can parse the return document using http://php.net/dom to get the contact list. but AGAIN it is not the correct way of doing this. you should have stick with their API they should have the option to get contact list. what is the problem with their API? Link to comment Share on other sites More sharing options...
rahultailwal Posted July 5, 2012 Author Share Posted July 5, 2012 I got a sample code to get the list of connections but the problem is, it requires a button on clicking which the linkedin api opens and asked for login and password. but i want that i pass the user name password directly to the api. Link to comment Share on other sites More sharing options...
Guest So Called Posted July 5, 2012 Share Posted July 5, 2012 Is this your own Linkedin account or is it somebody else's account, like for example somebody visiting a site you are creating? Link to comment Share on other sites More sharing options...
justsomeguy Posted July 5, 2012 Share Posted July 5, 2012 I don't know what tutorial you found, but you should probably be using their REST API. http://developer.linkedin.com/rest Link to comment Share on other sites More sharing options...
rahultailwal Posted July 12, 2012 Author Share Posted July 12, 2012 yes you are right i m using there developer account. Link to comment Share on other sites More sharing options...
rahultailwal Posted July 12, 2012 Author Share Posted July 12, 2012 (edited) Is this your own Linkedin account or is it somebody else's account, like for example somebody visiting a site you are creating?yes somebody else will visit my site and then login to his linkedin from my site and i will fetch his all connection data. Edited July 12, 2012 by rahultailwal Link to comment Share on other sites More sharing options...
Guest So Called Posted July 12, 2012 Share Posted July 12, 2012 How is the visitor going to do that without revealing his password to you? Link to comment Share on other sites More sharing options...
birbal Posted July 13, 2012 Share Posted July 13, 2012 How is the visitor going to do that without revealing his password to you?They use OAuth Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now