In this chapter, we will cover the following recipes:
Creating a Facebook app
Creating a test Facebook app and test users
Connecting to Facebook
Retrieving a Facebook user's profile
Retrieving the list of friends of a Facebook user
Posting a Facebook status update
Posting a link to Facebook
Posting a custom object to Facebook
Creating a Twitter application
Connecting to Twitter
Retrieving a user's Twitter profile
Retrieving the tweets of a Twitter user
Posting a tweet to Twitter
Sending a private message to another Twitter user