Issue-820: 'ticketId cannot be null' for a Facebook authentication

Fixed the problem by adding the ticket granting ticket in flow scope. Updated the test accordingly.