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,90 @@
|
|
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 "FBGraphPlace.h"
|
19
|
+
#import "FBGraphObject.h"
|
20
|
+
|
21
|
+
/*!
|
22
|
+
@protocol
|
23
|
+
|
24
|
+
@abstract
|
25
|
+
The `FBGraphUser` protocol enables typed access to a user object
|
26
|
+
as represented in the Graph API.
|
27
|
+
|
28
|
+
|
29
|
+
@discussion
|
30
|
+
The `FBGraphUser` protocol represents the most commonly used properties of a
|
31
|
+
Facebook user object. It may be used to access an `NSDictionary` object that has
|
32
|
+
been wrapped with an <FBGraphObject> facade.
|
33
|
+
*/
|
34
|
+
@protocol FBGraphUser<FBGraphObject>
|
35
|
+
|
36
|
+
/*!
|
37
|
+
@property
|
38
|
+
@abstract Typed access to the user's ID.
|
39
|
+
*/
|
40
|
+
@property (retain, nonatomic) NSString *id;
|
41
|
+
|
42
|
+
/*!
|
43
|
+
@property
|
44
|
+
@abstract Typed access to the user's name.
|
45
|
+
*/
|
46
|
+
@property (retain, nonatomic) NSString *name;
|
47
|
+
|
48
|
+
/*!
|
49
|
+
@property
|
50
|
+
@abstract Typed access to the user's first name.
|
51
|
+
*/
|
52
|
+
@property (retain, nonatomic) NSString *first_name;
|
53
|
+
|
54
|
+
/*!
|
55
|
+
@property
|
56
|
+
@abstract Typed access to the user's middle name.
|
57
|
+
*/
|
58
|
+
@property (retain, nonatomic) NSString *middle_name;
|
59
|
+
|
60
|
+
/*!
|
61
|
+
@property
|
62
|
+
@abstract Typed access to the user's last name.
|
63
|
+
*/
|
64
|
+
@property (retain, nonatomic) NSString *last_name;
|
65
|
+
|
66
|
+
/*!
|
67
|
+
@property
|
68
|
+
@abstract Typed access to the user's profile URL.
|
69
|
+
*/
|
70
|
+
@property (retain, nonatomic) NSString *link;
|
71
|
+
|
72
|
+
/*!
|
73
|
+
@property
|
74
|
+
@abstract Typed access to the user's username.
|
75
|
+
*/
|
76
|
+
@property (retain, nonatomic) NSString *username;
|
77
|
+
|
78
|
+
/*!
|
79
|
+
@property
|
80
|
+
@abstract Typed access to the user's birthday.
|
81
|
+
*/
|
82
|
+
@property (retain, nonatomic) NSString *birthday;
|
83
|
+
|
84
|
+
/*!
|
85
|
+
@property
|
86
|
+
@abstract Typed access to the user's current city.
|
87
|
+
*/
|
88
|
+
@property (retain, nonatomic) id<FBGraphPlace> location;
|
89
|
+
|
90
|
+
@end
|
@@ -0,0 +1,271 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2012 Facebook
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
#import <Foundation/Foundation.h>
|
18
|
+
#import "FBSession.h"
|
19
|
+
|
20
|
+
/*!
|
21
|
+
@typedef FBInsightsFlushBehavior enum
|
22
|
+
|
23
|
+
@abstract
|
24
|
+
Control when <FBInsights> sends log events to the server
|
25
|
+
|
26
|
+
@discussion
|
27
|
+
If an instance of an app doesn't send during its lifetime, or can't establish connectivity, the
|
28
|
+
events will be stashed for the next run and sent then.
|
29
|
+
*/
|
30
|
+
typedef enum {
|
31
|
+
|
32
|
+
/*! Flush automatically: periodically and always at app reactivation. */
|
33
|
+
FBInsightsFlushBehaviorAuto,
|
34
|
+
|
35
|
+
/*! Only flush when explicitFlush is called. When an app is moved to background/terminated, the
|
36
|
+
events are persisted and re-established at activation, but they will only be written with an
|
37
|
+
explicit flush. */
|
38
|
+
FBInsightsFlushBehaviorExplicitOnly,
|
39
|
+
|
40
|
+
} FBInsightsFlushBehavior;
|
41
|
+
|
42
|
+
/*
|
43
|
+
* Constant used by NSNotificationCenter for results of flushing Insights event logs
|
44
|
+
*/
|
45
|
+
|
46
|
+
/*! NSNotificationCenter name indicating a result of a log flush attempt */
|
47
|
+
extern NSString *const FBInsightsLoggingResultNotification;
|
48
|
+
|
49
|
+
/*!
|
50
|
+
@class FBInsights
|
51
|
+
|
52
|
+
@abstract
|
53
|
+
Client-side event logging for specialized application analytics available through Facebook Insights
|
54
|
+
and Conversion Pixel conversion tracking for ads optimization.
|
55
|
+
|
56
|
+
@discussion
|
57
|
+
The `FBInsights` static class has a few related roles:
|
58
|
+
|
59
|
+
+ Logging predefined events to Facebook Application Insights with a
|
60
|
+
numeric value to sum across a large number of events, and an optional set of key/value
|
61
|
+
parameters that define "segments" for this event (e.g., 'purchaserStatus' : 'frequent', or
|
62
|
+
'gamerLevel' : 'intermediate')
|
63
|
+
|
64
|
+
+ Logging 'purchase' events to later be used for ads optimization around lifetime value.
|
65
|
+
|
66
|
+
+ Logging 'conversion pixels' for use in ads conversion tracking and optimization.
|
67
|
+
|
68
|
+
+ Methods that control the way in which events are flushed out to the Facebook servers.
|
69
|
+
|
70
|
+
Here are some important characteristics of the logging mechanism provided by `FBInsights`:
|
71
|
+
|
72
|
+
+ Events are not sent immediately when logged. They're cached and flushed out to the Facebook servers
|
73
|
+
in a number of situations:
|
74
|
+
- when an event count threshold is passed.
|
75
|
+
- when a time threshold is passed.
|
76
|
+
- when an app has gone to background and is then brought back to the foreground.
|
77
|
+
|
78
|
+
+ Events will be accumulated when the app is in a disconnected state, and sent when the connection is
|
79
|
+
restored and one of the above 'flush' conditions are met.
|
80
|
+
|
81
|
+
+ The `FBInsights` class in thread-safe in that events may be logged from any of the app's threads.
|
82
|
+
|
83
|
+
Some things to note when logging events:
|
84
|
+
|
85
|
+
+ There is a limit to the number of unique parameter names in the provided parameters that can
|
86
|
+
be used per event, on the order of 10. This is not just for an individual call, but for all
|
87
|
+
invocations for that eventName.
|
88
|
+
+ Event names and parameter names (the keys in the NSDictionary) must be between 2 and 40 characters
|
89
|
+
+ The length of each parameter value can be no more than on the order of 100 characters.
|
90
|
+
|
91
|
+
*/
|
92
|
+
@interface FBInsights : NSObject
|
93
|
+
|
94
|
+
/*
|
95
|
+
* Global, session wide properties
|
96
|
+
*/
|
97
|
+
|
98
|
+
/*!
|
99
|
+
@method
|
100
|
+
|
101
|
+
@abstract
|
102
|
+
Gets the application version to the provided string. Insights allows breakdown of
|
103
|
+
events by app version.
|
104
|
+
*/
|
105
|
+
+ (NSString *)appVersion;
|
106
|
+
|
107
|
+
/*!
|
108
|
+
@method
|
109
|
+
|
110
|
+
@abstract
|
111
|
+
Sets the application version to the provided string. Insights allows breakdown of
|
112
|
+
events by app version.
|
113
|
+
|
114
|
+
@param appVersion The version identifier of the iOS app that events are being logged through.
|
115
|
+
Enables analysis and breakdown of logged events by app version.
|
116
|
+
*/
|
117
|
+
+ (void)setAppVersion:(NSString *)appVersion;
|
118
|
+
|
119
|
+
/*
|
120
|
+
* Purchase logging
|
121
|
+
*/
|
122
|
+
|
123
|
+
/*!
|
124
|
+
@method
|
125
|
+
|
126
|
+
@abstract
|
127
|
+
Log a purchase of the specified amount, in the specified currency.
|
128
|
+
|
129
|
+
@param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.
|
130
|
+
|
131
|
+
@param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for
|
132
|
+
specific values. One reference for these is <http://en.wikipedia.org/wiki/ISO_4217>.
|
133
|
+
|
134
|
+
@discussion This event immediately triggers a flush of the `FBInsights` event queue, unless the `flushBehavior` is set
|
135
|
+
to `FBInsightsFlushBehaviorExplicitOnly`.
|
136
|
+
|
137
|
+
*/
|
138
|
+
+ (void)logPurchase:(double)purchaseAmount
|
139
|
+
currency:(NSString *)currency;
|
140
|
+
|
141
|
+
/*!
|
142
|
+
@method
|
143
|
+
|
144
|
+
@abstract
|
145
|
+
Log a purchase of the specified amount, in the specified currency, also providing a set of
|
146
|
+
additional characteristics describing the purchase.
|
147
|
+
|
148
|
+
@param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.
|
149
|
+
|
150
|
+
@param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for
|
151
|
+
specific values. One reference for these is <http://en.wikipedia.org/wiki/ISO_4217>.
|
152
|
+
|
153
|
+
@param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
|
154
|
+
be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of
|
155
|
+
parameters and name construction are given in the `FBInsights` documentation.
|
156
|
+
|
157
|
+
@discussion This event immediately triggers a flush of the `FBInsights` event queue, unless the `flushBehavior` is set
|
158
|
+
to `FBInsightsFlushBehaviorExplicitOnly`.
|
159
|
+
|
160
|
+
*/
|
161
|
+
+ (void)logPurchase:(double)purchaseAmount
|
162
|
+
currency:(NSString *)currency
|
163
|
+
parameters:(NSDictionary *)parameters;
|
164
|
+
|
165
|
+
/*!
|
166
|
+
@method
|
167
|
+
|
168
|
+
@abstract
|
169
|
+
Log a purchase of the specified amount, in the specified currency, also providing a set of
|
170
|
+
additional characteristics describing the purchase, as well as an <FBSession> to log to.
|
171
|
+
|
172
|
+
@param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.
|
173
|
+
|
174
|
+
@param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for
|
175
|
+
specific values. One reference for these is <http://en.wikipedia.org/wiki/ISO_4217>.
|
176
|
+
|
177
|
+
@param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must
|
178
|
+
be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of
|
179
|
+
parameters and name construction are given in the `FBInsights` documentation.
|
180
|
+
|
181
|
+
@param session <FBSession> to direct the event logging to, and thus be logged with whatever user (if any)
|
182
|
+
is associated with that <FBSession>. A value of `nil` will use `[FBSession activeSession]`.
|
183
|
+
|
184
|
+
@discussion This event immediately triggers a flush of the `FBInsights` event queue, unless the `flushBehavior` is set
|
185
|
+
to `FBInsightsFlushBehaviorExplicitOnly`.
|
186
|
+
|
187
|
+
*/
|
188
|
+
+ (void)logPurchase:(double)purchaseAmount
|
189
|
+
currency:(NSString *)currency
|
190
|
+
parameters:(NSDictionary *)parameters
|
191
|
+
session:(FBSession *)session;
|
192
|
+
|
193
|
+
/*
|
194
|
+
* Logging conversion pixels for Ads Optimization/Conversion Tracking. See https://www.facebook.com/help/435189689870514 to learn more.
|
195
|
+
*/
|
196
|
+
|
197
|
+
/*!
|
198
|
+
@method
|
199
|
+
|
200
|
+
@abstract
|
201
|
+
Log, or "Fire" a Conversion Pixel. Conversion Pixels are used for Ads Conversion Tracking. See https://www.facebook.com/help/435189689870514 to learn more.
|
202
|
+
|
203
|
+
@param pixelID Numeric ID for the conversion pixel to be logged. See https://www.facebook.com/help/435189689870514 to learn how to create
|
204
|
+
a conversion pixel.
|
205
|
+
|
206
|
+
@param value Value of what the logging of this pixel is worth to you. The currency that this is expressed in doesn't matter, so long as it is consistent across all logging for this pixel.
|
207
|
+
|
208
|
+
@discussion This event immediately triggers a flush of the `FBInsights` event queue, unless the `flushBehavior` is set
|
209
|
+
to `FBInsightsFlushBehaviorExplicitOnly`.
|
210
|
+
*/
|
211
|
+
+ (void)logConversionPixel:(NSString *)pixelID
|
212
|
+
valueOfPixel:(double)value;
|
213
|
+
|
214
|
+
/*!
|
215
|
+
@method
|
216
|
+
|
217
|
+
@abstract
|
218
|
+
Log, or "Fire" a Conversion Pixel. Conversion Pixels are used for Ads Conversion Tracking. See https://www.facebook.com/help/435189689870514 to learn more.
|
219
|
+
|
220
|
+
@param pixelID Numeric ID for the conversion pixel to be logged. See https://www.facebook.com/help/435189689870514 to learn how to create
|
221
|
+
a conversion pixel.
|
222
|
+
|
223
|
+
@param value Value of what the logging of this pixel is worth to you. The currency that this is expressed in doesn't matter, so long as it is consistent across all logging for this pixel.
|
224
|
+
|
225
|
+
@param session <FBSession> to direct the event logging to, and thus be logged with whatever user (if any)
|
226
|
+
is associated with that <FBSession>. A value of `nil` will use `[FBSession activeSession]`.
|
227
|
+
|
228
|
+
@discussion This event immediately triggers a flush of the `FBInsights` event queue, unless the `flushBehavior` is set
|
229
|
+
to `FBInsightsFlushBehaviorExplicitOnly`.
|
230
|
+
|
231
|
+
*/
|
232
|
+
+ (void)logConversionPixel:(NSString *)pixelID
|
233
|
+
valueOfPixel:(double)value
|
234
|
+
session:(FBSession *)session;
|
235
|
+
|
236
|
+
|
237
|
+
/*
|
238
|
+
* Control over event batching/flushing
|
239
|
+
*/
|
240
|
+
|
241
|
+
|
242
|
+
/*!
|
243
|
+
@method
|
244
|
+
|
245
|
+
@abstract
|
246
|
+
Get the current event flushing behavior specifying when events are sent back to Facebook servers.
|
247
|
+
*/
|
248
|
+
+ (FBInsightsFlushBehavior)flushBehavior;
|
249
|
+
|
250
|
+
/*!
|
251
|
+
@method
|
252
|
+
|
253
|
+
@abstract
|
254
|
+
Set the current event flushing behavior specifying when events are sent back to Facebook servers.
|
255
|
+
|
256
|
+
@param flushBehavior The desired `FBInsightsFlushBehavior` to be used.
|
257
|
+
*/
|
258
|
+
+ (void)setFlushBehavior:(FBInsightsFlushBehavior)flushBehavior;
|
259
|
+
|
260
|
+
|
261
|
+
/*!
|
262
|
+
@method
|
263
|
+
|
264
|
+
@abstract
|
265
|
+
Explicitly kick off flushing of events to Facebook. This is an asynchronous method, but it does initiate an immediate
|
266
|
+
kick off. Server failures will be reported through the NotificationCenter with notification ID `FBInsightsLoggingResultNotification`.
|
267
|
+
*/
|
268
|
+
+ (void)flush;
|
269
|
+
|
270
|
+
|
271
|
+
@end
|
@@ -0,0 +1,48 @@
|
|
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
|
+
|
18
|
+
#import "FBDialog.h"
|
19
|
+
|
20
|
+
@protocol FBLoginDialogDelegate;
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Do not use this interface directly, instead, use authorize in Facebook.h
|
24
|
+
*
|
25
|
+
* Facebook Login Dialog interface for start the facebook webView login dialog.
|
26
|
+
* It start pop-ups prompting for credentials and permissions.
|
27
|
+
*/
|
28
|
+
|
29
|
+
@interface FBLoginDialog : FBDialog {
|
30
|
+
id<FBLoginDialogDelegate> _loginDelegate;
|
31
|
+
}
|
32
|
+
|
33
|
+
-(id) initWithURL:(NSString *) loginURL
|
34
|
+
loginParams:(NSMutableDictionary *) params
|
35
|
+
delegate:(id <FBLoginDialogDelegate>) delegate;
|
36
|
+
@end
|
37
|
+
|
38
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////
|
39
|
+
|
40
|
+
@protocol FBLoginDialogDelegate <NSObject>
|
41
|
+
|
42
|
+
- (void)fbDialogLogin:(NSString*)token expirationDate:(NSDate*)expirationDate;
|
43
|
+
|
44
|
+
- (void)fbDialogNotLogin:(BOOL)cancelled;
|
45
|
+
|
46
|
+
@end
|
47
|
+
|
48
|
+
|
@@ -0,0 +1,178 @@
|
|
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
|
+
#import "FBSession.h"
|
19
|
+
#import "FBGraphUser.h"
|
20
|
+
|
21
|
+
@protocol FBLoginViewDelegate;
|
22
|
+
|
23
|
+
/*!
|
24
|
+
@class FBLoginView
|
25
|
+
@abstract FBLoginView is a custom UIView that renders a button to login or logout based on the
|
26
|
+
state of `FBSession.activeSession`
|
27
|
+
|
28
|
+
@discussion This view is closely associated with `FBSession.activeSession`. Upon initialization,
|
29
|
+
it will attempt to open an active session without UI if the current active session is not open.
|
30
|
+
|
31
|
+
The FBLoginView instance also monitors for changes to the active session.
|
32
|
+
*/
|
33
|
+
@interface FBLoginView : UIView
|
34
|
+
|
35
|
+
/*!
|
36
|
+
@abstract
|
37
|
+
The permissions to login with. Defaults to nil, meaning basic permissions.
|
38
|
+
|
39
|
+
@discussion Methods and properties that specify permissions without a read or publish
|
40
|
+
qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred.
|
41
|
+
*/
|
42
|
+
@property (readwrite, copy) NSArray *permissions __attribute__((deprecated));
|
43
|
+
|
44
|
+
/*!
|
45
|
+
@abstract
|
46
|
+
The read permissions to request if the user logs in via this view.
|
47
|
+
|
48
|
+
@discussion
|
49
|
+
Note, that if read permissions are specified, then publish permissions should not be specified.
|
50
|
+
*/
|
51
|
+
@property (nonatomic, copy) NSArray *readPermissions;
|
52
|
+
|
53
|
+
/*!
|
54
|
+
@abstract
|
55
|
+
The publish permissions to request if the user logs in via this view.
|
56
|
+
|
57
|
+
@discussion
|
58
|
+
Note, that a defaultAudience value of FBSessionDefaultAudienceOnlyMe, FBSessionDefaultAudienceEveryone, or
|
59
|
+
FBSessionDefaultAudienceFriends should be set if publish permissions are specified. Additionally, when publish
|
60
|
+
permissions are specified, then read should not be specified.
|
61
|
+
*/
|
62
|
+
@property (nonatomic, copy) NSArray *publishPermissions;
|
63
|
+
|
64
|
+
/*!
|
65
|
+
@abstract
|
66
|
+
The default audience to use, if publish permissions are requested at login time.
|
67
|
+
*/
|
68
|
+
@property (nonatomic, assign) FBSessionDefaultAudience defaultAudience;
|
69
|
+
|
70
|
+
|
71
|
+
/*!
|
72
|
+
@abstract
|
73
|
+
Initializes and returns an `FBLoginView` object. The underlying session has basic permissions granted to it.
|
74
|
+
*/
|
75
|
+
- (id)init;
|
76
|
+
|
77
|
+
/*!
|
78
|
+
@method
|
79
|
+
|
80
|
+
@abstract
|
81
|
+
Initializes and returns an `FBLoginView` object constructed with the specified permissions.
|
82
|
+
|
83
|
+
@param permissions An array of strings representing the permissions to request during the
|
84
|
+
authentication flow. A value of nil will indicates basic permissions.
|
85
|
+
|
86
|
+
@discussion Methods and properties that specify permissions without a read or publish
|
87
|
+
qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred.
|
88
|
+
*/
|
89
|
+
- (id)initWithPermissions:(NSArray *)permissions __attribute__((deprecated));
|
90
|
+
|
91
|
+
/*!
|
92
|
+
@method
|
93
|
+
|
94
|
+
@abstract
|
95
|
+
Initializes and returns an `FBLoginView` object constructed with the specified permissions.
|
96
|
+
|
97
|
+
@param readPermissions An array of strings representing the read permissions to request during the
|
98
|
+
authentication flow. A value of nil will indicates basic permissions.
|
99
|
+
|
100
|
+
*/
|
101
|
+
- (id)initWithReadPermissions:(NSArray *)readPermissions;
|
102
|
+
|
103
|
+
/*!
|
104
|
+
@method
|
105
|
+
|
106
|
+
@abstract
|
107
|
+
Initializes and returns an `FBLoginView` object constructed with the specified permissions.
|
108
|
+
|
109
|
+
@param publishPermissions An array of strings representing the publish permissions to request during the
|
110
|
+
authentication flow.
|
111
|
+
|
112
|
+
@param defaultAudience An audience for published posts; note that FBSessionDefaultAudienceNone is not valid
|
113
|
+
for permission requests that include publish or manage permissions.
|
114
|
+
|
115
|
+
*/
|
116
|
+
- (id)initWithPublishPermissions:(NSArray *)publishPermissions
|
117
|
+
defaultAudience:(FBSessionDefaultAudience)defaultAudience;
|
118
|
+
|
119
|
+
/*!
|
120
|
+
@abstract
|
121
|
+
The delegate object that receives updates for selection and display control.
|
122
|
+
*/
|
123
|
+
@property (nonatomic, assign) IBOutlet id<FBLoginViewDelegate> delegate;
|
124
|
+
|
125
|
+
@end
|
126
|
+
|
127
|
+
/*!
|
128
|
+
@protocol
|
129
|
+
|
130
|
+
@abstract
|
131
|
+
The `FBLoginViewDelegate` protocol defines the methods used to receive event
|
132
|
+
notifications from `FBLoginView` objects.
|
133
|
+
*/
|
134
|
+
@protocol FBLoginViewDelegate <NSObject>
|
135
|
+
|
136
|
+
@optional
|
137
|
+
|
138
|
+
/*!
|
139
|
+
@abstract
|
140
|
+
Tells the delegate that the view is now in logged in mode
|
141
|
+
|
142
|
+
@param loginView The login view that transitioned its view mode
|
143
|
+
*/
|
144
|
+
- (void)loginViewShowingLoggedInUser:(FBLoginView *)loginView;
|
145
|
+
|
146
|
+
/*!
|
147
|
+
@abstract
|
148
|
+
Tells the delegate that the view is has now fetched user info
|
149
|
+
|
150
|
+
@param loginView The login view that transitioned its view mode
|
151
|
+
|
152
|
+
@param user The user info object describing the logged in user
|
153
|
+
*/
|
154
|
+
- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView
|
155
|
+
user:(id<FBGraphUser>)user;
|
156
|
+
|
157
|
+
/*!
|
158
|
+
@abstract
|
159
|
+
Tells the delegate that the view is now in logged out mode
|
160
|
+
|
161
|
+
@param loginView The login view that transitioned its view mode
|
162
|
+
*/
|
163
|
+
- (void)loginViewShowingLoggedOutUser:(FBLoginView *)loginView;
|
164
|
+
|
165
|
+
/*!
|
166
|
+
@abstract
|
167
|
+
Tells the delegate that there is a communication or authorization error.
|
168
|
+
|
169
|
+
@param loginView The login view that transitioned its view mode
|
170
|
+
@param error An error object containing details of the error.
|
171
|
+
@discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/
|
172
|
+
for error handling best practices.
|
173
|
+
*/
|
174
|
+
- (void)loginView:(FBLoginView *)loginView
|
175
|
+
handleError:(NSError *)error;
|
176
|
+
|
177
|
+
@end
|
178
|
+
|