2nd restrucuture of Flask-Social example.