added AppID extraction, fixed a halting bug because of facebook's latest change not fixed properly in an earlier version, tests reveal that SSOScan halts at phase 18 (not consistently reproducable)