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,170 @@
|
|
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 <UIKit/UIKit.h>
|
18
|
+
#import <CoreLocation/CoreLocation.h>
|
19
|
+
|
20
|
+
@class FBSession;
|
21
|
+
|
22
|
+
/*!
|
23
|
+
@typedef FBNativeDialogResult enum
|
24
|
+
|
25
|
+
@abstract
|
26
|
+
Passed to a handler to indicate the result of a dialog being displayed to the user.
|
27
|
+
*/
|
28
|
+
typedef enum {
|
29
|
+
/*! Indicates that the dialog action completed successfully. */
|
30
|
+
FBNativeDialogResultSucceeded,
|
31
|
+
/*! Indicates that the dialog action was cancelled (either by the user or the system). */
|
32
|
+
FBNativeDialogResultCancelled,
|
33
|
+
/*! Indicates that the dialog could not be shown (because not on ios6 or ios6 auth was not used). */
|
34
|
+
FBNativeDialogResultError
|
35
|
+
} FBNativeDialogResult;
|
36
|
+
|
37
|
+
/*!
|
38
|
+
@typedef
|
39
|
+
|
40
|
+
@abstract Defines a handler that will be called in response to the native share dialog
|
41
|
+
being displayed.
|
42
|
+
*/
|
43
|
+
typedef void (^FBShareDialogHandler)(FBNativeDialogResult result, NSError *error);
|
44
|
+
|
45
|
+
/*!
|
46
|
+
@class FBNativeDialogs
|
47
|
+
|
48
|
+
@abstract
|
49
|
+
Provides methods to display native (i.e., non-Web-based) dialogs to the user.
|
50
|
+
Currently the iOS 6 sharing dialog is supported.
|
51
|
+
*/
|
52
|
+
@interface FBNativeDialogs : NSObject
|
53
|
+
|
54
|
+
/*!
|
55
|
+
@abstract
|
56
|
+
Presents a dialog that allows the user to share a status update that may include
|
57
|
+
text, images, or URLs. This dialog is only available on iOS 6.0 and above. The
|
58
|
+
current active session returned by [FBSession activeSession] will be used to determine
|
59
|
+
whether the dialog will be displayed. If a session is active, it must be open and the
|
60
|
+
login method used to authenticate the user must be native iOS 6.0 authentication.
|
61
|
+
If no session active, then whether the call succeeds or not will depend on
|
62
|
+
whether Facebook integration has been configured.
|
63
|
+
|
64
|
+
@param viewController The view controller which will present the dialog.
|
65
|
+
|
66
|
+
@param initialText The text which will initially be populated in the dialog. The user
|
67
|
+
will have the opportunity to edit this text before posting it. May be nil.
|
68
|
+
|
69
|
+
@param image A UIImage that will be attached to the status update. May be nil.
|
70
|
+
|
71
|
+
@param url An NSURL that will be attached to the status update. May be nil.
|
72
|
+
|
73
|
+
@param handler A handler that will be called when the dialog is dismissed, or if an error
|
74
|
+
occurs. May be nil.
|
75
|
+
|
76
|
+
@return YES if the dialog was presented, NO if not (in the case of a NO result, the handler
|
77
|
+
will still be called, with an error indicating the reason the dialog was not displayed)
|
78
|
+
*/
|
79
|
+
+ (BOOL)presentShareDialogModallyFrom:(UIViewController*)viewController
|
80
|
+
initialText:(NSString*)initialText
|
81
|
+
image:(UIImage*)image
|
82
|
+
url:(NSURL*)url
|
83
|
+
handler:(FBShareDialogHandler)handler;
|
84
|
+
|
85
|
+
/*!
|
86
|
+
@abstract
|
87
|
+
Presents a dialog that allows the user to share a status update that may include
|
88
|
+
text, images, or URLs. This dialog is only available on iOS 6.0 and above. The
|
89
|
+
current active session returned by [FBSession activeSession] will be used to determine
|
90
|
+
whether the dialog will be displayed. If a session is active, it must be open and the
|
91
|
+
login method used to authenticate the user must be native iOS 6.0 authentication.
|
92
|
+
If no session active, then whether the call succeeds or not will depend on
|
93
|
+
whether Facebook integration has been configured.
|
94
|
+
|
95
|
+
@param viewController The view controller which will present the dialog.
|
96
|
+
|
97
|
+
@param initialText The text which will initially be populated in the dialog. The user
|
98
|
+
will have the opportunity to edit this text before posting it. May be nil.
|
99
|
+
|
100
|
+
@param images An array of UIImages that will be attached to the status update. May
|
101
|
+
be nil.
|
102
|
+
|
103
|
+
@param urls An array of NSURLs that will be attached to the status update. May be nil.
|
104
|
+
|
105
|
+
@param handler A handler that will be called when the dialog is dismissed, or if an error
|
106
|
+
occurs. May be nil.
|
107
|
+
|
108
|
+
@return YES if the dialog was presented, NO if not (in the case of a NO result, the handler
|
109
|
+
will still be called, with an error indicating the reason the dialog was not displayed)
|
110
|
+
*/
|
111
|
+
+ (BOOL)presentShareDialogModallyFrom:(UIViewController*)viewController
|
112
|
+
initialText:(NSString*)initialText
|
113
|
+
images:(NSArray*)images
|
114
|
+
urls:(NSArray*)urls
|
115
|
+
handler:(FBShareDialogHandler)handler;
|
116
|
+
|
117
|
+
/*!
|
118
|
+
@abstract
|
119
|
+
Presents a dialog that allows the user to share a status update that may include
|
120
|
+
text, images, or URLs. This dialog is only available on iOS 6.0 and above. An
|
121
|
+
<FBSession> may be specified, or nil may be passed to indicate that the current
|
122
|
+
active session should be used. If a session is specified (whether explicitly or by
|
123
|
+
virtue of being the active session), it must be open and the login method used to
|
124
|
+
authenticate the user must be native iOS 6.0 authentication. If no session is specified
|
125
|
+
(and there is no active session), then whether the call succeeds or not will depend on
|
126
|
+
whether Facebook integration has been configured.
|
127
|
+
|
128
|
+
@param viewController The view controller which will present the dialog.
|
129
|
+
|
130
|
+
@param session The <FBSession> to use to determine whether or not the user has been
|
131
|
+
authenticated with iOS native authentication. If nil, then [FBSession activeSession]
|
132
|
+
will be checked. See discussion above for the implications of nil or non-nil session.
|
133
|
+
|
134
|
+
@param initialText The text which will initially be populated in the dialog. The user
|
135
|
+
will have the opportunity to edit this text before posting it. May be nil.
|
136
|
+
|
137
|
+
@param images An array of UIImages that will be attached to the status update. May
|
138
|
+
be nil.
|
139
|
+
|
140
|
+
@param urls An array of NSURLs that will be attached to the status update. May be nil.
|
141
|
+
|
142
|
+
@param handler A handler that will be called when the dialog is dismissed, or if an error
|
143
|
+
occurs. May be nil.
|
144
|
+
|
145
|
+
@return YES if the dialog was presented, NO if not (in the case of a NO result, the handler
|
146
|
+
will still be called, with an error indicating the reason the dialog was not displayed)
|
147
|
+
*/
|
148
|
+
+ (BOOL)presentShareDialogModallyFrom:(UIViewController*)viewController
|
149
|
+
session:(FBSession*)session
|
150
|
+
initialText:(NSString*)initialText
|
151
|
+
images:(NSArray*)images
|
152
|
+
urls:(NSArray*)urls
|
153
|
+
handler:(FBShareDialogHandler)handler;
|
154
|
+
|
155
|
+
/*!
|
156
|
+
@abstract
|
157
|
+
Determines whether a call to presentShareDialogModallyFrom: will successfully present
|
158
|
+
a dialog. This is useful for applications that need to modify the available UI controls
|
159
|
+
depending on whether the dialog is available on the current platform and for the current
|
160
|
+
user.
|
161
|
+
|
162
|
+
@param session The <FBSession> to use to determine whether or not the user has been
|
163
|
+
authenticated with iOS native authentication. If nil, then [FBSession activeSession]
|
164
|
+
will be checked. See discussion above for the implications of nil or non-nil session.
|
165
|
+
|
166
|
+
@return YES if the dialog would be presented for the session, and NO if not
|
167
|
+
*/
|
168
|
+
+ (BOOL)canPresentShareDialogWithSession:(FBSession*)session;
|
169
|
+
|
170
|
+
@end
|
@@ -0,0 +1,127 @@
|
|
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/xlicenses/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 "FBGraphObject.h"
|
19
|
+
|
20
|
+
@protocol FBGraphPlace;
|
21
|
+
@protocol FBGraphUser;
|
22
|
+
|
23
|
+
/*!
|
24
|
+
@protocol
|
25
|
+
|
26
|
+
@abstract
|
27
|
+
The `FBOpenGraphAction` protocol is the base protocol for use in posting and retrieving Open Graph actions.
|
28
|
+
It inherits from the `FBGraphObject` protocol; you may derive custome protocols from `FBOpenGraphAction` in order
|
29
|
+
implement typed access to your application's custom actions.
|
30
|
+
|
31
|
+
@discussion
|
32
|
+
Represents an Open Graph custom action, to be used directly, or from which to
|
33
|
+
derive custom action protocols with custom properties.
|
34
|
+
*/
|
35
|
+
@protocol FBOpenGraphAction<FBGraphObject>
|
36
|
+
|
37
|
+
/*!
|
38
|
+
@property
|
39
|
+
@abstract Typed access to action's id
|
40
|
+
*/
|
41
|
+
@property (retain, nonatomic) NSString *id;
|
42
|
+
|
43
|
+
/*!
|
44
|
+
@property
|
45
|
+
@abstract Typed access to action's start time
|
46
|
+
*/
|
47
|
+
@property (retain, nonatomic) NSString *start_time;
|
48
|
+
|
49
|
+
/*!
|
50
|
+
@property
|
51
|
+
@abstract Typed access to action's end time
|
52
|
+
*/
|
53
|
+
@property (retain, nonatomic) NSString *end_time;
|
54
|
+
|
55
|
+
/*!
|
56
|
+
@property
|
57
|
+
@abstract Typed access to action's publication time
|
58
|
+
*/
|
59
|
+
@property (retain, nonatomic) NSString *publish_time;
|
60
|
+
|
61
|
+
/*!
|
62
|
+
@property
|
63
|
+
@abstract Typed access to action's creation time
|
64
|
+
*/
|
65
|
+
@property (retain, nonatomic) NSString *created_time;
|
66
|
+
|
67
|
+
/*!
|
68
|
+
@property
|
69
|
+
@abstract Typed access to action's expiration time
|
70
|
+
*/
|
71
|
+
@property (retain, nonatomic) NSString *expires_time;
|
72
|
+
|
73
|
+
/*!
|
74
|
+
@property
|
75
|
+
@abstract Typed access to action's ref
|
76
|
+
*/
|
77
|
+
@property (retain, nonatomic) NSString *ref;
|
78
|
+
|
79
|
+
/*!
|
80
|
+
@property
|
81
|
+
@abstract Typed access to action's user message
|
82
|
+
*/
|
83
|
+
@property (retain, nonatomic) NSString *message;
|
84
|
+
|
85
|
+
/*!
|
86
|
+
@property
|
87
|
+
@abstract Typed access to action's place
|
88
|
+
*/
|
89
|
+
@property (retain, nonatomic) id<FBGraphPlace> place;
|
90
|
+
|
91
|
+
/*!
|
92
|
+
@property
|
93
|
+
@abstract Typed access to action's tags
|
94
|
+
*/
|
95
|
+
@property (retain, nonatomic) NSArray *tags;
|
96
|
+
|
97
|
+
/*!
|
98
|
+
@property
|
99
|
+
@abstract Typed access to action's images
|
100
|
+
*/
|
101
|
+
@property (retain, nonatomic) NSArray *image;
|
102
|
+
|
103
|
+
/*!
|
104
|
+
@property
|
105
|
+
@abstract Typed access to action's from-user
|
106
|
+
*/
|
107
|
+
@property (retain, nonatomic) id<FBGraphUser> from;
|
108
|
+
|
109
|
+
/*!
|
110
|
+
@property
|
111
|
+
@abstract Typed access to action's likes
|
112
|
+
*/
|
113
|
+
@property (retain, nonatomic) NSArray *likes;
|
114
|
+
|
115
|
+
/*!
|
116
|
+
@property
|
117
|
+
@abstract Typed access to action's application
|
118
|
+
*/
|
119
|
+
@property (retain, nonatomic) id<FBGraphObject> application;
|
120
|
+
|
121
|
+
/*!
|
122
|
+
@property
|
123
|
+
@abstract Typed access to action's comments
|
124
|
+
*/
|
125
|
+
@property (retain, nonatomic) NSArray *comments;
|
126
|
+
|
127
|
+
@end
|
@@ -0,0 +1,257 @@
|
|
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 <UIKit/UIKit.h>
|
18
|
+
#import <CoreLocation/CoreLocation.h>
|
19
|
+
#import "FBGraphPlace.h"
|
20
|
+
#import "FBSession.h"
|
21
|
+
#import "FBCacheDescriptor.h"
|
22
|
+
#import "FBViewController.h"
|
23
|
+
|
24
|
+
@protocol FBPlacePickerDelegate;
|
25
|
+
|
26
|
+
/*!
|
27
|
+
@class FBPlacePickerViewController
|
28
|
+
|
29
|
+
@abstract
|
30
|
+
The `FBPlacePickerViewController` class creates a controller object that manages
|
31
|
+
the user interface for displaying and selecting nearby places.
|
32
|
+
|
33
|
+
@discussion
|
34
|
+
When the `FBPlacePickerViewController` view loads it creates a `UITableView` object
|
35
|
+
where the places near a given location will be displayed. You can access this view
|
36
|
+
through the `tableView` property.
|
37
|
+
|
38
|
+
The place data can be pre-fetched and cached prior to using the view controller. The
|
39
|
+
cache is setup using an <FBCacheDescriptor> object that can trigger the
|
40
|
+
data fetch. Any place data requests will first check the cache and use that data.
|
41
|
+
If the place picker is being displayed cached data will initially be shown before
|
42
|
+
a fresh copy is retrieved.
|
43
|
+
|
44
|
+
The `delegate` property may be set to an object that conforms to the <FBPlacePickerDelegate>
|
45
|
+
protocol. The `delegate` object will receive updates related to place selection and
|
46
|
+
data changes. The delegate can also be used to filter the places to display in the
|
47
|
+
picker.
|
48
|
+
*/
|
49
|
+
@interface FBPlacePickerViewController : FBViewController
|
50
|
+
|
51
|
+
/*!
|
52
|
+
@abstract
|
53
|
+
Returns an outlet for the spinner used in the view controller.
|
54
|
+
*/
|
55
|
+
@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *spinner;
|
56
|
+
|
57
|
+
/*!
|
58
|
+
@abstract
|
59
|
+
Returns an outlet for the table view managed by the view controller.
|
60
|
+
*/
|
61
|
+
@property (nonatomic, retain) IBOutlet UITableView *tableView;
|
62
|
+
|
63
|
+
/*!
|
64
|
+
@abstract
|
65
|
+
Addtional fields to fetch when making the Graph API call to get place data.
|
66
|
+
*/
|
67
|
+
@property (nonatomic, copy) NSSet *fieldsForRequest;
|
68
|
+
|
69
|
+
/*!
|
70
|
+
@abstract
|
71
|
+
A Boolean value that indicates whether place profile pictures are displayed.
|
72
|
+
*/
|
73
|
+
@property (nonatomic) BOOL itemPicturesEnabled;
|
74
|
+
|
75
|
+
/*!
|
76
|
+
@abstract
|
77
|
+
The coordinates to use for place discovery.
|
78
|
+
*/
|
79
|
+
@property (nonatomic) CLLocationCoordinate2D locationCoordinate;
|
80
|
+
|
81
|
+
/*!
|
82
|
+
@abstract
|
83
|
+
The radius to use for place discovery.
|
84
|
+
*/
|
85
|
+
@property (nonatomic) NSInteger radiusInMeters;
|
86
|
+
|
87
|
+
/*!
|
88
|
+
@abstract
|
89
|
+
The maximum number of places to fetch.
|
90
|
+
*/
|
91
|
+
@property (nonatomic) NSInteger resultsLimit;
|
92
|
+
|
93
|
+
/*!
|
94
|
+
@abstract
|
95
|
+
The search words used to narrow down the results returned.
|
96
|
+
*/
|
97
|
+
@property (nonatomic, copy) NSString *searchText;
|
98
|
+
|
99
|
+
/*!
|
100
|
+
@abstract
|
101
|
+
The session that is used in the request for place data.
|
102
|
+
*/
|
103
|
+
@property (nonatomic, retain) FBSession *session;
|
104
|
+
|
105
|
+
/*!
|
106
|
+
@abstract
|
107
|
+
The place that is currently selected in the view. This is nil
|
108
|
+
if nothing is selected.
|
109
|
+
*/
|
110
|
+
@property (nonatomic, retain, readonly) id<FBGraphPlace> selection;
|
111
|
+
|
112
|
+
/*!
|
113
|
+
@abstract
|
114
|
+
Clears the current selection, so the picker is ready for a fresh use.
|
115
|
+
*/
|
116
|
+
- (void)clearSelection;
|
117
|
+
|
118
|
+
/*!
|
119
|
+
@abstract
|
120
|
+
Initializes a place picker view controller.
|
121
|
+
*/
|
122
|
+
- (id)init;
|
123
|
+
|
124
|
+
/*!
|
125
|
+
@abstract
|
126
|
+
Initializes a place picker view controller.
|
127
|
+
|
128
|
+
@param aDecoder An unarchiver object.
|
129
|
+
*/
|
130
|
+
- (id)initWithCoder:(NSCoder *)aDecoder;
|
131
|
+
|
132
|
+
/*!
|
133
|
+
@abstract
|
134
|
+
Initializes a place picker view controller.
|
135
|
+
|
136
|
+
@param nibNameOrNil The name of the nib file to associate with the view controller. The nib file name should not contain any leading path information. If you specify nil, the nibName property is set to nil.
|
137
|
+
@param nibBundleOrNil The bundle in which to search for the nib file. This method looks for the nib file in the bundle's language-specific project directories first, followed by the Resources directory. If nil, this method looks for the nib file in the main bundle.
|
138
|
+
*/
|
139
|
+
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil;
|
140
|
+
|
141
|
+
/*!
|
142
|
+
@abstract
|
143
|
+
Configures the properties used in the caching data queries.
|
144
|
+
|
145
|
+
@discussion
|
146
|
+
Cache descriptors are used to fetch and cache the data used by the view controller.
|
147
|
+
If the view controller finds a cached copy of the data, it will
|
148
|
+
first display the cached content then fetch a fresh copy from the server.
|
149
|
+
|
150
|
+
@param cacheDescriptor The <FBCacheDescriptor> containing the cache query properties.
|
151
|
+
*/
|
152
|
+
- (void)configureUsingCachedDescriptor:(FBCacheDescriptor*)cacheDescriptor;
|
153
|
+
|
154
|
+
/*!
|
155
|
+
@abstract
|
156
|
+
Initiates a query to get place data the first time or in response to changes in
|
157
|
+
the search criteria, filter, or location information.
|
158
|
+
|
159
|
+
|
160
|
+
@discussion
|
161
|
+
A cached copy will be returned if available. The cached view is temporary until a fresh copy is
|
162
|
+
retrieved from the server. It is legal to call this more than once.
|
163
|
+
*/
|
164
|
+
- (void)loadData;
|
165
|
+
|
166
|
+
/*!
|
167
|
+
@abstract
|
168
|
+
Updates the view locally without fetching data from the server or from cache.
|
169
|
+
|
170
|
+
@discussion
|
171
|
+
Use this if the filter properties change. This may affect the order or
|
172
|
+
display of information.
|
173
|
+
*/
|
174
|
+
- (void)updateView;
|
175
|
+
|
176
|
+
/*!
|
177
|
+
@method
|
178
|
+
|
179
|
+
@abstract
|
180
|
+
Creates a cache descriptor with additional fields and a profile ID for use with the
|
181
|
+
`FBPlacePickerViewController` object.
|
182
|
+
|
183
|
+
@discussion
|
184
|
+
An `FBCacheDescriptor` object may be used to pre-fetch data before it is used by
|
185
|
+
the view controller. It may also be used to configure the `FBPlacePickerViewController`
|
186
|
+
object.
|
187
|
+
|
188
|
+
@param locationCoordinate The coordinates to use for place discovery.
|
189
|
+
@param radiusInMeters The radius to use for place discovery.
|
190
|
+
@param searchText The search words used to narrow down the results returned.
|
191
|
+
@param resultsLimit The maximum number of places to fetch.
|
192
|
+
@param fieldsForRequest Addtional fields to fetch when making the Graph API call to get place data.
|
193
|
+
*/
|
194
|
+
+ (FBCacheDescriptor*)cacheDescriptorWithLocationCoordinate:(CLLocationCoordinate2D)locationCoordinate
|
195
|
+
radiusInMeters:(NSInteger)radiusInMeters
|
196
|
+
searchText:(NSString*)searchText
|
197
|
+
resultsLimit:(NSInteger)resultsLimit
|
198
|
+
fieldsForRequest:(NSSet*)fieldsForRequest;
|
199
|
+
|
200
|
+
@end
|
201
|
+
|
202
|
+
/*!
|
203
|
+
@protocol
|
204
|
+
|
205
|
+
@abstract
|
206
|
+
The `FBPlacePickerDelegate` protocol defines the methods used to receive event
|
207
|
+
notifications and allow for deeper control of the <FBPlacePickerViewController>
|
208
|
+
view.
|
209
|
+
*/
|
210
|
+
@protocol FBPlacePickerDelegate <FBViewControllerDelegate>
|
211
|
+
@optional
|
212
|
+
|
213
|
+
/*!
|
214
|
+
@abstract
|
215
|
+
Tells the delegate that data has been loaded.
|
216
|
+
|
217
|
+
@discussion
|
218
|
+
The <FBPlacePickerViewController> object's `tableView` property is automatically
|
219
|
+
reloaded when this happens. However, if another table view, for example the
|
220
|
+
`UISearchBar` is showing data, then it may also need to be reloaded.
|
221
|
+
|
222
|
+
@param placePicker The place picker view controller whose data changed.
|
223
|
+
*/
|
224
|
+
- (void)placePickerViewControllerDataDidChange:(FBPlacePickerViewController *)placePicker;
|
225
|
+
|
226
|
+
/*!
|
227
|
+
@abstract
|
228
|
+
Tells the delegate that the selection has changed.
|
229
|
+
|
230
|
+
@param placePicker The place picker view controller whose selection changed.
|
231
|
+
*/
|
232
|
+
- (void)placePickerViewControllerSelectionDidChange:(FBPlacePickerViewController *)placePicker;
|
233
|
+
|
234
|
+
/*!
|
235
|
+
@abstract
|
236
|
+
Asks the delegate whether to include a place in the list.
|
237
|
+
|
238
|
+
@discussion
|
239
|
+
This can be used to implement a search bar that filters the places list.
|
240
|
+
|
241
|
+
@param placePicker The place picker view controller that is requesting this information.
|
242
|
+
@param place An <FBGraphPlace> object representing the place.
|
243
|
+
*/
|
244
|
+
- (BOOL)placePickerViewController:(FBPlacePickerViewController *)placePicker
|
245
|
+
shouldIncludePlace:(id <FBGraphPlace>)place;
|
246
|
+
|
247
|
+
/*!
|
248
|
+
@abstract
|
249
|
+
Called if there is a communication error.
|
250
|
+
|
251
|
+
@param placePicker The place picker view controller that encountered the error.
|
252
|
+
@param error An error object containing details of the error.
|
253
|
+
*/
|
254
|
+
- (void)placePickerViewController:(FBPlacePickerViewController *)placePicker
|
255
|
+
handleError:(NSError *)error;
|
256
|
+
|
257
|
+
@end
|
@@ -0,0 +1,80 @@
|
|
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
|
+
/*!
|
20
|
+
@typedef FBProfilePictureCropping enum
|
21
|
+
|
22
|
+
@abstract
|
23
|
+
Type used to specify the cropping treatment of the profile picture.
|
24
|
+
|
25
|
+
@discussion
|
26
|
+
*/
|
27
|
+
typedef enum {
|
28
|
+
|
29
|
+
/*! Square (default) - the square version that the Facebook user defined. */
|
30
|
+
FBProfilePictureCroppingSquare = 0,
|
31
|
+
|
32
|
+
/*! Original - the original profile picture, as uploaded. */
|
33
|
+
FBProfilePictureCroppingOriginal = 1
|
34
|
+
|
35
|
+
} FBProfilePictureCropping;
|
36
|
+
|
37
|
+
/*!
|
38
|
+
@class
|
39
|
+
@abstract
|
40
|
+
An instance of `FBProfilePictureView` is used to display a profile picture.
|
41
|
+
|
42
|
+
The default behavior of this control is to center the profile picture
|
43
|
+
in the view and shrinks it, if necessary, to the view's bounds, preserving the aspect ratio. The smallest
|
44
|
+
possible image is downloaded to ensure that scaling up never happens. Resizing the view may result in
|
45
|
+
a different size of the image being loaded. Canonical image sizes are documented in the "Pictures" section
|
46
|
+
of https://developers.facebook.com/docs/reference/api.
|
47
|
+
*/
|
48
|
+
@interface FBProfilePictureView : UIView
|
49
|
+
|
50
|
+
/*!
|
51
|
+
@abstract
|
52
|
+
The Facebook ID of the user, place or object for which a picture should be fetched and displayed.
|
53
|
+
*/
|
54
|
+
@property (copy, nonatomic) NSString* profileID;
|
55
|
+
|
56
|
+
/*!
|
57
|
+
@abstract
|
58
|
+
The cropping to use for the profile picture.
|
59
|
+
*/
|
60
|
+
@property (nonatomic) FBProfilePictureCropping pictureCropping;
|
61
|
+
|
62
|
+
/*!
|
63
|
+
@abstract
|
64
|
+
Initializes and returns a profile view object.
|
65
|
+
*/
|
66
|
+
- (id)init;
|
67
|
+
|
68
|
+
|
69
|
+
/*!
|
70
|
+
@abstract
|
71
|
+
Initializes and returns a profile view object for the given Facebook ID and cropping.
|
72
|
+
|
73
|
+
@param profileID The Facebook ID of the user, place or object for which a picture should be fetched and displayed.
|
74
|
+
@param pictureCropping The cropping to use for the profile picture.
|
75
|
+
*/
|
76
|
+
- (id)initWithProfileID:(NSString*)profileID
|
77
|
+
pictureCropping:(FBProfilePictureCropping)pictureCropping;
|
78
|
+
|
79
|
+
|
80
|
+
@end
|