LinkedIn Custom social connection

How can i add a custom linkedin social connection if anyone can guide me

The Error i get is this
{ "error": "invalid_request", "error_description": "Unauthorized" }

The scopes i have put are the ones which are on the linkedin developer portal