Some refactor for the weibo login.