Multi-prong, i.e. use multiple platforms, mediums, and strategies.
You can certainly use LI to have stupid amounts of inbound interest for jobs.
I don't know about twitter as a means, I've strayed away from the cesspool it has become. I think posting content there can help
GitHub and Slack have worked well for me. More generally, working on open source or being active in a community helps.
Most generally, the more people see your name and content, the more opportunities will happen. It's like that saying that a large part of success is being present.