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.
We could directly remove the "old" methods in favor of the new ones. I think that deprecation is good for API and configuration, but internals can be changed more brutally.