php - LinkedIn: Auto Login using linkedin button without pressing the button -
i have created linkedin sign application , in need of auto login using linkedin without pressing linkedin button (i.e , automatic login using linkedin should onloading of button). here have tried next code.
<script type="text/javascript" src="http://platform.linkedin.com/in.js"> api_key: key comes here onload: onlinkedinload authorize: true </script> but never right answer..
you should include in.user.authorize();
like this
function onlinkedinload() { in.env.js.scope = new array(); in.env.js.scope[0] = "r_emailaddress"; in.env.js.scope[1] = "r_contactinfo"; in.user.authorize(); in.event.on(in, "auth", onlinkedinauth); } php linkedin
No comments:
Post a Comment