motion-firebase 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.travis.yml +2 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +28 -0
- data/README.md +511 -0
- data/Rakefile +11 -0
- data/app/app_delegate.rb +156 -0
- data/lib/firebase/firebase.rb +242 -0
- data/lib/firebase/firebase_auth_client.rb +49 -0
- data/lib/firebase/version.rb +5 -0
- data/lib/motion-firebase-auth.rb +19 -0
- data/lib/motion-firebase-facebook.rb +17 -0
- data/lib/motion-firebase.rb +19 -0
- data/lib/vendor/FacebookSDK.framework/FacebookSDK +0 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBAccessTokenData.h +115 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBCacheDescriptor.h +42 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBError.h +274 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBFrictionlessRecipientCache.h +86 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBFriendPickerViewController.h +290 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBGraphLocation.h +77 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBGraphObject.h +224 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBGraphPlace.h +60 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBGraphUser.h +90 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBInsights.h +271 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBLoginView.h +178 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBNativeDialogs.h +170 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBOpenGraphAction.h +127 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBPlacePickerViewController.h +257 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBProfilePictureView.h +80 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBRequest.h +504 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBRequestConnection.h +389 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBSession.h +751 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBSessionTokenCachingStrategy.h +152 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBSettings.h +136 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBTestSession.h +135 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBUserSettingsViewController.h +127 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBViewController.h +118 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FBWebDialogs.h +234 -0
- data/lib/vendor/FacebookSDK.framework/Headers/FacebookSDK.h +132 -0
- data/lib/vendor/FacebookSDK.framework/Headers/NSError+FBError.h +59 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Resources/Info.plist +20 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAccessTokenData.h +115 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBCacheDescriptor.h +42 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBConnect.h +22 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialog.h +165 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBError.h +274 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRecipientCache.h +86 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRequestSettings.h +85 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFriendPickerViewController.h +290 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphLocation.h +77 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphObject.h +224 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphPlace.h +60 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphUser.h +90 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBInsights.h +271 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginDialog.h +48 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginView.h +178 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBNativeDialogs.h +170 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphAction.h +127 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPlacePickerViewController.h +257 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBProfilePictureView.h +80 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequest.h +504 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequestConnection.h +389 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJSON.h +75 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonBase.h +86 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonParser.h +87 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonWriter.h +129 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSession.h +751 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionManualTokenCachingStrategy.h +32 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionTokenCachingStrategy.h +152 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSettings.h +136 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTestSession.h +135 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBUserSettingsViewController.h +127 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBViewController.h +118 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBWebDialogs.h +234 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/Facebook.h +281 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FacebookSDK.h +132 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/NSError+FBError.h +59 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/FacebookSDK +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBAccessTokenData.h +115 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBCacheDescriptor.h +42 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBError.h +274 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBFrictionlessRecipientCache.h +86 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBFriendPickerViewController.h +290 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphLocation.h +77 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphObject.h +224 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphPlace.h +60 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphUser.h +90 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBInsights.h +271 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBLoginView.h +178 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBNativeDialogs.h +170 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphAction.h +127 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBPlacePickerViewController.h +257 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBProfilePictureView.h +80 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBRequest.h +504 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBRequestConnection.h +389 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSession.h +751 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSessionTokenCachingStrategy.h +152 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSettings.h +136 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBTestSession.h +135 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBUserSettingsViewController.h +127 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBViewController.h +118 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBWebDialogs.h +234 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FacebookSDK.h +132 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/NSError+FBError.h +59 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/Info.plist +20 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBAccessTokenData.h +115 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBCacheDescriptor.h +42 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBConnect.h +22 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBDialog.h +165 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBError.h +274 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFrictionlessRecipientCache.h +86 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFrictionlessRequestSettings.h +85 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFriendPickerViewController.h +290 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphLocation.h +77 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphObject.h +224 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphPlace.h +60 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphUser.h +90 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBInsights.h +271 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBLoginDialog.h +48 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBLoginView.h +178 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBNativeDialogs.h +170 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBOpenGraphAction.h +127 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBPlacePickerViewController.h +257 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBProfilePictureView.h +80 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBRequest.h +504 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBRequestConnection.h +389 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJSON.h +75 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonBase.h +86 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonParser.h +87 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonWriter.h +129 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSession.h +751 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSessionManualTokenCachingStrategy.h +32 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSessionTokenCachingStrategy.h +152 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSettings.h +136 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBTestSession.h +135 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBUserSettingsViewController.h +127 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBViewController.h +118 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBWebDialogs.h +234 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/Facebook.h +281 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FacebookSDK.h +132 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/NSError+FBError.h +59 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/FacebookSDK +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBAccessTokenData.h +115 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBCacheDescriptor.h +42 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBError.h +274 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBFrictionlessRecipientCache.h +86 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBFriendPickerViewController.h +290 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphLocation.h +77 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphObject.h +224 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphPlace.h +60 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphUser.h +90 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBInsights.h +271 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBLoginView.h +178 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBNativeDialogs.h +170 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBOpenGraphAction.h +127 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBPlacePickerViewController.h +257 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBProfilePictureView.h +80 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBRequest.h +504 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBRequestConnection.h +389 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSession.h +751 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSessionTokenCachingStrategy.h +152 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSettings.h +136 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBTestSession.h +135 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBUserSettingsViewController.h +127 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBViewController.h +118 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBWebDialogs.h +234 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FacebookSDK.h +132 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/NSError+FBError.h +59 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
- data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/Info.plist +20 -0
- data/lib/vendor/Firebase.framework/Firebase +0 -0
- data/lib/vendor/Firebase.framework/Headers/FDataSnapshot.h +146 -0
- data/lib/vendor/Firebase.framework/Headers/FEventType.h +43 -0
- data/lib/vendor/Firebase.framework/Headers/FMutableData.h +134 -0
- data/lib/vendor/Firebase.framework/Headers/FQuery.h +229 -0
- data/lib/vendor/Firebase.framework/Headers/FTransactionResult.h +50 -0
- data/lib/vendor/Firebase.framework/Headers/Firebase.h +629 -0
- data/lib/vendor/Firebase.framework/Versions/A/Firebase +0 -0
- data/lib/vendor/Firebase.framework/Versions/A/Headers/FDataSnapshot.h +146 -0
- data/lib/vendor/Firebase.framework/Versions/A/Headers/FEventType.h +43 -0
- data/lib/vendor/Firebase.framework/Versions/A/Headers/FMutableData.h +134 -0
- data/lib/vendor/Firebase.framework/Versions/A/Headers/FQuery.h +229 -0
- data/lib/vendor/Firebase.framework/Versions/A/Headers/FTransactionResult.h +50 -0
- data/lib/vendor/Firebase.framework/Versions/A/Headers/Firebase.h +629 -0
- data/lib/vendor/Firebase.framework/Versions/Current/Firebase +0 -0
- data/lib/vendor/Firebase.framework/Versions/Current/Headers/FDataSnapshot.h +146 -0
- data/lib/vendor/Firebase.framework/Versions/Current/Headers/FEventType.h +43 -0
- data/lib/vendor/Firebase.framework/Versions/Current/Headers/FMutableData.h +134 -0
- data/lib/vendor/Firebase.framework/Versions/Current/Headers/FQuery.h +229 -0
- data/lib/vendor/Firebase.framework/Versions/Current/Headers/FTransactionResult.h +50 -0
- data/lib/vendor/Firebase.framework/Versions/Current/Headers/Firebase.h +629 -0
- data/lib/vendor/FirebaseAuthClient.framework/FirebaseAuthClient +0 -0
- data/lib/vendor/FirebaseAuthClient.framework/Headers/FATypes.h +48 -0
- data/lib/vendor/FirebaseAuthClient.framework/Headers/FAUser.h +85 -0
- data/lib/vendor/FirebaseAuthClient.framework/Headers/FirebaseAuthClient.h +149 -0
- data/lib/vendor/FirebaseAuthClient.framework/Versions/A/FirebaseAuthClient +0 -0
- data/lib/vendor/FirebaseAuthClient.framework/Versions/A/Headers/FATypes.h +48 -0
- data/lib/vendor/FirebaseAuthClient.framework/Versions/A/Headers/FAUser.h +85 -0
- data/lib/vendor/FirebaseAuthClient.framework/Versions/A/Headers/FirebaseAuthClient.h +149 -0
- data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/FirebaseAuthClient +0 -0
- data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/Headers/FATypes.h +48 -0
- data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/Headers/FAUser.h +85 -0
- data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/Headers/FirebaseAuthClient.h +149 -0
- data/motion-firebase.gemspec +23 -0
- data/resources/Default-568h@2x.png +0 -0
- metadata +357 -0
@@ -0,0 +1,132 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2012
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
// core
|
18
|
+
#import "FBSession.h"
|
19
|
+
#import "FBAccessTokenData.h"
|
20
|
+
#import "FBRequest.h"
|
21
|
+
#import "FBError.h"
|
22
|
+
#import "NSError+FBError.h"
|
23
|
+
#import "FBSettings.h"
|
24
|
+
#import "FBInsights.h"
|
25
|
+
|
26
|
+
// graph
|
27
|
+
#import "FBGraphUser.h"
|
28
|
+
#import "FBGraphPlace.h"
|
29
|
+
#import "FBGraphLocation.h"
|
30
|
+
#import "FBGraphObject.h" // + design summary for graph component-group
|
31
|
+
#import "FBOpenGraphAction.h"
|
32
|
+
|
33
|
+
// ux
|
34
|
+
#import "FBLoginView.h"
|
35
|
+
#import "FBProfilePictureView.h"
|
36
|
+
#import "FBUserSettingsViewController.h"
|
37
|
+
#import "FBPlacePickerViewController.h"
|
38
|
+
#import "FBFriendPickerViewController.h"
|
39
|
+
#import "FBCacheDescriptor.h"
|
40
|
+
#import "FBNativeDialogs.h"
|
41
|
+
#import "FBWebDialogs.h"
|
42
|
+
#import "FBFrictionlessRecipientCache.h"
|
43
|
+
|
44
|
+
/*!
|
45
|
+
@header
|
46
|
+
|
47
|
+
@abstract Library header, import this to import all of the public types
|
48
|
+
in the Facebook SDK
|
49
|
+
|
50
|
+
@discussion
|
51
|
+
|
52
|
+
////////////////////////////////////////////////////////////////////////////////
|
53
|
+
|
54
|
+
|
55
|
+
Summary: this header summarizes the structure and goals of the Facebook SDK for iOS.
|
56
|
+
Goals:
|
57
|
+
* Leverage and work well with modern features of iOS (e.g. blocks, ARC, etc.)
|
58
|
+
* Patterned after best of breed iOS frameworks (e.g. naming, pattern-use, etc.)
|
59
|
+
* Common integration experience is simple & easy to describe
|
60
|
+
* Factored to enable a growing list of scenarios over time
|
61
|
+
|
62
|
+
Notes on approaches:
|
63
|
+
1. We use a key scenario to drive prioritization of work for a given update
|
64
|
+
2. We are building-atop and refactoring, rather than replacing, existing iOS SDK releases
|
65
|
+
3. We use take an incremental approach where we can choose to maintain as little or as much compatibility with the existing SDK needed
|
66
|
+
a) and so we will be developing to this approach
|
67
|
+
b) and then at push-time for a release we will decide when/what to break
|
68
|
+
on a feature by feature basis
|
69
|
+
4. Some light but critical infrastructure is needed to support both the goals
|
70
|
+
and the execution of this change (e.g. a build/package/deploy process)
|
71
|
+
|
72
|
+
Design points:
|
73
|
+
We will move to a more object-oriented approach, in order to facilitate the
|
74
|
+
addition of a different class of objects, such as controls and visual helpers
|
75
|
+
(e.g. FBLikeView, FBPersonView), as well as sub-frameworks to enable scenarios
|
76
|
+
such (e.g. FBOpenGraphEntity, FBLocalEntityCache, etc.)
|
77
|
+
|
78
|
+
As we add features, it will no longer be appropriate to host all functionality
|
79
|
+
in the Facebook class, though it will be maintained for some time for migration
|
80
|
+
purposes. Instead functionality lives in related collections of classes.
|
81
|
+
|
82
|
+
<pre>
|
83
|
+
@textblock
|
84
|
+
|
85
|
+
*------------* *----------* *----------------* *---*
|
86
|
+
Scenario --> |FBPersonView| |FBLikeView| | FBPlacePicker | | F |
|
87
|
+
*------------* *----------* *----------------* | a |
|
88
|
+
*-------------------* *----------* *--------* | c |
|
89
|
+
Component --> | FBGraphObject | | FBDialog | | FBView | | e |
|
90
|
+
*-------------------* *----------* *--------* | b |
|
91
|
+
*---------* *---------* *---------------------* | o |
|
92
|
+
Core --> |FBSession| |FBRequest| |Utilities (e.g. JSON)| | o |
|
93
|
+
*---------* *---------* *---------------------* * k *
|
94
|
+
|
95
|
+
@/textblock
|
96
|
+
</pre>
|
97
|
+
|
98
|
+
The figure above describes three layers of functionality, with the existing
|
99
|
+
Facebook on the side as a helper proxy to a subset of the overall SDK. The
|
100
|
+
layers loosely organize the SDK into *Core Objects* necessary to interface
|
101
|
+
with Facebook, higher-level *Framework Components* that feel like natural
|
102
|
+
extensions to existing frameworks such as UIKit and Foundation, but which
|
103
|
+
surface behavior broadly applicable to Facebook, and finally the
|
104
|
+
*Scenario Objects*, which provide deeper turn-key capibilities for useful
|
105
|
+
mobile scenarios.
|
106
|
+
|
107
|
+
Use example (low barrier use case):
|
108
|
+
|
109
|
+
<pre>
|
110
|
+
@textblock
|
111
|
+
|
112
|
+
// log on to Facebook
|
113
|
+
[FBSession sessionOpenWithPermissions:nil
|
114
|
+
completionHandler:^(FBSession *session,
|
115
|
+
FBSessionState status,
|
116
|
+
NSError *error) {
|
117
|
+
if (session.isOpen) {
|
118
|
+
// request basic information for the user
|
119
|
+
[FBRequestConnection startWithGraphPath:@"me"
|
120
|
+
completionHandler:^void(FBRequestConnection *request,
|
121
|
+
id result,
|
122
|
+
NSError *error) {
|
123
|
+
if (!error) {
|
124
|
+
// get json from result
|
125
|
+
}
|
126
|
+
}];
|
127
|
+
}
|
128
|
+
}];
|
129
|
+
@/textblock
|
130
|
+
</pre>
|
131
|
+
|
132
|
+
*/
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2012 Facebook
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
#import "FBError.h"
|
18
|
+
|
19
|
+
/*!
|
20
|
+
@category NSError(FBError)
|
21
|
+
|
22
|
+
@abstract
|
23
|
+
Adds additional properties to NSError to provide more information for Facebook related errors.
|
24
|
+
*/
|
25
|
+
@interface NSError (FBError)
|
26
|
+
|
27
|
+
/*!
|
28
|
+
@abstract
|
29
|
+
Categorizes the error, if it is Facebook related, to simplify application mitigation behavior
|
30
|
+
|
31
|
+
@discussion
|
32
|
+
In general, in response to an error connecting to Facebook, an application should, retry the
|
33
|
+
operation, request permissions, reconnect the application, or prompt the user to take an action.
|
34
|
+
The error category can be used to understand the class of error received from Facebook. For more infomation on this
|
35
|
+
see https://developers.facebook.com/docs/reference/api/errors/
|
36
|
+
*/
|
37
|
+
@property (readonly) FBErrorCategory fberrorCategory;
|
38
|
+
|
39
|
+
/*!
|
40
|
+
@abstract
|
41
|
+
If YES indicates that a user action is required in order to successfully continue with the facebook operation
|
42
|
+
|
43
|
+
@discussion
|
44
|
+
In general if fberrorShouldNotifyUser is NO, then the application has a straightforward mitigation, such as
|
45
|
+
retry the operation or request permissions from the user, etc. In some cases it is necessary for the user to
|
46
|
+
take an action before the application continues to attempt a Facebook connection. For more infomation on this
|
47
|
+
see https://developers.facebook.com/docs/reference/api/errors/
|
48
|
+
*/
|
49
|
+
@property (readonly) BOOL fberrorShouldNotifyUser;
|
50
|
+
|
51
|
+
/*!
|
52
|
+
@abstract
|
53
|
+
A message suitable for display to the user, describing a user action necessary to enable Facebook functionality.
|
54
|
+
Not all Facebook errors yield a message suitable for user display; however in all cases where
|
55
|
+
fberrorShouldNotifyUser is YES, this property returns a localizable message suitable for display.
|
56
|
+
*/
|
57
|
+
@property (readonly, copy) NSString *fberrorUserMessage;
|
58
|
+
|
59
|
+
@end
|
Binary file
|
@@ -0,0 +1,115 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2013 Facebook
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
#import <Foundation/Foundation.h>
|
18
|
+
#import "FBSession.h"
|
19
|
+
|
20
|
+
/*!
|
21
|
+
@class FBAccessTokenData
|
22
|
+
|
23
|
+
@abstract Represents an access token used for the Facebook login flow
|
24
|
+
and includes associated metadata such as expiration date and permissions.
|
25
|
+
You should use factory methods (createToken...) to construct instances
|
26
|
+
and should be treated as immutable.
|
27
|
+
|
28
|
+
@discussion For more information, see
|
29
|
+
https://developers.facebook.com/docs/concepts/login/access-tokens-and-types/.
|
30
|
+
*/
|
31
|
+
@interface FBAccessTokenData : NSObject <NSCopying>
|
32
|
+
|
33
|
+
/*!
|
34
|
+
@method
|
35
|
+
|
36
|
+
@abstract Creates an FBAccessTokenData from an App Link provided by the Facebook application
|
37
|
+
or nil if the url is not valid.
|
38
|
+
|
39
|
+
@param url The url provided.
|
40
|
+
@param appID needed in order to verify URL format.
|
41
|
+
@param urlSchemeSuffix needed in order to verify URL format.
|
42
|
+
|
43
|
+
*/
|
44
|
+
+ (FBAccessTokenData *) createTokenFromFacebookURL:(NSURL *)url appID:(NSString *)appID urlSchemeSuffix:(NSString *)urlSchemeSuffix;
|
45
|
+
|
46
|
+
/*!
|
47
|
+
@method
|
48
|
+
|
49
|
+
@abstract Creates an FBAccessTokenData from a dictionary or returns nil if required data is missing.
|
50
|
+
@param dictionary the dictionary with FBSessionTokenCachingStrategy keys.
|
51
|
+
*/
|
52
|
+
+ (FBAccessTokenData *) createTokenFromDictionary:(NSDictionary *)dictionary;
|
53
|
+
|
54
|
+
/*!
|
55
|
+
@method
|
56
|
+
|
57
|
+
@abstract Creates an FBAccessTokenData from existing information or returns nil if required data is missing.
|
58
|
+
|
59
|
+
@param accessToken The token string. If nil or empty, this method will return nil.
|
60
|
+
@param permissions The permissions set. A value of nil indicates basic permissions.
|
61
|
+
@param expirationDate The expiration date. A value of nil defaults to `[NSDate distantFuture]`.
|
62
|
+
@param loginType The login source of the token.
|
63
|
+
@param refreshDate The date that token was last refreshed. A value of nil defaults to `[NSDate date]`.
|
64
|
+
*/
|
65
|
+
+ (FBAccessTokenData *) createTokenFromString:(NSString *)accessToken
|
66
|
+
permissions:(NSArray *)permissions
|
67
|
+
expirationDate:(NSDate *)expirationDate
|
68
|
+
loginType:(FBSessionLoginType)loginType
|
69
|
+
refreshDate:(NSDate *)refreshDate;
|
70
|
+
|
71
|
+
/*!
|
72
|
+
@method
|
73
|
+
|
74
|
+
@abstract Returns a dictionary representation of this instance.
|
75
|
+
|
76
|
+
@discussion This is provided for backwards compatibility with previous
|
77
|
+
access token related APIs that used a NSDictionary (see `FBSessionTokenCachingStrategy`).
|
78
|
+
*/
|
79
|
+
- (NSMutableDictionary *) dictionary;
|
80
|
+
|
81
|
+
/*!
|
82
|
+
@method
|
83
|
+
|
84
|
+
@abstract Returns a Boolean value that indicates whether a given object is an FBAccessTokenData object and exactly equal the receiver.
|
85
|
+
|
86
|
+
@param accessTokenData the data to compare to the receiver.
|
87
|
+
*/
|
88
|
+
- (BOOL) isEqualToAccessTokenData:(FBAccessTokenData *)accessTokenData;
|
89
|
+
|
90
|
+
/*!
|
91
|
+
@abstract returns the access token NSString.
|
92
|
+
*/
|
93
|
+
@property (readonly, nonatomic, copy) NSString *accessToken;
|
94
|
+
|
95
|
+
/*!
|
96
|
+
@abstract returns the permissions associated with the access token.
|
97
|
+
*/
|
98
|
+
@property (readonly, nonatomic, copy) NSArray *permissions;
|
99
|
+
|
100
|
+
/*!
|
101
|
+
@abstract returns the expiration date of the access token.
|
102
|
+
*/
|
103
|
+
@property (readonly, nonatomic, copy) NSDate *expirationDate;
|
104
|
+
|
105
|
+
/*!
|
106
|
+
@abstract returns the login type associated with the token.
|
107
|
+
*/
|
108
|
+
@property (readonly, nonatomic) FBSessionLoginType loginType;
|
109
|
+
|
110
|
+
/*!
|
111
|
+
@abstract returns the date the token was last refreshed.
|
112
|
+
*/
|
113
|
+
@property (readonly, nonatomic, copy) NSDate *refreshDate;
|
114
|
+
|
115
|
+
@end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2012 Facebook
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
#import <Foundation/Foundation.h>
|
18
|
+
#import "FBSession.h"
|
19
|
+
|
20
|
+
/*!
|
21
|
+
@class
|
22
|
+
|
23
|
+
@abstract
|
24
|
+
Base class from which CacheDescriptors derive, provides a method to fetch data for later use
|
25
|
+
|
26
|
+
@discussion
|
27
|
+
Cache descriptors allow your application to specify the arguments that will be
|
28
|
+
later used with another object, such as the FBFriendPickerViewController. By using a cache descriptor
|
29
|
+
instance, an application can choose to fetch data ahead of the point in time where the data is needed.
|
30
|
+
*/
|
31
|
+
@interface FBCacheDescriptor : NSObject
|
32
|
+
|
33
|
+
/*!
|
34
|
+
@method
|
35
|
+
@abstract
|
36
|
+
Fetches and caches the data described by the cache descriptor instance, for the given session.
|
37
|
+
|
38
|
+
@param session the <FBSession> to use for fetching data
|
39
|
+
*/
|
40
|
+
- (void)prefetchAndCacheForSession:(FBSession*)session;
|
41
|
+
|
42
|
+
@end
|
@@ -0,0 +1,274 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2012 Facebook
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
#import <Foundation/Foundation.h>
|
18
|
+
|
19
|
+
/*!
|
20
|
+
The NSError domain of all errors returned by the Facebook SDK.
|
21
|
+
*/
|
22
|
+
extern NSString *const FacebookSDKDomain;
|
23
|
+
|
24
|
+
/*!
|
25
|
+
The key in the userInfo NSDictionary of NSError where you can find
|
26
|
+
the inner NSError (if any).
|
27
|
+
*/
|
28
|
+
extern NSString *const FBErrorInnerErrorKey;
|
29
|
+
|
30
|
+
/*!
|
31
|
+
The key in the userInfo NSDictionary of NSError for the parsed JSON response
|
32
|
+
from the server. In case of a batch, includes the JSON for a single FBRequest.
|
33
|
+
*/
|
34
|
+
extern NSString *const FBErrorParsedJSONResponseKey;
|
35
|
+
|
36
|
+
/*!
|
37
|
+
The key in the userInfo NSDictionary of NSError indicating
|
38
|
+
the HTTP status code of the response (if any).
|
39
|
+
*/
|
40
|
+
extern NSString *const FBErrorHTTPStatusCodeKey;
|
41
|
+
|
42
|
+
/*!
|
43
|
+
@abstract Error codes returned by the Facebook SDK in NSError.
|
44
|
+
|
45
|
+
@discussion
|
46
|
+
These are valid only in the scope of FacebookSDKDomain.
|
47
|
+
*/
|
48
|
+
typedef enum FBErrorCode {
|
49
|
+
/*!
|
50
|
+
Like nil for FBErrorCode values, represents an error code that
|
51
|
+
has not been initialized yet.
|
52
|
+
*/
|
53
|
+
FBErrorInvalid = 0,
|
54
|
+
|
55
|
+
/// The operation failed because it was cancelled.
|
56
|
+
FBErrorOperationCancelled,
|
57
|
+
|
58
|
+
/// A login attempt failed
|
59
|
+
FBErrorLoginFailedOrCancelled,
|
60
|
+
|
61
|
+
/// The graph API returned an error for this operation.
|
62
|
+
FBErrorRequestConnectionApi,
|
63
|
+
|
64
|
+
/*!
|
65
|
+
The operation failed because the server returned an unexpected
|
66
|
+
response. You can get this error if you are not using the most
|
67
|
+
recent SDK, or if you set your application's migration settings
|
68
|
+
incorrectly for the version of the SDK you are using.
|
69
|
+
|
70
|
+
If this occurs on the current SDK with proper app migration
|
71
|
+
settings, you may need to try changing to one request per batch.
|
72
|
+
*/
|
73
|
+
FBErrorProtocolMismatch,
|
74
|
+
|
75
|
+
/// Non-success HTTP status code was returned from the operation.
|
76
|
+
FBErrorHTTPError,
|
77
|
+
|
78
|
+
/// An endpoint that returns a binary response was used with FBRequestConnection;
|
79
|
+
/// endpoints that return image/jpg, etc. should be accessed using NSURLRequest
|
80
|
+
FBErrorNonTextMimeTypeReturned,
|
81
|
+
|
82
|
+
/// An error occurred while trying to display a native dialog
|
83
|
+
FBErrorNativeDialog,
|
84
|
+
|
85
|
+
/// An error occurred using the FBInsights class
|
86
|
+
FBErrorInsights,
|
87
|
+
|
88
|
+
/// An error occurred related to an iOS API call
|
89
|
+
FBErrorSystemAPI,
|
90
|
+
|
91
|
+
/// An error occurred while trying to fetch publish install response data
|
92
|
+
FBErrorPublishInstallResponse,
|
93
|
+
} FBErrorCode;
|
94
|
+
|
95
|
+
/*!
|
96
|
+
@typedef FBErrorCategory enum
|
97
|
+
|
98
|
+
@abstract Indicates the Facebook SDK classification for the error
|
99
|
+
|
100
|
+
@discussion
|
101
|
+
*/
|
102
|
+
typedef enum {
|
103
|
+
/*! Indicates that the error category is invalid and likely represents an error that
|
104
|
+
is unrelated to Facebook or the Facebook SDK */
|
105
|
+
FBErrorCategoryInvalid = 0,
|
106
|
+
/*! Indicates that the error may be authentication related but the application should retry the operation.
|
107
|
+
This case may involve user action that must be taken, and so the application should also test
|
108
|
+
the fberrorShouldNotifyUser property and if YES display fberrorUserMessage to the user before retrying.*/
|
109
|
+
FBErrorCategoryRetry = 1,
|
110
|
+
/*! Indicates that the error is authentication related and the application should reopen the session*/
|
111
|
+
FBErrorCategoryAuthenticationReopenSession = 2,
|
112
|
+
/*! Indicates that the error is permission related */
|
113
|
+
FBErrorCategoryPermissions = 3,
|
114
|
+
/*! Indicates that the error implies that the server had an unexpected failure or may be temporarily down */
|
115
|
+
FBErrorCategoryServer = 4,
|
116
|
+
/*! Indicates that the error results from the server throttling the client */
|
117
|
+
FBErrorCategoryThrottling = 5,
|
118
|
+
/*! Indicates the user cancelled the operation */
|
119
|
+
FBErrorCategoryUserCancelled = 6,
|
120
|
+
/*! Indicates that the error is Facebook-related but is uncategorizable, and likely newer than the
|
121
|
+
current version of the SDK */
|
122
|
+
FBErrorCategoryFacebookOther = -1,
|
123
|
+
/*! Indicates that the error is an application error resulting in a bad or malformed request to the server. */
|
124
|
+
FBErrorCategoryBadRequest = -2,
|
125
|
+
} FBErrorCategory;
|
126
|
+
|
127
|
+
/*!
|
128
|
+
The key in the userInfo NSDictionary of NSError where you can find
|
129
|
+
the inner NSError (if any).
|
130
|
+
*/
|
131
|
+
extern NSString *const FBErrorInnerErrorKey;
|
132
|
+
|
133
|
+
/*!
|
134
|
+
The key in the userInfo NSDictionary of NSError where you can find
|
135
|
+
the session associated with the error (if any).
|
136
|
+
*/
|
137
|
+
extern NSString *const FBErrorSessionKey;
|
138
|
+
|
139
|
+
/*!
|
140
|
+
The key in the userInfo NSDictionary of NSError for unsuccessful
|
141
|
+
logins (error.code equals FBErrorLoginFailedOrCancelled). If present,
|
142
|
+
the value will be one of the constants prefixed by FBErrorLoginFailedReason*.
|
143
|
+
*/
|
144
|
+
extern NSString *const FBErrorLoginFailedReason;
|
145
|
+
|
146
|
+
/*!
|
147
|
+
The key in the userInfo NSDictionary of NSError for unsuccessful
|
148
|
+
logins (error.code equals FBErrorLoginFailedOrCancelled). If present,
|
149
|
+
the value indicates an original login error code wrapped by this error.
|
150
|
+
This is only used in the web dialog login flow.
|
151
|
+
*/
|
152
|
+
extern NSString *const FBErrorLoginFailedOriginalErrorCode;
|
153
|
+
|
154
|
+
/*!
|
155
|
+
A value that may appear in an NSError userInfo dictionary under the
|
156
|
+
`FBErrorLoginFailedReason` key for login failures. Indicates the user
|
157
|
+
cancelled a web dialog auth.
|
158
|
+
*/
|
159
|
+
extern NSString *const FBErrorLoginFailedReasonInlineCancelledValue;
|
160
|
+
|
161
|
+
/*!
|
162
|
+
A value that may appear in an NSError userInfo dictionary under the
|
163
|
+
`FBErrorLoginFailedReason` key for login failures. Indicates the user
|
164
|
+
did not cancel a web dialog auth.
|
165
|
+
*/
|
166
|
+
extern NSString *const FBErrorLoginFailedReasonInlineNotCancelledValue;
|
167
|
+
|
168
|
+
/*!
|
169
|
+
A value that may appear in an NSError userInfo dictionary under the
|
170
|
+
`FBErrorLoginFailedReason` key for login failures. Indicates the user
|
171
|
+
cancelled a non-iOS 6 SSO (either Safari or Facebook App) login.
|
172
|
+
*/
|
173
|
+
extern NSString *const FBErrorLoginFailedReasonUserCancelledValue;
|
174
|
+
|
175
|
+
/*!
|
176
|
+
A value that may appear in an NSError userInfo dictionary under the
|
177
|
+
`FBErrorLoginFailedReason` key for login failures. Indicates the user
|
178
|
+
cancelled an iOS system login.
|
179
|
+
*/
|
180
|
+
extern NSString *const FBErrorLoginFailedReasonUserCancelledSystemValue;
|
181
|
+
|
182
|
+
/*!
|
183
|
+
A value that may appear in an NSError userInfo dictionary under the
|
184
|
+
`FBErrorLoginFailedReason` key for login failures. Indicates the app's
|
185
|
+
slider in iOS 6 (device Settings -> Privacy -> Facebook {app} ) has
|
186
|
+
been disabled.
|
187
|
+
*/
|
188
|
+
extern NSString *const FBErrorLoginFailedReasonSystemDisallowedWithoutErrorValue;
|
189
|
+
|
190
|
+
/*!
|
191
|
+
A value that may appear in an NSError userInfo dictionary under the
|
192
|
+
`FBErrorLoginFailedReason` key for login failures. Indicates an error
|
193
|
+
has occurred when requesting Facebook account acccess in iOS 6 that was
|
194
|
+
not `FBErrorLoginFailedReasonSystemDisallowedWithoutErrorValue` nor
|
195
|
+
a user cancellation.
|
196
|
+
*/
|
197
|
+
extern NSString *const FBErrorLoginFailedReasonSystemError;
|
198
|
+
extern NSString *const FBErrorLoginFailedReasonUnitTestResponseUnrecognized;
|
199
|
+
|
200
|
+
/*!
|
201
|
+
A value that may appear in the NSError userInfo dictionary under the
|
202
|
+
`FBErrorLoginFailedReason` key when requesting new permissions fails. Indicates
|
203
|
+
the request for new permissions has failed because the session was closed.
|
204
|
+
*/
|
205
|
+
extern NSString *const FBErrorReauthorizeFailedReasonSessionClosed;
|
206
|
+
|
207
|
+
/*!
|
208
|
+
A value that may appear in the NSError userInfo dictionary under the
|
209
|
+
`FBErrorLoginFailedReason` key when requesting new permissions fails. Indicates
|
210
|
+
the request for new permissions has failed because the user cancelled.
|
211
|
+
*/
|
212
|
+
extern NSString *const FBErrorReauthorizeFailedReasonUserCancelled;
|
213
|
+
|
214
|
+
/*!
|
215
|
+
A value that may appear in the NSError userInfo dictionary under the
|
216
|
+
`FBErrorLoginFailedReason` key when requesting new permissions fails on
|
217
|
+
iOS 6 with the Facebook account. Indicates the request for new permissions has
|
218
|
+
failed because the user cancelled.
|
219
|
+
*/
|
220
|
+
extern NSString *const FBErrorReauthorizeFailedReasonUserCancelledSystem;
|
221
|
+
|
222
|
+
/*!
|
223
|
+
A value that may appear in the NSError userInfo dictionary under the
|
224
|
+
`FBErrorLoginFailedReason` key when requesting new permissions fails. Indicates
|
225
|
+
the request for new permissions has failed because the request was
|
226
|
+
for a different user than the original permission set.
|
227
|
+
*/
|
228
|
+
extern NSString *const FBErrorReauthorizeFailedReasonWrongUser;
|
229
|
+
|
230
|
+
/*!
|
231
|
+
The key in the userInfo NSDictionary of NSError for errors
|
232
|
+
encountered with `FBNativeDialog` operations. (error.code equals FBErrorNativeDialog).
|
233
|
+
If present, the value will be one of the constants prefixed by FBErrorNativeDialog*.
|
234
|
+
*/
|
235
|
+
extern NSString *const FBErrorNativeDialogReasonKey;
|
236
|
+
|
237
|
+
/*!
|
238
|
+
A value that may appear in the NSError userInfo dictionary under the
|
239
|
+
`FBErrorNativeDialogReasonKey` key. Indicates that a native dialog is not supported
|
240
|
+
in the current OS.
|
241
|
+
*/
|
242
|
+
extern NSString *const FBErrorNativeDialogNotSupported;
|
243
|
+
|
244
|
+
/*!
|
245
|
+
A value that may appear in the NSError userInfo dictionary under the
|
246
|
+
`FBErrorNativeDialogReasonKey` key. Indicates that a native dialog cannot be
|
247
|
+
displayed because it is not appropriate for the current session.
|
248
|
+
*/
|
249
|
+
extern NSString *const FBErrorNativeDialogInvalidForSession;
|
250
|
+
|
251
|
+
/*!
|
252
|
+
A value that may appear in the NSError userInfo dictionary under the
|
253
|
+
`FBErrorNativeDialogReasonKey` key. Indicates that a native dialog cannot be
|
254
|
+
displayed for some other reason.
|
255
|
+
*/
|
256
|
+
extern NSString *const FBErrorNativeDialogCantBeDisplayed;
|
257
|
+
|
258
|
+
/*!
|
259
|
+
The key in the userInfo NSDictionary of NSError for errors
|
260
|
+
encountered with `FBInsights` operations (error.code equals FBErrorInsights).
|
261
|
+
*/
|
262
|
+
extern NSString *const FBErrorInsightsReasonKey;
|
263
|
+
|
264
|
+
// Exception strings raised by the Facebook SDK
|
265
|
+
|
266
|
+
/*!
|
267
|
+
This exception is raised by methods in the Facebook SDK to indicate
|
268
|
+
that an attempted operation is invalid
|
269
|
+
*/
|
270
|
+
extern NSString *const FBInvalidOperationException;
|
271
|
+
|
272
|
+
// Facebook SDK also raises exceptions the following common exceptions:
|
273
|
+
// NSInvalidArgumentException
|
274
|
+
|