fix facebook callback & cleanup