Added support to connect from inside Facebook.