when we use these apis
•For Twitter: twitter4j
•For Facebook: fb-java-api
•For Linkedin: linkedin-j
we will be redirected to the concern website,
but my question is in my own java application user needs to give the credentials only once
and having them i try to fetch information from these social websites to avoid user
using all social websites to get connect
I think you should use Spring Social.
FEATURES
An extensible service provider framework that greatly simplifies the process of connecting local user accounts to hosted provider accounts.
A connect controller that handles the authorization flow between your Java/Spring web application, a service provider, and your users.
Java bindings to popular service provider APIs such as Facebook, Twitter, LinkedIn, TripIt, and GitHub.
A sign-in controller that enables users to authenticate with your application by signing in through a service provider.