Search code examples
pythonmessagelinkedin-api

LinkedIn - cannot send messages


I am using Python API for sending messages in LinkedIn.
I found that

api.SendMessage("This is a test subject", "This is the test body", [pid]) 

can send messages only to the ones who are in our connected list and not others.

How do you send messages to anyone who is not in our connect list?


Solution

  • As I answered elsewhere, this is how LinkedIn behaves, whether you use the API or not. You can only message first degree connections.

    There is an InMail feature that allows for messaging outside your first degree network, but that is a paid product. Is that something you're interested in?

    Or the other option is to have a person between the sending and recipient agree to "pass the message along." That is not available via the API, however.

    That's all I say here, as we're now outside the scope of technical questions.