Integration Testing Google Login (and other accounts packages)

Has anyone written or found a good guide on how to integration test logging in with various accounts packages (Google, Facebook, etc)?