Th0mC so if I understand correctly, the issue isn't actually with Share Social ?
The issue is that the social network can't visit the link because it's private.
It's also true that Flarum doesn't allow to connect and stay on the same page when visiting a private discussion. The interface always assumes the discussion doesn't exist and you have to visit the homepage to login. An extension could replace the discussion 404 page with a different page that allows login.