Fixes facebook login flow

Fixes the login callback being fired without waiting for the actual
session opened state.