Facebook module as a Factory, session management by cookie