Use mock in integration tests

I’m doing an app that is using facebook’s login.

Should I mock like this example https://gist.github.com/kinopyo/1338738?