Make the function separate out to support other OAuth in the future.
Build login url into proper variables to support other services in the future.
Separate common part for login to a general method.
Move oauthRedirect url calculation to init.
Set login scope in init.
Switch logout redirect url calculation to init.
Create logout general to support other services in the future.
Last step before split: dynamic token key.
Use a simpler way to detect if we are running in cordova/phongap.
Fix a bug: wrongly placed else block.
Start simple by move token storage to OpenOAuth.
Move the getLoginStatus method.
Fix a comment.
Move login to OpenOAuth.
Store loginUrl lower at OpenOAuth.
Move logout to OpenOAuth.
OpenOAuth now has its own cordova/phonegap flag.
Move api to OpenOAuth.
Move api url building back to OpenFB.
Move loginUrl calculation back to OpenFB and allow scope change when call.