Some random code about using social APIs.