How to we implement social authentications like facebook, linkedin, google,etc

There are quite a few examples
I peeked at an example implementation in this article half a year ago:

At the end of the article there is a link to the repository