motion-firebase 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBRequestConnection.h
ADDED
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2012 Facebook
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
#import <Foundation/Foundation.h>
|
|
18
|
+
#import <CoreLocation/CoreLocation.h>
|
|
19
|
+
#import "FBGraphObject.h"
|
|
20
|
+
|
|
21
|
+
// up-front decl's
|
|
22
|
+
@class FBRequest;
|
|
23
|
+
@class FBRequestConnection;
|
|
24
|
+
@class UIImage;
|
|
25
|
+
|
|
26
|
+
/*!
|
|
27
|
+
Normally requests return JSON data that is parsed into a set of `NSDictionary`
|
|
28
|
+
and `NSArray` objects.
|
|
29
|
+
|
|
30
|
+
When a request returns a non-JSON response, that response is packaged in
|
|
31
|
+
a `NSDictionary` using FBNonJSONResponseProperty as the key and the literal
|
|
32
|
+
response as the value.
|
|
33
|
+
*/
|
|
34
|
+
extern NSString *const FBNonJSONResponseProperty;
|
|
35
|
+
|
|
36
|
+
/*!
|
|
37
|
+
@typedef FBRequestHandler
|
|
38
|
+
|
|
39
|
+
@abstract
|
|
40
|
+
A block that is passed to addRequest to register for a callback with the results of that
|
|
41
|
+
request once the connection completes.
|
|
42
|
+
|
|
43
|
+
@discussion
|
|
44
|
+
Pass a block of this type when calling addRequest. This will be called once
|
|
45
|
+
the request completes. The call occurs on the UI thread.
|
|
46
|
+
|
|
47
|
+
@param connection The `FBRequestConnection` that sent the request.
|
|
48
|
+
|
|
49
|
+
@param result The result of the request. This is a translation of
|
|
50
|
+
JSON data to `NSDictionary` and `NSArray` objects. This
|
|
51
|
+
is nil if there was an error.
|
|
52
|
+
|
|
53
|
+
@param error The `NSError` representing any error that occurred.
|
|
54
|
+
|
|
55
|
+
*/
|
|
56
|
+
typedef void (^FBRequestHandler)(FBRequestConnection *connection,
|
|
57
|
+
id result,
|
|
58
|
+
NSError *error);
|
|
59
|
+
|
|
60
|
+
/*!
|
|
61
|
+
@class FBRequestConnection
|
|
62
|
+
|
|
63
|
+
@abstract
|
|
64
|
+
The `FBRequestConnection` represents a single connection to Facebook to service a request.
|
|
65
|
+
|
|
66
|
+
@discussion
|
|
67
|
+
The request settings are encapsulated in a reusable <FBRequest> object. The
|
|
68
|
+
`FBRequestConnection` object encapsulates the concerns of a single communication
|
|
69
|
+
e.g. starting a connection, canceling a connection, or batching requests.
|
|
70
|
+
|
|
71
|
+
*/
|
|
72
|
+
@interface FBRequestConnection : NSObject
|
|
73
|
+
|
|
74
|
+
/*!
|
|
75
|
+
@methodgroup Creating a request
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
/*!
|
|
79
|
+
@method
|
|
80
|
+
|
|
81
|
+
Calls <initWithTimeout:> with a default timeout of 180 seconds.
|
|
82
|
+
*/
|
|
83
|
+
- (id)init;
|
|
84
|
+
|
|
85
|
+
/*!
|
|
86
|
+
@method
|
|
87
|
+
|
|
88
|
+
@abstract
|
|
89
|
+
`FBRequestConnection` objects are used to issue one or more requests as a single
|
|
90
|
+
request/response connection with Facebook.
|
|
91
|
+
|
|
92
|
+
@discussion
|
|
93
|
+
For a single request, the usual method for creating an `FBRequestConnection`
|
|
94
|
+
object is to call one of the **start* ** methods on <FBRequest>. However, it is
|
|
95
|
+
allowable to init an `FBRequestConnection` object directly, and call
|
|
96
|
+
<addRequest:completionHandler:> to add one or more request objects to the
|
|
97
|
+
connection, before calling start.
|
|
98
|
+
|
|
99
|
+
Note that if requests are part of a batch, they must have an open
|
|
100
|
+
FBSession that has an access token associated with it. Alternatively a default App ID
|
|
101
|
+
must be set either in the plist or through an explicit call to <[FBSession defaultAppID]>.
|
|
102
|
+
|
|
103
|
+
@param timeout The `NSTimeInterval` (seconds) to wait for a response before giving up.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
- (id)initWithTimeout:(NSTimeInterval)timeout;
|
|
107
|
+
|
|
108
|
+
// properties
|
|
109
|
+
|
|
110
|
+
/*!
|
|
111
|
+
@abstract
|
|
112
|
+
The request that will be sent to the server.
|
|
113
|
+
|
|
114
|
+
@discussion
|
|
115
|
+
This property can be used to create a `NSURLRequest` without using
|
|
116
|
+
`FBRequestConnection` to send that request. It is legal to set this property
|
|
117
|
+
in which case the provided `NSMutableURLRequest` will be used instead. However,
|
|
118
|
+
the `NSMutableURLRequest` must result in an appropriate response. Furthermore, once
|
|
119
|
+
this property has been set, no more <FBRequest> objects can be added to this
|
|
120
|
+
`FBRequestConnection`.
|
|
121
|
+
*/
|
|
122
|
+
@property(nonatomic, retain, readwrite) NSMutableURLRequest *urlRequest;
|
|
123
|
+
|
|
124
|
+
/*!
|
|
125
|
+
@abstract
|
|
126
|
+
The raw response that was returned from the server. (readonly)
|
|
127
|
+
|
|
128
|
+
@discussion
|
|
129
|
+
This property can be used to inspect HTTP headers that were returned from
|
|
130
|
+
the server.
|
|
131
|
+
|
|
132
|
+
The property is nil until the request completes. If there was a response
|
|
133
|
+
then this property will be non-nil during the FBRequestHandler callback.
|
|
134
|
+
*/
|
|
135
|
+
@property(nonatomic, retain, readonly) NSHTTPURLResponse *urlResponse;
|
|
136
|
+
|
|
137
|
+
/*!
|
|
138
|
+
@methodgroup Adding requests
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
/*!
|
|
142
|
+
@method
|
|
143
|
+
|
|
144
|
+
@abstract
|
|
145
|
+
This method adds an <FBRequest> object to this connection and then calls
|
|
146
|
+
<start> on the connection.
|
|
147
|
+
|
|
148
|
+
@discussion
|
|
149
|
+
The completion handler is retained until the block is called upon the
|
|
150
|
+
completion or cancellation of the connection.
|
|
151
|
+
|
|
152
|
+
@param request A request to be included in the round-trip when start is called.
|
|
153
|
+
@param handler A handler to call back when the round-trip completes or times out.
|
|
154
|
+
*/
|
|
155
|
+
- (void)addRequest:(FBRequest*)request
|
|
156
|
+
completionHandler:(FBRequestHandler)handler;
|
|
157
|
+
|
|
158
|
+
/*!
|
|
159
|
+
@method
|
|
160
|
+
|
|
161
|
+
@abstract
|
|
162
|
+
This method adds an <FBRequest> object to this connection and then calls
|
|
163
|
+
<start> on the connection.
|
|
164
|
+
|
|
165
|
+
@discussion
|
|
166
|
+
The completion handler is retained until the block is called upon the
|
|
167
|
+
completion or cancellation of the connection. This request can be named
|
|
168
|
+
to allow for using the request's response in a subsequent request.
|
|
169
|
+
|
|
170
|
+
@param request A request to be included in the round-trip when start is called.
|
|
171
|
+
|
|
172
|
+
@param handler A handler to call back when the round-trip completes or times out.
|
|
173
|
+
|
|
174
|
+
@param name An optional name for this request. This can be used to feed
|
|
175
|
+
the results of one request to the input of another <FBRequest> in the same
|
|
176
|
+
`FBRequestConnection` as described in
|
|
177
|
+
[Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ).
|
|
178
|
+
*/
|
|
179
|
+
- (void)addRequest:(FBRequest*)request
|
|
180
|
+
completionHandler:(FBRequestHandler)handler
|
|
181
|
+
batchEntryName:(NSString*)name;
|
|
182
|
+
|
|
183
|
+
/*!
|
|
184
|
+
@methodgroup Instance methods
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
/*!
|
|
188
|
+
@method
|
|
189
|
+
|
|
190
|
+
@abstract
|
|
191
|
+
This method starts a connection with the server and is capable of handling all of the
|
|
192
|
+
requests that were added to the connection.
|
|
193
|
+
|
|
194
|
+
@discussion
|
|
195
|
+
Errors are reported via the handler callback, even in cases where no
|
|
196
|
+
communication is attempted by the implementation of `FBRequestConnection`. In
|
|
197
|
+
such cases multiple error conditions may apply, and if so the following
|
|
198
|
+
priority (highest to lowest) is used:
|
|
199
|
+
|
|
200
|
+
- `FBRequestConnectionInvalidRequestKey` -- this error is reported when an
|
|
201
|
+
<FBRequest> cannot be encoded for transmission.
|
|
202
|
+
|
|
203
|
+
- `FBRequestConnectionInvalidBatchKey` -- this error is reported when any
|
|
204
|
+
request in the connection cannot be encoded for transmission with the batch.
|
|
205
|
+
In this scenario all requests fail.
|
|
206
|
+
|
|
207
|
+
This method cannot be called twice for an `FBRequestConnection` instance.
|
|
208
|
+
*/
|
|
209
|
+
- (void)start;
|
|
210
|
+
|
|
211
|
+
/*!
|
|
212
|
+
@method
|
|
213
|
+
|
|
214
|
+
@abstract
|
|
215
|
+
Signals that a connection should be logically terminated as the
|
|
216
|
+
application is no longer interested in a response.
|
|
217
|
+
|
|
218
|
+
@discussion
|
|
219
|
+
Synchronously calls any handlers indicating the request was cancelled. Cancel
|
|
220
|
+
does not guarantee that the request-related processing will cease. It
|
|
221
|
+
does promise that all handlers will complete before the cancel returns. A call to
|
|
222
|
+
cancel prior to a start implies a cancellation of all requests associated
|
|
223
|
+
with the connection.
|
|
224
|
+
*/
|
|
225
|
+
- (void)cancel;
|
|
226
|
+
|
|
227
|
+
/*!
|
|
228
|
+
@method
|
|
229
|
+
|
|
230
|
+
@abstract
|
|
231
|
+
Simple method to make a graph API request for user info (/me), creates an <FBRequest>
|
|
232
|
+
then uses an <FBRequestConnection> object to start the connection with Facebook. The
|
|
233
|
+
request uses the active session represented by `[FBSession activeSession]`.
|
|
234
|
+
|
|
235
|
+
See <connectionWithSession:graphPath:parameters:HTTPMethod:completionHandler:>
|
|
236
|
+
|
|
237
|
+
@param handler The handler block to call when the request completes with a success, error, or cancel action.
|
|
238
|
+
*/
|
|
239
|
+
+ (FBRequestConnection*)startForMeWithCompletionHandler:(FBRequestHandler)handler;
|
|
240
|
+
|
|
241
|
+
/*!
|
|
242
|
+
@method
|
|
243
|
+
|
|
244
|
+
@abstract
|
|
245
|
+
Simple method to make a graph API request for user friends (/me/friends), creates an <FBRequest>
|
|
246
|
+
then uses an <FBRequestConnection> object to start the connection with Facebook. The
|
|
247
|
+
request uses the active session represented by `[FBSession activeSession]`.
|
|
248
|
+
|
|
249
|
+
See <connectionWithSession:graphPath:parameters:HTTPMethod:completionHandler:>
|
|
250
|
+
|
|
251
|
+
@param handler The handler block to call when the request completes with a success, error, or cancel action.
|
|
252
|
+
*/
|
|
253
|
+
+ (FBRequestConnection*)startForMyFriendsWithCompletionHandler:(FBRequestHandler)handler;
|
|
254
|
+
|
|
255
|
+
/*!
|
|
256
|
+
@method
|
|
257
|
+
|
|
258
|
+
@abstract
|
|
259
|
+
Simple method to make a graph API post of a photo. The request
|
|
260
|
+
uses the active session represented by `[FBSession activeSession]`.
|
|
261
|
+
|
|
262
|
+
@param photo A `UIImage` for the photo to upload.
|
|
263
|
+
@param handler The handler block to call when the request completes with a success, error, or cancel action.
|
|
264
|
+
*/
|
|
265
|
+
+ (FBRequestConnection*)startForUploadPhoto:(UIImage *)photo
|
|
266
|
+
completionHandler:(FBRequestHandler)handler;
|
|
267
|
+
|
|
268
|
+
/*!
|
|
269
|
+
@method
|
|
270
|
+
|
|
271
|
+
@abstract
|
|
272
|
+
Simple method to make a graph API post of a status update. The request
|
|
273
|
+
uses the active session represented by `[FBSession activeSession]`.
|
|
274
|
+
|
|
275
|
+
@param message The message to post.
|
|
276
|
+
@param handler The handler block to call when the request completes with a success, error, or cancel action.
|
|
277
|
+
*/
|
|
278
|
+
+ (FBRequestConnection *)startForPostStatusUpdate:(NSString *)message
|
|
279
|
+
completionHandler:(FBRequestHandler)handler;
|
|
280
|
+
|
|
281
|
+
/*!
|
|
282
|
+
@method
|
|
283
|
+
|
|
284
|
+
@abstract
|
|
285
|
+
Simple method to make a graph API post of a status update. The request
|
|
286
|
+
uses the active session represented by `[FBSession activeSession]`.
|
|
287
|
+
|
|
288
|
+
@param message The message to post.
|
|
289
|
+
@param place The place to checkin with, or nil. Place may be an fbid or a
|
|
290
|
+
graph object representing a place.
|
|
291
|
+
@param tags Array of friends to tag in the status update, each element
|
|
292
|
+
may be an fbid or a graph object representing a user.
|
|
293
|
+
@param handler The handler block to call when the request completes with a success, error, or cancel action.
|
|
294
|
+
*/
|
|
295
|
+
+ (FBRequestConnection *)startForPostStatusUpdate:(NSString *)message
|
|
296
|
+
place:(id)place
|
|
297
|
+
tags:(id<NSFastEnumeration>)tags
|
|
298
|
+
completionHandler:(FBRequestHandler)handler;
|
|
299
|
+
|
|
300
|
+
/*!
|
|
301
|
+
@method
|
|
302
|
+
|
|
303
|
+
@abstract
|
|
304
|
+
Starts a request representing a Graph API call to the "search" endpoint
|
|
305
|
+
for a given location using the active session.
|
|
306
|
+
|
|
307
|
+
@discussion
|
|
308
|
+
Simplifies starting a request to search for places near a coordinate.
|
|
309
|
+
|
|
310
|
+
This method creates the necessary <FBRequest> object and initializes and
|
|
311
|
+
starts an <FBRequestConnection> object. A successful Graph API call will
|
|
312
|
+
return an array of <FBGraphPlace> objects representing the nearby locations.
|
|
313
|
+
|
|
314
|
+
@param coordinate The search coordinates.
|
|
315
|
+
|
|
316
|
+
@param radius The search radius in meters.
|
|
317
|
+
|
|
318
|
+
@param limit The maxiumum number of results to return. It is
|
|
319
|
+
possible to receive fewer than this because of the
|
|
320
|
+
radius and because of server limits.
|
|
321
|
+
|
|
322
|
+
@param searchText The text to use in the query to narrow the set of places
|
|
323
|
+
returned.
|
|
324
|
+
@param handler The handler block to call when the request completes with a success, error, or cancel action.
|
|
325
|
+
*/
|
|
326
|
+
+ (FBRequestConnection*)startForPlacesSearchAtCoordinate:(CLLocationCoordinate2D)coordinate
|
|
327
|
+
radiusInMeters:(NSInteger)radius
|
|
328
|
+
resultsLimit:(NSInteger)limit
|
|
329
|
+
searchText:(NSString*)searchText
|
|
330
|
+
completionHandler:(FBRequestHandler)handler;
|
|
331
|
+
|
|
332
|
+
/*!
|
|
333
|
+
@method
|
|
334
|
+
|
|
335
|
+
@abstract
|
|
336
|
+
Simple method to make a graph API request, creates an <FBRequest> object for then
|
|
337
|
+
uses an <FBRequestConnection> object to start the connection with Facebook. The
|
|
338
|
+
request uses the active session represented by `[FBSession activeSession]`.
|
|
339
|
+
|
|
340
|
+
See <connectionWithSession:graphPath:parameters:HTTPMethod:completionHandler:>
|
|
341
|
+
|
|
342
|
+
@param graphPath The Graph API endpoint to use for the request, for example "me".
|
|
343
|
+
@param handler The handler block to call when the request completes with a success, error, or cancel action.
|
|
344
|
+
*/
|
|
345
|
+
+ (FBRequestConnection*)startWithGraphPath:(NSString*)graphPath
|
|
346
|
+
completionHandler:(FBRequestHandler)handler;
|
|
347
|
+
|
|
348
|
+
/*!
|
|
349
|
+
@method
|
|
350
|
+
|
|
351
|
+
@abstract
|
|
352
|
+
Simple method to make post an object using the graph API, creates an <FBRequest> object for
|
|
353
|
+
HTTP POST, then uses <FBRequestConnection> to start a connection with Facebook. The request uses
|
|
354
|
+
the active session represented by `[FBSession activeSession]`.
|
|
355
|
+
|
|
356
|
+
@param graphPath The Graph API endpoint to use for the request, for example "me".
|
|
357
|
+
|
|
358
|
+
@param graphObject An object or open graph action to post.
|
|
359
|
+
|
|
360
|
+
@param handler The handler block to call when the request completes with a success, error, or cancel action.
|
|
361
|
+
*/
|
|
362
|
+
+ (FBRequestConnection*)startForPostWithGraphPath:(NSString*)graphPath
|
|
363
|
+
graphObject:(id<FBGraphObject>)graphObject
|
|
364
|
+
completionHandler:(FBRequestHandler)handler;
|
|
365
|
+
|
|
366
|
+
/*!
|
|
367
|
+
@method
|
|
368
|
+
|
|
369
|
+
@abstract
|
|
370
|
+
Creates an `FBRequest` object for a Graph API call, instantiate an
|
|
371
|
+
<FBRequestConnection> object, add the request to the newly created
|
|
372
|
+
connection and finally start the connection. Use this method for
|
|
373
|
+
specifying the request parameters and HTTP Method. The request uses
|
|
374
|
+
the active session represented by `[FBSession activeSession]`.
|
|
375
|
+
|
|
376
|
+
@param graphPath The Graph API endpoint to use for the request, for example "me".
|
|
377
|
+
|
|
378
|
+
@param parameters The parameters for the request. A value of nil sends only the automatically handled parameters, for example, the access token. The default is nil.
|
|
379
|
+
|
|
380
|
+
@param HTTPMethod The HTTP method to use for the request. A nil value implies a GET.
|
|
381
|
+
|
|
382
|
+
@param handler The handler block to call when the request completes with a success, error, or cancel action.
|
|
383
|
+
*/
|
|
384
|
+
+ (FBRequestConnection*)startWithGraphPath:(NSString*)graphPath
|
|
385
|
+
parameters:(NSDictionary*)parameters
|
|
386
|
+
HTTPMethod:(NSString*)HTTPMethod
|
|
387
|
+
completionHandler:(FBRequestHandler)handler;
|
|
388
|
+
|
|
389
|
+
@end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2007-2009 Stig Brautaset. All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
8
|
+
list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
* Neither the name of the author nor the names of its contributors may be used
|
|
15
|
+
to endorse or promote products derived from this software without specific
|
|
16
|
+
prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
22
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
23
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
24
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
25
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
26
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
#import <Foundation/Foundation.h>
|
|
31
|
+
#import "FBSBJsonParser.h"
|
|
32
|
+
#import "FBSBJsonWriter.h"
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
@brief Facade for SBJsonWriter/SBJsonParser.
|
|
36
|
+
|
|
37
|
+
Requests are forwarded to instances of SBJsonWriter and SBJsonParser.
|
|
38
|
+
*/
|
|
39
|
+
@interface FBSBJSON : FBSBJsonBase <FBSBJsonParser, FBSBJsonWriter> {
|
|
40
|
+
|
|
41
|
+
@private
|
|
42
|
+
FBSBJsonParser *jsonParser;
|
|
43
|
+
FBSBJsonWriter *jsonWriter;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/// Return the fragment represented by the given string
|
|
48
|
+
- (id)fragmentWithString:(NSString*)jsonrep
|
|
49
|
+
error:(NSError**)error;
|
|
50
|
+
|
|
51
|
+
/// Return the object represented by the given string
|
|
52
|
+
- (id)objectWithString:(NSString*)jsonrep
|
|
53
|
+
error:(NSError**)error;
|
|
54
|
+
|
|
55
|
+
/// Parse the string and return the represented object (or scalar)
|
|
56
|
+
- (id)objectWithString:(id)value
|
|
57
|
+
allowScalar:(BOOL)x
|
|
58
|
+
error:(NSError**)error;
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/// Return JSON representation of an array or dictionary
|
|
62
|
+
- (NSString*)stringWithObject:(id)value
|
|
63
|
+
error:(NSError**)error;
|
|
64
|
+
|
|
65
|
+
/// Return JSON representation of any legal JSON value
|
|
66
|
+
- (NSString*)stringWithFragment:(id)value
|
|
67
|
+
error:(NSError**)error;
|
|
68
|
+
|
|
69
|
+
/// Return JSON representation (or fragment) for the given object
|
|
70
|
+
- (NSString*)stringWithObject:(id)value
|
|
71
|
+
allowScalar:(BOOL)x
|
|
72
|
+
error:(NSError**)error;
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2009 Stig Brautaset. All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
8
|
+
list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
* Neither the name of the author nor the names of its contributors may be used
|
|
15
|
+
to endorse or promote products derived from this software without specific
|
|
16
|
+
prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
22
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
23
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
24
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
25
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
26
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
#import <Foundation/Foundation.h>
|
|
31
|
+
|
|
32
|
+
extern NSString * FBSBJSONErrorDomain;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
enum {
|
|
36
|
+
EUNSUPPORTED = 1,
|
|
37
|
+
EPARSENUM,
|
|
38
|
+
EPARSE,
|
|
39
|
+
EFRAGMENT,
|
|
40
|
+
ECTRL,
|
|
41
|
+
EUNICODE,
|
|
42
|
+
EDEPTH,
|
|
43
|
+
EESCAPE,
|
|
44
|
+
ETRAILCOMMA,
|
|
45
|
+
ETRAILGARBAGE,
|
|
46
|
+
EEOF,
|
|
47
|
+
EINPUT
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
@brief Common base class for parsing & writing.
|
|
52
|
+
|
|
53
|
+
This class contains the common error-handling code and option between the parser/writer.
|
|
54
|
+
*/
|
|
55
|
+
@interface FBSBJsonBase : NSObject {
|
|
56
|
+
NSMutableArray *errorTrace;
|
|
57
|
+
|
|
58
|
+
@protected
|
|
59
|
+
NSUInteger depth, maxDepth;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
@brief The maximum recursing depth.
|
|
64
|
+
|
|
65
|
+
Defaults to 512. If the input is nested deeper than this the input will be deemed to be
|
|
66
|
+
malicious and the parser returns nil, signalling an error. ("Nested too deep".) You can
|
|
67
|
+
turn off this security feature by setting the maxDepth value to 0.
|
|
68
|
+
*/
|
|
69
|
+
@property NSUInteger maxDepth;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
@brief Return an error trace, or nil if there was no errors.
|
|
73
|
+
|
|
74
|
+
Note that this method returns the trace of the last method that failed.
|
|
75
|
+
You need to check the return value of the call you're making to figure out
|
|
76
|
+
if the call actually failed, before you know call this method.
|
|
77
|
+
*/
|
|
78
|
+
@property(copy,readonly) NSArray* errorTrace;
|
|
79
|
+
|
|
80
|
+
/// @internal for use in subclasses to add errors to the stack trace
|
|
81
|
+
- (void)addErrorWithCode:(NSUInteger)code description:(NSString*)str;
|
|
82
|
+
|
|
83
|
+
/// @internal for use in subclasess to clear the error before a new parsing attempt
|
|
84
|
+
- (void)clearErrorTrace;
|
|
85
|
+
|
|
86
|
+
@end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2009 Stig Brautaset. All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
8
|
+
list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
* Neither the name of the author nor the names of its contributors may be used
|
|
15
|
+
to endorse or promote products derived from this software without specific
|
|
16
|
+
prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
22
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
23
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
24
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
25
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
26
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
#import <Foundation/Foundation.h>
|
|
31
|
+
#import "FBSBJsonBase.h"
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
@brief Options for the parser class.
|
|
35
|
+
|
|
36
|
+
This exists so the SBJSON facade can implement the options in the parser without having to re-declare them.
|
|
37
|
+
*/
|
|
38
|
+
@protocol FBSBJsonParser
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
@brief Return the object represented by the given string.
|
|
42
|
+
|
|
43
|
+
Returns the object represented by the passed-in string or nil on error. The returned object can be
|
|
44
|
+
a string, number, boolean, null, array or dictionary.
|
|
45
|
+
|
|
46
|
+
@param repr the json string to parse
|
|
47
|
+
*/
|
|
48
|
+
- (id)objectWithString:(NSString *)repr;
|
|
49
|
+
|
|
50
|
+
@end
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
@brief The JSON parser class.
|
|
55
|
+
|
|
56
|
+
JSON is mapped to Objective-C types in the following way:
|
|
57
|
+
|
|
58
|
+
@li Null -> NSNull
|
|
59
|
+
@li String -> NSMutableString
|
|
60
|
+
@li Array -> NSMutableArray
|
|
61
|
+
@li Object -> NSMutableDictionary
|
|
62
|
+
@li Boolean -> NSNumber (initialised with -initWithBool:)
|
|
63
|
+
@li Number -> NSDecimalNumber
|
|
64
|
+
|
|
65
|
+
Since Objective-C doesn't have a dedicated class for boolean values, these turns into NSNumber
|
|
66
|
+
instances. These are initialised with the -initWithBool: method, and
|
|
67
|
+
round-trip back to JSON properly. (They won't silently suddenly become 0 or 1; they'll be
|
|
68
|
+
represented as 'true' and 'false' again.)
|
|
69
|
+
|
|
70
|
+
JSON numbers turn into NSDecimalNumber instances,
|
|
71
|
+
as we can thus avoid any loss of precision. (JSON allows ridiculously large numbers.)
|
|
72
|
+
|
|
73
|
+
*/
|
|
74
|
+
@interface FBSBJsonParser : FBSBJsonBase <FBSBJsonParser> {
|
|
75
|
+
|
|
76
|
+
@private
|
|
77
|
+
const char *c;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@end
|
|
81
|
+
|
|
82
|
+
// don't use - exists for backwards compatibility with 2.1.x only. Will be removed in 2.3.
|
|
83
|
+
@interface FBSBJsonParser (Private)
|
|
84
|
+
- (id)fragmentWithString:(id)repr;
|
|
85
|
+
@end
|
|
86
|
+
|
|
87
|
+
|