Add this code in the function which you call from authentication(function)

Like::

function onLinkedInAuth()
{
IN.API.Profile(“me”).fields(“id”,”firstName”, “lastName”, “industry”, “numConnections”,”educations”,”location”,”headline”,”publicProfileUrl”).result(CurrentStatus);

}
function CurrentStatus(profiles) {
member = profiles.values[0];
document.getElementById(‘LinkedIn_Id’).value=member.id;

//This function updates the status
IN.API.Raw(“/people/~/current-status”) // Update (PUT) the status
.method(“PUT”)
.body(JSON.stringify(“linked in status update via api again”))

}

Deepak Sharma help me in finding this function.

To change current status of linkedin from your own site.

Leave a Reply

Your email address will not be published.