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,234 @@
|
|
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 <UIKit/UIKit.h>
|
18
|
+
|
19
|
+
@class FBFrictionlessRecipientCache;
|
20
|
+
@class FBSession;
|
21
|
+
@protocol FBWebDialogsDelegate;
|
22
|
+
|
23
|
+
/*!
|
24
|
+
@typedef FBWebDialogResult enum
|
25
|
+
|
26
|
+
@abstract
|
27
|
+
Passed to a handler to indicate the result of a dialog being displayed to the user.
|
28
|
+
*/
|
29
|
+
typedef enum {
|
30
|
+
/*! Indicates that the dialog action completed successfully. Note, that cancel operations represent completed dialog operations.
|
31
|
+
The url argument may be used to distinguish between success and user-cancelled cases */
|
32
|
+
FBWebDialogResultDialogCompleted,
|
33
|
+
/*! Indicates that the dialog operation was not completed. This occurs in cases such as the closure of the web-view using the X in the upper left corner. */
|
34
|
+
FBWebDialogResultDialogNotCompleted
|
35
|
+
} FBWebDialogResult;
|
36
|
+
|
37
|
+
/*!
|
38
|
+
@typedef
|
39
|
+
|
40
|
+
@abstract Defines a handler that will be called in response to the web dialog
|
41
|
+
being dismissed
|
42
|
+
*/
|
43
|
+
typedef void (^FBWebDialogHandler)(
|
44
|
+
FBWebDialogResult result,
|
45
|
+
NSURL *resultURL,
|
46
|
+
NSError *error);
|
47
|
+
|
48
|
+
/*!
|
49
|
+
@class FBWebDialogs
|
50
|
+
|
51
|
+
@abstract
|
52
|
+
Provides methods to display web based dialogs to the user.
|
53
|
+
*/
|
54
|
+
@interface FBWebDialogs : NSObject
|
55
|
+
|
56
|
+
/*!
|
57
|
+
@abstract
|
58
|
+
Presents a Facebook web dialog (https://developers.facebook.com/docs/reference/dialogs/)
|
59
|
+
such as feed or apprequest.
|
60
|
+
|
61
|
+
@param session Represents the session to use for the dialog. May be nil, which uses
|
62
|
+
the active session if present, or returns NO, if not.
|
63
|
+
|
64
|
+
@param dialog Represents the dialog or method name, such as @"feed"
|
65
|
+
|
66
|
+
@param parameters A dictionary of parameters to be passed to the dialog
|
67
|
+
|
68
|
+
@param handler An optional handler that will be called when the dialog is dismissed. Note,
|
69
|
+
that if the method returns NO, the handler is not called. May be nil.
|
70
|
+
*/
|
71
|
+
+ (void)presentDialogModallyWithSession:(FBSession *)session
|
72
|
+
dialog:(NSString *)dialog
|
73
|
+
parameters:(NSDictionary *)parameters
|
74
|
+
handler:(FBWebDialogHandler)handler;
|
75
|
+
|
76
|
+
/*!
|
77
|
+
@abstract
|
78
|
+
Presents a Facebook web dialog (https://developers.facebook.com/docs/reference/dialogs/)
|
79
|
+
such as feed or apprequest.
|
80
|
+
|
81
|
+
@param session Represents the session to use for the dialog. May be nil, which uses
|
82
|
+
the active session if present, or returns NO, if not.
|
83
|
+
|
84
|
+
@param dialog Represents the dialog or method name, such as @"feed"
|
85
|
+
|
86
|
+
@param parameters A dictionary of parameters to be passed to the dialog
|
87
|
+
|
88
|
+
@param handler An optional handler that will be called when the dialog is dismissed. Note,
|
89
|
+
that if the method returns NO, the handler is not called. May be nil.
|
90
|
+
|
91
|
+
@param delegate An optional delegate to allow for advanced processing of web based
|
92
|
+
dialogs. See 'FBWebDialogsDelegate' for more details.
|
93
|
+
*/
|
94
|
+
+ (void)presentDialogModallyWithSession:(FBSession *)session
|
95
|
+
dialog:(NSString *)dialog
|
96
|
+
parameters:(NSDictionary *)parameters
|
97
|
+
handler:(FBWebDialogHandler)handler
|
98
|
+
delegate:(id<FBWebDialogsDelegate>)delegate;
|
99
|
+
|
100
|
+
/*!
|
101
|
+
@abstract
|
102
|
+
Presents a Facebook apprequest dialog.
|
103
|
+
|
104
|
+
@param session Represents the session to use for the dialog. May be nil, which uses
|
105
|
+
the active session if present.
|
106
|
+
|
107
|
+
@param message The required message for the dialog.
|
108
|
+
|
109
|
+
@param title An optional title for the dialog.
|
110
|
+
|
111
|
+
@param parameters A dictionary of additional parameters to be passed to the dialog. May be nil
|
112
|
+
|
113
|
+
@param handler An optional handler that will be called when the dialog is dismissed. May be nil.
|
114
|
+
*/
|
115
|
+
+ (void)presentRequestsDialogModallyWithSession:(FBSession *)session
|
116
|
+
message:(NSString *)message
|
117
|
+
title:(NSString *)title
|
118
|
+
parameters:(NSDictionary *)parameters
|
119
|
+
handler:(FBWebDialogHandler)handler;
|
120
|
+
|
121
|
+
/*!
|
122
|
+
@abstract
|
123
|
+
Presents a Facebook apprequest dialog.
|
124
|
+
|
125
|
+
@param session Represents the session to use for the dialog. May be nil, which uses
|
126
|
+
the active session if present.
|
127
|
+
|
128
|
+
@param message The required message for the dialog.
|
129
|
+
|
130
|
+
@param title An optional title for the dialog.
|
131
|
+
|
132
|
+
@param parameters A dictionary of additional parameters to be passed to the dialog. May be nil
|
133
|
+
|
134
|
+
@param handler An optional handler that will be called when the dialog is dismissed. May be nil.
|
135
|
+
|
136
|
+
@param friend cache An optional cache object used to enable frictionless sharing for a known set of friends. The
|
137
|
+
cache instance should be preserved for the life of the session and reused for multiple calls to the present method.
|
138
|
+
As the users set of friends enabled for frictionless sharing changes, this method auto-updates the cache.
|
139
|
+
*/
|
140
|
+
+ (void)presentRequestsDialogModallyWithSession:(FBSession *)session
|
141
|
+
message:(NSString *)message
|
142
|
+
title:(NSString *)title
|
143
|
+
parameters:(NSDictionary *)parameters
|
144
|
+
handler:(FBWebDialogHandler)handler
|
145
|
+
friendCache:(FBFrictionlessRecipientCache *)friendCache;
|
146
|
+
|
147
|
+
/*!
|
148
|
+
@abstract
|
149
|
+
Presents a Facebook feed dialog.
|
150
|
+
|
151
|
+
@param session Represents the session to use for the dialog. May be nil, which uses
|
152
|
+
the active session if present.
|
153
|
+
|
154
|
+
@param parameters A dictionary of additional parameters to be passed to the dialog. May be nil
|
155
|
+
|
156
|
+
@param handler An optional handler that will be called when the dialog is dismissed. May be nil.
|
157
|
+
*/
|
158
|
+
+ (void)presentFeedDialogModallyWithSession:(FBSession *)session
|
159
|
+
parameters:(NSDictionary *)parameters
|
160
|
+
handler:(FBWebDialogHandler)handler;
|
161
|
+
|
162
|
+
@end
|
163
|
+
|
164
|
+
/*!
|
165
|
+
@protocol
|
166
|
+
|
167
|
+
@abstract
|
168
|
+
The `FBWebDialogsDelegate` protocol enables the plugging of advanced behaviors into
|
169
|
+
the presentation flow of a Facebook web dialog. Advanced uses include modification
|
170
|
+
of parameters and application-level handling of links on the dialog. The
|
171
|
+
`FBFrictionlessRequestFriendCache` class implements this protocol to add frictionless
|
172
|
+
behaviors to a presentation of the request dialog.
|
173
|
+
*/
|
174
|
+
@protocol FBWebDialogsDelegate<NSObject>
|
175
|
+
|
176
|
+
@optional
|
177
|
+
|
178
|
+
/*!
|
179
|
+
@abstract
|
180
|
+
Called prior to the presentation of a web dialog
|
181
|
+
|
182
|
+
@param dialog A string representing the method or dialog name of the dialog being presented.
|
183
|
+
|
184
|
+
@param parameters A mutable dictionary of parameters which will be sent to the dialog.
|
185
|
+
|
186
|
+
@param session The session object to use with the dialog.
|
187
|
+
*/
|
188
|
+
- (void)webDialogsWillPresentDialog:(NSString *)dialog
|
189
|
+
parameters:(NSMutableDictionary *)parameters
|
190
|
+
session:(FBSession *)session;
|
191
|
+
|
192
|
+
/*!
|
193
|
+
@abstract
|
194
|
+
Called when the user of a dialog clicks a link that would cause a transition away from the application.
|
195
|
+
Your application may handle this method, and return NO if the URL handling will be performed by the application.
|
196
|
+
|
197
|
+
@param dialog A string representing the method or dialog name of the dialog being presented.
|
198
|
+
|
199
|
+
@param parameters A dictionary of parameters which were sent to the dialog.
|
200
|
+
|
201
|
+
@param session The session object to use with the dialog.
|
202
|
+
|
203
|
+
@param url The url in question, which will not be handled by the SDK if this method NO
|
204
|
+
*/
|
205
|
+
- (BOOL)webDialogsDialog:(NSString *)dialog
|
206
|
+
parameters:(NSDictionary *)parameters
|
207
|
+
session:(FBSession *)session
|
208
|
+
shouldAutoHandleURL:(NSURL *)url;
|
209
|
+
|
210
|
+
/*!
|
211
|
+
@abstract
|
212
|
+
Called when the dialog is about to be dismissed
|
213
|
+
|
214
|
+
@param dialog A string representing the method or dialog name of the dialog being presented.
|
215
|
+
|
216
|
+
@param parameters A dictionary of parameters which were sent to the dialog.
|
217
|
+
|
218
|
+
@param session The session object to use with the dialog.
|
219
|
+
|
220
|
+
@param result A pointer to a result, which may be read or changed by the handling method as needed
|
221
|
+
|
222
|
+
@param url A pointer to a pointer to a URL representing the URL returned by the dialog, which may be read or changed by this mehthod
|
223
|
+
|
224
|
+
@param error A pointer to a pointer to an error object which may be read or changed by this method as needed
|
225
|
+
*/
|
226
|
+
- (void)webDialogsWillDismissDialog:(NSString *)dialog
|
227
|
+
parameters:(NSDictionary *)parameters
|
228
|
+
session:(FBSession *)session
|
229
|
+
result:(FBWebDialogResult *)result
|
230
|
+
url:(NSURL **)url
|
231
|
+
error:(NSError **)error;
|
232
|
+
|
233
|
+
@end
|
234
|
+
|
@@ -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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
6
|
+
<string>English</string>
|
7
|
+
<key>CFBundleExecutable</key>
|
8
|
+
<string>FacebookSDK</string>
|
9
|
+
<key>CFBundleIdentifier</key>
|
10
|
+
<string>com.facebook.sdk</string>
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
12
|
+
<string>1.0</string>
|
13
|
+
<key>CFBundlePackageType</key>
|
14
|
+
<string>FMWK</string>
|
15
|
+
<key>CFBundleSignature</key>
|
16
|
+
<string>????</string>
|
17
|
+
<key>CFBundleVersion</key>
|
18
|
+
<string>1.0</string>
|
19
|
+
</dict>
|
20
|
+
</plist>
|
@@ -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
|