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,118 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2010 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 FBViewController;
|
20
|
+
|
21
|
+
/*!
|
22
|
+
@typedef FBModalCompletionHandler
|
23
|
+
|
24
|
+
@abstract
|
25
|
+
A block that is passed to [FBViewController presentModallyInViewController:animated:handler:]
|
26
|
+
and called when the view controller is dismissed via either Done or Cancel.
|
27
|
+
|
28
|
+
@param sender The <FBViewController> that is being dismissed.
|
29
|
+
|
30
|
+
@param donePressed If YES, Done was pressed. If NO, Cancel was pressed.
|
31
|
+
*/
|
32
|
+
typedef void (^FBModalCompletionHandler)(FBViewController *sender, BOOL donePressed);
|
33
|
+
|
34
|
+
/*!
|
35
|
+
@protocol
|
36
|
+
|
37
|
+
@abstract
|
38
|
+
The `FBViewControllerDelegate` protocol defines the methods called when the Cancel or Done
|
39
|
+
buttons are pressed in a <FBViewController>.
|
40
|
+
*/
|
41
|
+
@protocol FBViewControllerDelegate <NSObject>
|
42
|
+
|
43
|
+
@optional
|
44
|
+
|
45
|
+
/*!
|
46
|
+
@abstract
|
47
|
+
Called when the Cancel button is pressed on a modally-presented <FBViewController>.
|
48
|
+
|
49
|
+
@param sender The view controller sending the message.
|
50
|
+
*/
|
51
|
+
- (void)facebookViewControllerCancelWasPressed:(id)sender;
|
52
|
+
|
53
|
+
/*!
|
54
|
+
@abstract
|
55
|
+
Called when the Done button is pressed on a modally-presented <FBViewController>.
|
56
|
+
|
57
|
+
@param sender The view controller sending the message.
|
58
|
+
*/
|
59
|
+
- (void)facebookViewControllerDoneWasPressed:(id)sender;
|
60
|
+
|
61
|
+
@end
|
62
|
+
|
63
|
+
|
64
|
+
/*!
|
65
|
+
@class FBViewController
|
66
|
+
|
67
|
+
@abstract
|
68
|
+
The `FBViewController` class is a base class encapsulating functionality common to several
|
69
|
+
other view controller classes. Specifically, it provides UI when a view controller is presented
|
70
|
+
modally, in the form of optional Cancel and Done buttons.
|
71
|
+
*/
|
72
|
+
@interface FBViewController : UIViewController
|
73
|
+
|
74
|
+
/*!
|
75
|
+
@abstract
|
76
|
+
The Cancel button to display when presented modally. If nil, no Cancel button is displayed.
|
77
|
+
If this button is provided, its target and action will be redirected to internal handlers, replacing
|
78
|
+
any previous target that may have been set.
|
79
|
+
*/
|
80
|
+
@property (nonatomic, retain) IBOutlet UIBarButtonItem *cancelButton;
|
81
|
+
|
82
|
+
/*!
|
83
|
+
@abstract
|
84
|
+
The Done button to display when presented modally. If nil, no Done button is displayed.
|
85
|
+
If this button is provided, its target and action will be redirected to internal handlers, replacing
|
86
|
+
any previous target that may have been set.
|
87
|
+
*/
|
88
|
+
@property (nonatomic, retain) IBOutlet UIBarButtonItem *doneButton;
|
89
|
+
|
90
|
+
/*!
|
91
|
+
@abstract
|
92
|
+
The delegate that will be called when Cancel or Done is pressed. Derived classes may specify
|
93
|
+
derived types for their delegates that provide additional functionality.
|
94
|
+
*/
|
95
|
+
@property (nonatomic, assign) IBOutlet id<FBViewControllerDelegate> delegate;
|
96
|
+
|
97
|
+
/*!
|
98
|
+
@abstract
|
99
|
+
The view into which derived classes should put their subviews. This view will be resized correctly
|
100
|
+
depending on whether or not a toolbar is displayed.
|
101
|
+
*/
|
102
|
+
@property (nonatomic, readonly, retain) UIView *canvasView;
|
103
|
+
|
104
|
+
/*!
|
105
|
+
@abstract
|
106
|
+
Provides a wrapper that presents the view controller modally and automatically dismisses it
|
107
|
+
when either the Done or Cancel button is pressed.
|
108
|
+
|
109
|
+
@param viewController The view controller that is presenting this view controller.
|
110
|
+
@param animated If YES, presenting and dismissing the view controller is animated.
|
111
|
+
@param handler The block called when the Done or Cancel button is pressed.
|
112
|
+
*/
|
113
|
+
- (void)presentModallyFromViewController:(UIViewController*)viewController
|
114
|
+
animated:(BOOL)animated
|
115
|
+
handler:(FBModalCompletionHandler)handler;
|
116
|
+
|
117
|
+
@end
|
118
|
+
|
@@ -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,281 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2010 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 "FBLoginDialog.h"
|
18
|
+
#import "FBRequest.h"
|
19
|
+
#import "FBSessionManualTokenCachingStrategy.h"
|
20
|
+
#import "FBFrictionlessRequestSettings.h"
|
21
|
+
#import "FacebookSDK.h"
|
22
|
+
|
23
|
+
////////////////////////////////////////////////////////////////////////////////
|
24
|
+
// deprecated API
|
25
|
+
//
|
26
|
+
// Summary
|
27
|
+
// The classes, protocols, etc. in this header are provided for backward
|
28
|
+
// compatibility and migration; for new code, use FacebookSDK.h, and/or the
|
29
|
+
// public headers that it imports; for existing code under active development,
|
30
|
+
// Facebook.h imports FacebookSDK.h, and updates should favor the new interfaces
|
31
|
+
// whenever possible
|
32
|
+
|
33
|
+
// up-front decl's
|
34
|
+
@class FBFrictionlessRequestSettings;
|
35
|
+
@protocol FBRequestDelegate;
|
36
|
+
@protocol FBSessionDelegate;
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Main Facebook interface for interacting with the Facebook developer API.
|
40
|
+
* Provides methods to log in and log out a user, make requests using the REST
|
41
|
+
* and Graph APIs, and start user interface interactions (such as
|
42
|
+
* pop-ups promoting for credentials, permissions, stream posts, etc.)
|
43
|
+
*/
|
44
|
+
@interface Facebook : NSObject<FBLoginDialogDelegate>{
|
45
|
+
id<FBSessionDelegate> _sessionDelegate;
|
46
|
+
NSMutableSet* _requests;
|
47
|
+
FBSession* _session;
|
48
|
+
FBSessionManualTokenCachingStrategy *_tokenCaching;
|
49
|
+
FBDialog* _fbDialog;
|
50
|
+
NSString* _appId;
|
51
|
+
NSString* _urlSchemeSuffix;
|
52
|
+
BOOL _isExtendingAccessToken;
|
53
|
+
FBRequest *_requestExtendingAccessToken;
|
54
|
+
NSDate* _lastAccessTokenUpdate;
|
55
|
+
FBFrictionlessRequestSettings* _frictionlessRequestSettings;
|
56
|
+
}
|
57
|
+
|
58
|
+
@property(nonatomic, copy) NSString* accessToken;
|
59
|
+
@property(nonatomic, copy) NSDate* expirationDate;
|
60
|
+
@property(nonatomic, assign) id<FBSessionDelegate> sessionDelegate;
|
61
|
+
@property(nonatomic, copy) NSString* urlSchemeSuffix;
|
62
|
+
@property(nonatomic, readonly) BOOL isFrictionlessRequestsEnabled;
|
63
|
+
@property(nonatomic, readonly, retain) FBSession *session;
|
64
|
+
|
65
|
+
- (id)initWithAppId:(NSString *)appId
|
66
|
+
andDelegate:(id<FBSessionDelegate>)delegate;
|
67
|
+
|
68
|
+
- (id)initWithAppId:(NSString *)appId
|
69
|
+
urlSchemeSuffix:(NSString *)urlSchemeSuffix
|
70
|
+
andDelegate:(id<FBSessionDelegate>)delegate;
|
71
|
+
|
72
|
+
- (void)authorize:(NSArray *)permissions;
|
73
|
+
|
74
|
+
- (void)extendAccessToken;
|
75
|
+
|
76
|
+
- (void)extendAccessTokenIfNeeded;
|
77
|
+
|
78
|
+
- (BOOL)shouldExtendAccessToken;
|
79
|
+
|
80
|
+
- (BOOL)handleOpenURL:(NSURL *)url;
|
81
|
+
|
82
|
+
- (void)logout;
|
83
|
+
|
84
|
+
- (void)logout:(id<FBSessionDelegate>)delegate;
|
85
|
+
|
86
|
+
- (FBRequest*)requestWithParams:(NSMutableDictionary *)params
|
87
|
+
andDelegate:(id <FBRequestDelegate>)delegate;
|
88
|
+
|
89
|
+
- (FBRequest*)requestWithMethodName:(NSString *)methodName
|
90
|
+
andParams:(NSMutableDictionary *)params
|
91
|
+
andHttpMethod:(NSString *)httpMethod
|
92
|
+
andDelegate:(id <FBRequestDelegate>)delegate;
|
93
|
+
|
94
|
+
- (FBRequest*)requestWithGraphPath:(NSString *)graphPath
|
95
|
+
andDelegate:(id <FBRequestDelegate>)delegate;
|
96
|
+
|
97
|
+
- (FBRequest*)requestWithGraphPath:(NSString *)graphPath
|
98
|
+
andParams:(NSMutableDictionary *)params
|
99
|
+
andDelegate:(id <FBRequestDelegate>)delegate;
|
100
|
+
|
101
|
+
- (FBRequest*)requestWithGraphPath:(NSString *)graphPath
|
102
|
+
andParams:(NSMutableDictionary *)params
|
103
|
+
andHttpMethod:(NSString *)httpMethod
|
104
|
+
andDelegate:(id <FBRequestDelegate>)delegate;
|
105
|
+
|
106
|
+
- (void)dialog:(NSString *)action
|
107
|
+
andDelegate:(id<FBDialogDelegate>)delegate;
|
108
|
+
|
109
|
+
- (void)dialog:(NSString *)action
|
110
|
+
andParams:(NSMutableDictionary *)params
|
111
|
+
andDelegate:(id <FBDialogDelegate>)delegate;
|
112
|
+
|
113
|
+
- (BOOL)isSessionValid;
|
114
|
+
|
115
|
+
- (void)enableFrictionlessRequests;
|
116
|
+
|
117
|
+
- (void)reloadFrictionlessRecipientCache;
|
118
|
+
|
119
|
+
- (BOOL)isFrictionlessEnabledForRecipient:(id)fbid;
|
120
|
+
|
121
|
+
- (BOOL)isFrictionlessEnabledForRecipients:(NSArray*)fbids;
|
122
|
+
|
123
|
+
@end
|
124
|
+
|
125
|
+
////////////////////////////////////////////////////////////////////////////////
|
126
|
+
|
127
|
+
/**
|
128
|
+
* Your application should implement this delegate to receive session callbacks.
|
129
|
+
*/
|
130
|
+
@protocol FBSessionDelegate <NSObject>
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Called when the user successfully logged in.
|
134
|
+
*/
|
135
|
+
- (void)fbDidLogin;
|
136
|
+
|
137
|
+
/**
|
138
|
+
* Called when the user dismissed the dialog without logging in.
|
139
|
+
*/
|
140
|
+
- (void)fbDidNotLogin:(BOOL)cancelled;
|
141
|
+
|
142
|
+
/**
|
143
|
+
* Called after the access token was extended. If your application has any
|
144
|
+
* references to the previous access token (for example, if your application
|
145
|
+
* stores the previous access token in persistent storage), your application
|
146
|
+
* should overwrite the old access token with the new one in this method.
|
147
|
+
* See extendAccessToken for more details.
|
148
|
+
*/
|
149
|
+
- (void)fbDidExtendToken:(NSString*)accessToken
|
150
|
+
expiresAt:(NSDate*)expiresAt;
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Called when the user logged out.
|
154
|
+
*/
|
155
|
+
- (void)fbDidLogout;
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Called when the current session has expired. This might happen when:
|
159
|
+
* - the access token expired
|
160
|
+
* - the app has been disabled
|
161
|
+
* - the user revoked the app's permissions
|
162
|
+
* - the user changed his or her password
|
163
|
+
*/
|
164
|
+
- (void)fbSessionInvalidated;
|
165
|
+
|
166
|
+
@end
|
167
|
+
|
168
|
+
@protocol FBRequestDelegate;
|
169
|
+
|
170
|
+
enum {
|
171
|
+
kFBRequestStateReady,
|
172
|
+
kFBRequestStateLoading,
|
173
|
+
kFBRequestStateComplete,
|
174
|
+
kFBRequestStateError
|
175
|
+
};
|
176
|
+
|
177
|
+
// FBRequest(Deprecated)
|
178
|
+
//
|
179
|
+
// Summary
|
180
|
+
// The deprecated category is used to maintain back compat and ease migration
|
181
|
+
// to the revised SDK for iOS
|
182
|
+
|
183
|
+
/**
|
184
|
+
* Do not use this interface directly, instead, use method in Facebook.h
|
185
|
+
*/
|
186
|
+
@interface FBRequest(Deprecated)
|
187
|
+
|
188
|
+
@property(nonatomic,assign) id<FBRequestDelegate> delegate;
|
189
|
+
|
190
|
+
/**
|
191
|
+
* The URL which will be contacted to execute the request.
|
192
|
+
*/
|
193
|
+
@property(nonatomic,copy) NSString* url;
|
194
|
+
|
195
|
+
/**
|
196
|
+
* The API method which will be called.
|
197
|
+
*/
|
198
|
+
@property(nonatomic,copy) NSString* httpMethod;
|
199
|
+
|
200
|
+
/**
|
201
|
+
* The dictionary of parameters to pass to the method.
|
202
|
+
*
|
203
|
+
* These values in the dictionary will be converted to strings using the
|
204
|
+
* standard Objective-C object-to-string conversion facilities.
|
205
|
+
*/
|
206
|
+
@property(nonatomic,retain) NSMutableDictionary* params;
|
207
|
+
@property(nonatomic,retain) NSURLConnection* connection;
|
208
|
+
@property(nonatomic,retain) NSMutableData* responseText;
|
209
|
+
#pragma GCC diagnostic push
|
210
|
+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
211
|
+
@property(nonatomic) FBRequestState state;
|
212
|
+
#pragma GCC diagnostic pop
|
213
|
+
@property(nonatomic) BOOL sessionDidExpire;
|
214
|
+
|
215
|
+
/**
|
216
|
+
* Error returned by the server in case of request's failure (or nil otherwise).
|
217
|
+
*/
|
218
|
+
@property(nonatomic,retain) NSError* error;
|
219
|
+
|
220
|
+
- (BOOL) loading;
|
221
|
+
|
222
|
+
+ (NSString *)serializeURL:(NSString *)baseUrl
|
223
|
+
params:(NSDictionary *)params;
|
224
|
+
|
225
|
+
+ (NSString*)serializeURL:(NSString *)baseUrl
|
226
|
+
params:(NSDictionary *)params
|
227
|
+
httpMethod:(NSString *)httpMethod;
|
228
|
+
|
229
|
+
@end
|
230
|
+
|
231
|
+
////////////////////////////////////////////////////////////////////////////////
|
232
|
+
|
233
|
+
/*
|
234
|
+
*Your application should implement this delegate
|
235
|
+
*/
|
236
|
+
@protocol FBRequestDelegate <NSObject>
|
237
|
+
|
238
|
+
@optional
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Called just before the request is sent to the server.
|
242
|
+
*/
|
243
|
+
- (void)requestLoading:(FBRequest *)request;
|
244
|
+
|
245
|
+
/**
|
246
|
+
* Called when the Facebook API request has returned a response.
|
247
|
+
*
|
248
|
+
* This callback gives you access to the raw response. It's called before
|
249
|
+
* (void)request:(FBRequest *)request didLoad:(id)result,
|
250
|
+
* which is passed the parsed response object.
|
251
|
+
*/
|
252
|
+
- (void)request:(FBRequest *)request didReceiveResponse:(NSURLResponse *)response;
|
253
|
+
|
254
|
+
/**
|
255
|
+
* Called when an error prevents the request from completing successfully.
|
256
|
+
*/
|
257
|
+
- (void)request:(FBRequest *)request didFailWithError:(NSError *)error;
|
258
|
+
|
259
|
+
/**
|
260
|
+
* Called when a request returns and its response has been parsed into
|
261
|
+
* an object.
|
262
|
+
*
|
263
|
+
* The resulting object may be a dictionary, an array or a string, depending
|
264
|
+
* on the format of the API response. If you need access to the raw response,
|
265
|
+
* use:
|
266
|
+
*
|
267
|
+
* (void)request:(FBRequest *)request
|
268
|
+
* didReceiveResponse:(NSURLResponse *)response
|
269
|
+
*/
|
270
|
+
- (void)request:(FBRequest *)request didLoad:(id)result;
|
271
|
+
|
272
|
+
/**
|
273
|
+
* Called when a request returns a response.
|
274
|
+
*
|
275
|
+
* The result object is the raw response from the server of type NSData
|
276
|
+
*/
|
277
|
+
- (void)request:(FBRequest *)request didLoadRawResponse:(NSData *)data;
|
278
|
+
|
279
|
+
@end
|
280
|
+
|
281
|
+
|