jeffreywix/fb-cal-tpa — pull request #15 by jeffreywix (2014-07-25 17:38:03+00:00)
Title: Feature connect fb account

**Major Updates:**
- **Connecting with Facebook account in settings is good to go!**

Server Changes:
- Successfully got server to pass event ID into AngularJS as a scope variable when initially rendering the modals HTML page
- Changed url links to access modal and settings to simpler names
- Changed URLs to include trailing slash at end
- Added active value to be returned from server to client so widget/settings can determine if the app is active yet.

Client Changes:
- Hides button settings when List view is chosen
- Added new fb directory to for files containing functions dealing with fb
- Login and logging out through facebook in the settings is working
- Fixed bug where long term access token in database would always get overwritten each time the user opens the app rather than only when they're logged into the app and facebook
- Fixed bug where there was an error if the user logs out and logs back in immediately. All logging in and out with facebook from settings is working now.
- Added code so that every time site owner loads widget or settings, the access token is updated in the database with a new access token - assuming the site owner is logged the app via FB
- Added new file containing functions for interacting with fb events
- Added new file with functions for server requests (getting and posting)