Improvements to error handling. Some cleanup. Use FBAppCall in the handleDidBecomeActive