All the social networking sites expose the data using
JDBC Connection
ODBC Connection
RESTFUL API
Flat file