motion-firebase 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. data/.gitignore +17 -0
  2. data/.travis.yml +2 -0
  3. data/Gemfile +6 -0
  4. data/Gemfile.lock +28 -0
  5. data/README.md +511 -0
  6. data/Rakefile +11 -0
  7. data/app/app_delegate.rb +156 -0
  8. data/lib/firebase/firebase.rb +242 -0
  9. data/lib/firebase/firebase_auth_client.rb +49 -0
  10. data/lib/firebase/version.rb +5 -0
  11. data/lib/motion-firebase-auth.rb +19 -0
  12. data/lib/motion-firebase-facebook.rb +17 -0
  13. data/lib/motion-firebase.rb +19 -0
  14. data/lib/vendor/FacebookSDK.framework/FacebookSDK +0 -0
  15. data/lib/vendor/FacebookSDK.framework/Headers/FBAccessTokenData.h +115 -0
  16. data/lib/vendor/FacebookSDK.framework/Headers/FBCacheDescriptor.h +42 -0
  17. data/lib/vendor/FacebookSDK.framework/Headers/FBError.h +274 -0
  18. data/lib/vendor/FacebookSDK.framework/Headers/FBFrictionlessRecipientCache.h +86 -0
  19. data/lib/vendor/FacebookSDK.framework/Headers/FBFriendPickerViewController.h +290 -0
  20. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphLocation.h +77 -0
  21. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphObject.h +224 -0
  22. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphPlace.h +60 -0
  23. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphUser.h +90 -0
  24. data/lib/vendor/FacebookSDK.framework/Headers/FBInsights.h +271 -0
  25. data/lib/vendor/FacebookSDK.framework/Headers/FBLoginView.h +178 -0
  26. data/lib/vendor/FacebookSDK.framework/Headers/FBNativeDialogs.h +170 -0
  27. data/lib/vendor/FacebookSDK.framework/Headers/FBOpenGraphAction.h +127 -0
  28. data/lib/vendor/FacebookSDK.framework/Headers/FBPlacePickerViewController.h +257 -0
  29. data/lib/vendor/FacebookSDK.framework/Headers/FBProfilePictureView.h +80 -0
  30. data/lib/vendor/FacebookSDK.framework/Headers/FBRequest.h +504 -0
  31. data/lib/vendor/FacebookSDK.framework/Headers/FBRequestConnection.h +389 -0
  32. data/lib/vendor/FacebookSDK.framework/Headers/FBSession.h +751 -0
  33. data/lib/vendor/FacebookSDK.framework/Headers/FBSessionTokenCachingStrategy.h +152 -0
  34. data/lib/vendor/FacebookSDK.framework/Headers/FBSettings.h +136 -0
  35. data/lib/vendor/FacebookSDK.framework/Headers/FBTestSession.h +135 -0
  36. data/lib/vendor/FacebookSDK.framework/Headers/FBUserSettingsViewController.h +127 -0
  37. data/lib/vendor/FacebookSDK.framework/Headers/FBViewController.h +118 -0
  38. data/lib/vendor/FacebookSDK.framework/Headers/FBWebDialogs.h +234 -0
  39. data/lib/vendor/FacebookSDK.framework/Headers/FacebookSDK.h +132 -0
  40. data/lib/vendor/FacebookSDK.framework/Headers/NSError+FBError.h +59 -0
  41. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  42. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  43. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
  44. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
  45. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
  46. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
  47. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
  48. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
  49. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
  50. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
  51. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
  52. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
  53. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
  54. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
  55. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  56. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  57. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
  58. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
  59. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
  60. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
  61. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
  62. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
  63. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
  64. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
  65. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
  66. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
  67. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
  68. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
  69. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
  70. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
  71. data/lib/vendor/FacebookSDK.framework/Resources/Info.plist +20 -0
  72. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAccessTokenData.h +115 -0
  73. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBCacheDescriptor.h +42 -0
  74. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBConnect.h +22 -0
  75. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialog.h +165 -0
  76. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBError.h +274 -0
  77. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRecipientCache.h +86 -0
  78. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRequestSettings.h +85 -0
  79. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFriendPickerViewController.h +290 -0
  80. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphLocation.h +77 -0
  81. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphObject.h +224 -0
  82. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphPlace.h +60 -0
  83. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphUser.h +90 -0
  84. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBInsights.h +271 -0
  85. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginDialog.h +48 -0
  86. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginView.h +178 -0
  87. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBNativeDialogs.h +170 -0
  88. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphAction.h +127 -0
  89. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPlacePickerViewController.h +257 -0
  90. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBProfilePictureView.h +80 -0
  91. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequest.h +504 -0
  92. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequestConnection.h +389 -0
  93. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJSON.h +75 -0
  94. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonBase.h +86 -0
  95. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonParser.h +87 -0
  96. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonWriter.h +129 -0
  97. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSession.h +751 -0
  98. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionManualTokenCachingStrategy.h +32 -0
  99. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionTokenCachingStrategy.h +152 -0
  100. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSettings.h +136 -0
  101. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTestSession.h +135 -0
  102. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBUserSettingsViewController.h +127 -0
  103. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBViewController.h +118 -0
  104. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBWebDialogs.h +234 -0
  105. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/Facebook.h +281 -0
  106. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FacebookSDK.h +132 -0
  107. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/NSError+FBError.h +59 -0
  108. data/lib/vendor/FacebookSDK.framework/Versions/A/FacebookSDK +0 -0
  109. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBAccessTokenData.h +115 -0
  110. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBCacheDescriptor.h +42 -0
  111. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBError.h +274 -0
  112. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBFrictionlessRecipientCache.h +86 -0
  113. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBFriendPickerViewController.h +290 -0
  114. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphLocation.h +77 -0
  115. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphObject.h +224 -0
  116. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphPlace.h +60 -0
  117. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphUser.h +90 -0
  118. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBInsights.h +271 -0
  119. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBLoginView.h +178 -0
  120. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBNativeDialogs.h +170 -0
  121. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphAction.h +127 -0
  122. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBPlacePickerViewController.h +257 -0
  123. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBProfilePictureView.h +80 -0
  124. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBRequest.h +504 -0
  125. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBRequestConnection.h +389 -0
  126. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSession.h +751 -0
  127. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSessionTokenCachingStrategy.h +152 -0
  128. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSettings.h +136 -0
  129. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBTestSession.h +135 -0
  130. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBUserSettingsViewController.h +127 -0
  131. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBViewController.h +118 -0
  132. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBWebDialogs.h +234 -0
  133. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FacebookSDK.h +132 -0
  134. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/NSError+FBError.h +59 -0
  135. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  136. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  137. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
  138. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
  139. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
  140. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
  141. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
  142. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
  143. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
  144. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
  145. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
  146. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
  147. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
  148. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
  149. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  150. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  151. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
  152. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
  153. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
  154. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
  155. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
  156. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
  157. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
  158. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
  159. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
  160. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
  161. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
  162. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
  163. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
  164. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
  165. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/Info.plist +20 -0
  166. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBAccessTokenData.h +115 -0
  167. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBCacheDescriptor.h +42 -0
  168. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBConnect.h +22 -0
  169. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBDialog.h +165 -0
  170. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBError.h +274 -0
  171. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFrictionlessRecipientCache.h +86 -0
  172. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFrictionlessRequestSettings.h +85 -0
  173. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFriendPickerViewController.h +290 -0
  174. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphLocation.h +77 -0
  175. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphObject.h +224 -0
  176. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphPlace.h +60 -0
  177. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphUser.h +90 -0
  178. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBInsights.h +271 -0
  179. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBLoginDialog.h +48 -0
  180. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBLoginView.h +178 -0
  181. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBNativeDialogs.h +170 -0
  182. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBOpenGraphAction.h +127 -0
  183. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBPlacePickerViewController.h +257 -0
  184. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBProfilePictureView.h +80 -0
  185. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBRequest.h +504 -0
  186. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBRequestConnection.h +389 -0
  187. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJSON.h +75 -0
  188. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonBase.h +86 -0
  189. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonParser.h +87 -0
  190. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonWriter.h +129 -0
  191. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSession.h +751 -0
  192. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSessionManualTokenCachingStrategy.h +32 -0
  193. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSessionTokenCachingStrategy.h +152 -0
  194. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSettings.h +136 -0
  195. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBTestSession.h +135 -0
  196. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBUserSettingsViewController.h +127 -0
  197. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBViewController.h +118 -0
  198. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBWebDialogs.h +234 -0
  199. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/Facebook.h +281 -0
  200. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FacebookSDK.h +132 -0
  201. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/NSError+FBError.h +59 -0
  202. data/lib/vendor/FacebookSDK.framework/Versions/Current/FacebookSDK +0 -0
  203. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBAccessTokenData.h +115 -0
  204. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBCacheDescriptor.h +42 -0
  205. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBError.h +274 -0
  206. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBFrictionlessRecipientCache.h +86 -0
  207. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBFriendPickerViewController.h +290 -0
  208. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphLocation.h +77 -0
  209. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphObject.h +224 -0
  210. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphPlace.h +60 -0
  211. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphUser.h +90 -0
  212. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBInsights.h +271 -0
  213. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBLoginView.h +178 -0
  214. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBNativeDialogs.h +170 -0
  215. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBOpenGraphAction.h +127 -0
  216. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBPlacePickerViewController.h +257 -0
  217. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBProfilePictureView.h +80 -0
  218. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBRequest.h +504 -0
  219. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBRequestConnection.h +389 -0
  220. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSession.h +751 -0
  221. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSessionTokenCachingStrategy.h +152 -0
  222. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSettings.h +136 -0
  223. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBTestSession.h +135 -0
  224. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBUserSettingsViewController.h +127 -0
  225. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBViewController.h +118 -0
  226. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBWebDialogs.h +234 -0
  227. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FacebookSDK.h +132 -0
  228. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/NSError+FBError.h +59 -0
  229. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  230. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  231. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
  232. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
  233. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
  234. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
  235. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
  236. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
  237. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
  238. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
  239. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
  240. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
  241. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
  242. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
  243. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  244. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  245. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
  246. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
  247. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
  248. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
  249. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
  250. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
  251. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
  252. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
  253. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
  254. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
  255. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
  256. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
  257. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
  258. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
  259. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/Info.plist +20 -0
  260. data/lib/vendor/Firebase.framework/Firebase +0 -0
  261. data/lib/vendor/Firebase.framework/Headers/FDataSnapshot.h +146 -0
  262. data/lib/vendor/Firebase.framework/Headers/FEventType.h +43 -0
  263. data/lib/vendor/Firebase.framework/Headers/FMutableData.h +134 -0
  264. data/lib/vendor/Firebase.framework/Headers/FQuery.h +229 -0
  265. data/lib/vendor/Firebase.framework/Headers/FTransactionResult.h +50 -0
  266. data/lib/vendor/Firebase.framework/Headers/Firebase.h +629 -0
  267. data/lib/vendor/Firebase.framework/Versions/A/Firebase +0 -0
  268. data/lib/vendor/Firebase.framework/Versions/A/Headers/FDataSnapshot.h +146 -0
  269. data/lib/vendor/Firebase.framework/Versions/A/Headers/FEventType.h +43 -0
  270. data/lib/vendor/Firebase.framework/Versions/A/Headers/FMutableData.h +134 -0
  271. data/lib/vendor/Firebase.framework/Versions/A/Headers/FQuery.h +229 -0
  272. data/lib/vendor/Firebase.framework/Versions/A/Headers/FTransactionResult.h +50 -0
  273. data/lib/vendor/Firebase.framework/Versions/A/Headers/Firebase.h +629 -0
  274. data/lib/vendor/Firebase.framework/Versions/Current/Firebase +0 -0
  275. data/lib/vendor/Firebase.framework/Versions/Current/Headers/FDataSnapshot.h +146 -0
  276. data/lib/vendor/Firebase.framework/Versions/Current/Headers/FEventType.h +43 -0
  277. data/lib/vendor/Firebase.framework/Versions/Current/Headers/FMutableData.h +134 -0
  278. data/lib/vendor/Firebase.framework/Versions/Current/Headers/FQuery.h +229 -0
  279. data/lib/vendor/Firebase.framework/Versions/Current/Headers/FTransactionResult.h +50 -0
  280. data/lib/vendor/Firebase.framework/Versions/Current/Headers/Firebase.h +629 -0
  281. data/lib/vendor/FirebaseAuthClient.framework/FirebaseAuthClient +0 -0
  282. data/lib/vendor/FirebaseAuthClient.framework/Headers/FATypes.h +48 -0
  283. data/lib/vendor/FirebaseAuthClient.framework/Headers/FAUser.h +85 -0
  284. data/lib/vendor/FirebaseAuthClient.framework/Headers/FirebaseAuthClient.h +149 -0
  285. data/lib/vendor/FirebaseAuthClient.framework/Versions/A/FirebaseAuthClient +0 -0
  286. data/lib/vendor/FirebaseAuthClient.framework/Versions/A/Headers/FATypes.h +48 -0
  287. data/lib/vendor/FirebaseAuthClient.framework/Versions/A/Headers/FAUser.h +85 -0
  288. data/lib/vendor/FirebaseAuthClient.framework/Versions/A/Headers/FirebaseAuthClient.h +149 -0
  289. data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/FirebaseAuthClient +0 -0
  290. data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/Headers/FATypes.h +48 -0
  291. data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/Headers/FAUser.h +85 -0
  292. data/lib/vendor/FirebaseAuthClient.framework/Versions/Current/Headers/FirebaseAuthClient.h +149 -0
  293. data/motion-firebase.gemspec +23 -0
  294. data/resources/Default-568h@2x.png +0 -0
  295. metadata +357 -0
@@ -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,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
+
@@ -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