Search code examples
phplinkedin-api

How can i implement linkedin inviter to my website using PHP?


i read the documentation of linkedin inviter from the link http://developer.linkedin.com/docs/DOC-1012 and there is no other help on internet inspite of this page. but what i found is only the XML things on this page. i dont know how to use it and what should be required basically to make the code work. please post or give reference to a complete code for linkedin invitation in PHP. i would greatly be obliged .


Solution

  • There is a LinkedIn-recommended library for PHP that has a specific invite() method that you could use:

    http://developer.linkedin.com/docs/DOC-1255

    Direct link to code:

    http://code.google.com/p/simple-linkedinphp/

    Essentially, you pass it the method of invitation (by email, member id), pass it the recipient, subject, message, and it creates the XML and sends it via OAuth to LinkedIn.

    There's also a demo script included, and a live demo showing how to use the invite() method here:

    http://simplelinkedin.fiftymission.net/