motion-firebase 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,32 @@
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 "FBSessionTokenCachingStrategy.h"
18
+
19
+ // FBSessionManualTokenCachingStrategy
20
+ //
21
+ // Summary:
22
+ // Internal use only, this class enables migration logic for the Facebook class, by providing
23
+ // a means to directly provide the access token to a FBSession object
24
+ //
25
+ @interface FBSessionManualTokenCachingStrategy : FBSessionTokenCachingStrategy
26
+
27
+ // set the properties before instantiating the FBSession object in order to seed a token
28
+ @property (readwrite, copy) NSString* accessToken;
29
+ @property (readwrite, copy) NSDate* expirationDate;
30
+
31
+ @end
32
+
@@ -0,0 +1,152 @@
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 "FBAccessTokenData.h"
19
+
20
+ /*!
21
+ @class
22
+
23
+ @abstract
24
+ The `FBSessionTokenCachingStrategy` class is responsible for persisting and retrieving cached data related to
25
+ an <FBSession> object, including the user's Facebook access token.
26
+
27
+ @discussion
28
+ `FBSessionTokenCachingStrategy` is designed to be instantiated directly or used as a base class. Usually default
29
+ token caching behavior is sufficient, and you do not need to interface directly with `FBSessionTokenCachingStrategy` objects.
30
+ However, if you need to control where or how `FBSession` information is cached, then you may take one of two approaches.
31
+
32
+ The first and simplest approach is to instantiate an instance of `FBSessionTokenCachingStrategy`, and then pass
33
+ the instance to `FBSession` class' `init` method. This enables your application to control the key name used in
34
+ `NSUserDefaults` to store session information. You may consider this approach if you plan to cache session information
35
+ for multiple users.
36
+
37
+ The second and more advanced approached is to derive a custom class from `FBSessionTokenCachingStrategy`, which will
38
+ be responsible for caching behavior of your application. This approach is useful if you need to change where the
39
+ information is cached, for example if you prefer to use the filesystem or make a network connection to fetch and
40
+ persist cached tokens. Inheritors should override the cacheTokenInformation, fetchTokenInformation, and clearToken methods.
41
+ Doing this enables your application to implement any token caching scheme, including no caching at all (see
42
+ `[FBSessionTokenCachingStrategy* nullCacheInstance ]`.
43
+
44
+ Direct use of `FBSessionTokenCachingStrategy`is an advanced technique. Most applications use <FBSession> objects without
45
+ passing an `FBSessionTokenCachingStrategy`, which yields default caching to `NSUserDefaults`.
46
+ */
47
+ @interface FBSessionTokenCachingStrategy : NSObject
48
+
49
+ /*!
50
+ @abstract Initializes and returns an instance
51
+ */
52
+ - (id)init;
53
+
54
+ /*!
55
+ @abstract
56
+ Initializes and returns an instance
57
+
58
+ @param tokenInformationKeyName Specifies a key name to use for cached token information in NSUserDefaults, nil
59
+ indicates a default value of @"FBAccessTokenInformationKey"
60
+ */
61
+ - (id)initWithUserDefaultTokenInformationKeyName:(NSString*)tokenInformationKeyName;
62
+
63
+ /*!
64
+ @abstract
65
+ Called by <FBSession> (and overridden by inheritors), in order to cache token information.
66
+
67
+ @param tokenInformation Dictionary containing token information to be cached by the method
68
+ @discussion You should favor overriding this instead of `cacheFBAccessTokenData` only if you intend
69
+ to cache additional data not captured by the FBAccessTokenData type.
70
+ */
71
+ - (void)cacheTokenInformation:(NSDictionary*)tokenInformation;
72
+
73
+ /*!
74
+ @abstract Cache the supplied token.
75
+ @param accessToken The token instance.
76
+ @discussion This essentially wraps a call to `cacheTokenInformation` so you should
77
+ override this when providing a custom token caching strategy.
78
+ */
79
+ - (void)cacheFBAccessTokenData:(FBAccessTokenData *)accessToken;
80
+
81
+ /*!
82
+ @abstract
83
+ Called by <FBSession> (and overridden by inheritors), in order to fetch cached token information
84
+
85
+ @discussion
86
+ An overriding implementation should only return a token if it
87
+ can also return an expiration date, otherwise return nil.
88
+ You should favor overriding this instead of `fetchFBAccessTokenData` only if you intend
89
+ to cache additional data not captured by the FBAccessTokenData type.
90
+
91
+ */
92
+ - (NSDictionary*)fetchTokenInformation;
93
+
94
+ /*!
95
+ @abstract
96
+ Fetches the cached token instance.
97
+
98
+ @discussion
99
+ This essentially wraps a call to `fetchTokenInformation` so you should
100
+ override this when providing a custom token caching strategy.
101
+ */
102
+ - (FBAccessTokenData *)fetchFBAccessTokenData;
103
+
104
+ /*!
105
+ @abstract
106
+ Called by <FBSession> (and overridden by inheritors), in order delete any cached information for the current token
107
+ */
108
+ - (void)clearToken;
109
+
110
+ /*!
111
+ @abstract
112
+ Helper function called by the SDK as well as apps, in order to fetch the default strategy instance.
113
+ */
114
+ + (FBSessionTokenCachingStrategy*)defaultInstance;
115
+
116
+ /*!
117
+ @abstract
118
+ Helper function to return a FBSessionTokenCachingStrategy instance that does not perform any caching.
119
+ */
120
+ + (FBSessionTokenCachingStrategy*)nullCacheInstance;
121
+
122
+ /*!
123
+ @abstract
124
+ Helper function called by the SDK as well as application code, used to determine whether a given dictionary
125
+ contains the minimum token information usable by the <FBSession>.
126
+
127
+ @param tokenInformation Dictionary containing token information to be validated
128
+ */
129
+ + (BOOL)isValidTokenInformation:(NSDictionary*)tokenInformation;
130
+
131
+ @end
132
+
133
+ // The key to use with token information dictionaries to get and set the token value
134
+ extern NSString *const FBTokenInformationTokenKey;
135
+
136
+ // The to use with token information dictionaries to get and set the expiration date
137
+ extern NSString *const FBTokenInformationExpirationDateKey;
138
+
139
+ // The to use with token information dictionaries to get and set the refresh date
140
+ extern NSString *const FBTokenInformationRefreshDateKey;
141
+
142
+ // The key to use with token information dictionaries to get the related user's fbid
143
+ extern NSString *const FBTokenInformationUserFBIDKey;
144
+
145
+ // The key to use with token information dictionaries to determine whether the token was fetched via Facebook Login
146
+ extern NSString *const FBTokenInformationIsFacebookLoginKey;
147
+
148
+ // The key to use with token information dictionaries to determine whether the token was fetched via the OS
149
+ extern NSString *const FBTokenInformationLoginTypeLoginKey;
150
+
151
+ // The key to use with token information dictionaries to get the latest known permissions
152
+ extern NSString *const FBTokenInformationPermissionsKey;
@@ -0,0 +1,136 @@
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
+
19
+ /*
20
+ * Constants defining logging behavior. Use with <[FBSettings setLoggingBehavior]>.
21
+ */
22
+
23
+ /*! Log requests from FBRequest* classes */
24
+ extern NSString *const FBLoggingBehaviorFBRequests;
25
+
26
+ /*! Log requests from FBURLConnection* classes */
27
+ extern NSString *const FBLoggingBehaviorFBURLConnections;
28
+
29
+ /*! Include access token in logging. */
30
+ extern NSString *const FBLoggingBehaviorAccessTokens;
31
+
32
+ /*! Log session state transitions. */
33
+ extern NSString *const FBLoggingBehaviorSessionStateTransitions;
34
+
35
+ /*! Log performance characteristics */
36
+ extern NSString *const FBLoggingBehaviorPerformanceCharacteristics;
37
+
38
+ /*! Log Insights interactions */
39
+ extern NSString *const FBLoggingBehaviorInsights;
40
+
41
+ /*! Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. */
42
+ extern NSString *const FBLoggingBehaviorDeveloperErrors;
43
+
44
+ @class FBGraphObject;
45
+
46
+ /*!
47
+ @typedef
48
+
49
+ @abstract Block type used to get install data that is returned by server when publishInstall is called
50
+ @discussion
51
+ */
52
+ typedef void (^FBInstallResponseDataHandler)(FBGraphObject *response, NSError *error);
53
+
54
+ @interface FBSettings : NSObject
55
+
56
+ /*!
57
+ @method
58
+
59
+ @abstract Retrieve the current Facebook SDK logging behavior.
60
+
61
+ */
62
+ + (NSSet *)loggingBehavior;
63
+
64
+ /*!
65
+ @method
66
+
67
+ @abstract Set the current Facebook SDK logging behavior. This should consist of strings defined as
68
+ constants with FBLogBehavior*, and can be constructed with, e.g., [NSSet initWithObjects:].
69
+
70
+ @param loggingBehavior A set of strings indicating what information should be logged. If nil is provided, the logging
71
+ behavior is reset to the default set of enabled behaviors. Set in an empty set in order to disable all logging.
72
+ */
73
+ + (void)setLoggingBehavior:(NSSet *)loggingBehavior;
74
+
75
+ /*! @abstract Retreive the current auto publish behavior. Defaults to YES. */
76
+ + (BOOL)shouldAutoPublishInstall;
77
+
78
+ /*!
79
+ @method
80
+
81
+ @abstract Sets whether the SDK will automatically publish an install to Facebook during first FBSession init
82
+ or on first network request to Facebook.
83
+
84
+ @param autoPublishInstall If YES, automatically publish the install; if NO, do not.
85
+ */
86
+ + (void)setShouldAutoPublishInstall:(BOOL)autoPublishInstall;
87
+
88
+ // For best results, call this function during app activation.
89
+ /*!
90
+ @method
91
+
92
+ @abstract Manually publish an attributed install to the facebook graph. Calling this method will implicitly
93
+ turn off auto-publish. This method acquires the current attribution id from the facebook application, queries the
94
+ graph API to determine if the application has install attribution enabled, publishes the id, and records
95
+ success to avoid reporting more than once.
96
+
97
+ @param appID A specific appID to publish an install for. If nil, uses [FBSession defaultAppID].
98
+ */
99
+ + (void)publishInstall:(NSString *)appID;
100
+
101
+ /*!
102
+ @method
103
+
104
+ @abstract Manually publish an attributed install to the Facebook graph, and return the server response back in
105
+ the supplied handler. Calling this method will implicitly turn off auto-publish. This method acquires the
106
+ current attribution id from the facebook application, queries the graph API to determine if the application
107
+ has install attribution enabled, publishes the id, and records success to avoid reporting more than once.
108
+
109
+ @param appID A specific appID to publish an install for. If nil, uses [FBSession defaultAppID].
110
+ @param handler A block to call with the server's response.
111
+ */
112
+ + (void)publishInstall:(NSString *)appID
113
+ withHandler:(FBInstallResponseDataHandler)handler;
114
+
115
+ /*!
116
+ @method
117
+
118
+ @abstract Retrieve the Client Token that has been set via [FBSettings setClientToken]
119
+ */
120
+ + (NSString *)clientToken;
121
+
122
+ /*!
123
+ @method
124
+
125
+ @abstract Sets the Client Token for the Facebook App. This is needed for certain API calls when made anonymously,
126
+ without a user-based Session. Calls to FBInsights logging events are examples of this, when there may
127
+ have been no user login established.
128
+
129
+ @param clientToken The Facebook App's "client token", which, for a given appid can be found in the Security
130
+ section of the Advanced tab of the Facebook App settings found at <https://developers.facebook.com/apps/[your-app-id]>
131
+
132
+ */
133
+ + (void)setClientToken:(NSString *)clientToken;
134
+
135
+
136
+ @end
@@ -0,0 +1,135 @@
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 "FBSession.h"
18
+
19
+ #if defined (DEBUG)
20
+ #define SAFE_TO_USE_FBTESTSESSION
21
+ #endif
22
+
23
+ #if !defined(SAFE_TO_USE_FBTESTSESSION)
24
+ #pragma message ("warning: using FBTestSession, which is designed for unit-testing uses only, in non-DEBUG code -- ensure this is what you really want")
25
+ #endif
26
+
27
+ /*!
28
+ Consider using this tag to pass to sessionWithSharedUserWithPermissions:uniqueUserTag: when
29
+ you need a second unique test user in a test case. Using the same tag each time reduces
30
+ the proliferation of test users.
31
+ */
32
+ extern NSString *kSecondTestUserTag;
33
+ /*!
34
+ Consider using this tag to pass to sessionWithSharedUserWithPermissions:uniqueUserTag: when
35
+ you need a third unique test user in a test case. Using the same tag each time reduces
36
+ the proliferation of test users.
37
+ */
38
+ extern NSString *kThirdTestUserTag;
39
+
40
+ /*!
41
+ @class FBTestSession
42
+
43
+ @abstract
44
+ Implements an FBSession subclass that knows about test users for a particular
45
+ application. This should never be used from a real application, but may be useful
46
+ for writing unit tests, etc.
47
+
48
+ @discussion
49
+ Facebook allows developers to create test accounts for testing their applications'
50
+ Facebook integration (see https://developers.facebook.com/docs/test_users/). This class
51
+ simplifies use of these accounts for writing unit tests. It is not designed for use in
52
+ production application code.
53
+
54
+ The main use case for this class is using sessionForUnitTestingWithPermissions:mode:
55
+ to create a session for a test user. Two modes are supported. In "shared" mode, an attempt
56
+ is made to find an existing test user that has the required permissions and, if it is not
57
+ currently in use by another FBTestSession, just use that user. If no such user is available,
58
+ a new one is created with the required permissions. In "private" mode, designed for
59
+ scenarios which require a new user in a known clean state, a new test user will always be
60
+ created, and it will be automatically deleted when the FBTestSession is closed.
61
+
62
+ Note that the shared test user functionality depends on a naming convention for the test users.
63
+ It is important that any testing of functionality which will mutate the permissions for a
64
+ test user NOT use a shared test user, or this scheme will break down. If a shared test user
65
+ seems to be in an invalid state, it can be deleted manually via the Web interface at
66
+ https://developers.facebook.com/apps/APP_ID/permissions?role=test+users.
67
+ */
68
+ @interface FBTestSession : FBSession
69
+
70
+ /// The app access token (composed of app ID and secret) to use for accessing test users.
71
+ @property (readonly, copy) NSString *appAccessToken;
72
+ /// The ID of the test user associated with this session.
73
+ @property (readonly, copy) NSString *testUserID;
74
+ /// The App ID of the test app as configured in the plist.
75
+ @property (readonly, copy) NSString *testAppID;
76
+ /// The App Secret of the test app as configured in the plist.
77
+ @property (readonly, copy) NSString *testAppSecret;
78
+
79
+ /*!
80
+ @abstract
81
+ Constructor helper to create a session for use in unit tests
82
+
83
+ @discussion
84
+ This method creates a session object which uses a shared test user with the right permissions,
85
+ creating one if necessary on open (but not deleting it on close, so it can be re-used in later
86
+ tests). Calling this method multiple times may return sessions with the same user. If this is not
87
+ desired, use the variant sessionWithSharedUserWithPermissions:uniqueUserTag:.
88
+
89
+ This method should not be used in application code -- but is useful for creating unit tests
90
+ that use the Facebook SDK.
91
+
92
+ @param permissions array of strings naming permissions to authorize; nil indicates
93
+ a common default set of permissions should be used for unit testing
94
+ */
95
+ + (id)sessionWithSharedUserWithPermissions:(NSArray*)permissions;
96
+
97
+ /*!
98
+ @abstract
99
+ Constructor helper to create a session for use in unit tests
100
+
101
+ @discussion
102
+ This method creates a session object which uses a shared test user with the right permissions,
103
+ creating one if necessary on open (but not deleting it on close, so it can be re-used in later
104
+ tests).
105
+
106
+ This method should not be used in application code -- but is useful for creating unit tests
107
+ that use the Facebook SDK.
108
+
109
+ @param permissions array of strings naming permissions to authorize; nil indicates
110
+ a common default set of permissions should be used for unit testing
111
+
112
+ @param uniqueUserTag a string which will be used to make this user unique among other
113
+ users with the same permissions. Useful for tests which require two or more users to interact
114
+ with each other, and which therefore must have sessions associated with different users. For
115
+ this case, consider using kSecondTestUserTag and kThirdTestUserTag so these users can be shared
116
+ with other, similar, tests.
117
+ */
118
+ + (id)sessionWithSharedUserWithPermissions:(NSArray*)permissions
119
+ uniqueUserTag:(NSString*)uniqueUserTag;
120
+
121
+ /*!
122
+ @abstract
123
+ Constructor helper to create a session for use in unit tests
124
+
125
+ @discussion
126
+ This method creates a session object which creates a test user on open, and destroys the user on
127
+ close; This method should not be used in application code -- but is useful for creating unit tests
128
+ that use the Facebook SDK.
129
+
130
+ @param permissions array of strings naming permissions to authorize; nil indicates
131
+ a common default set of permissions should be used for unit testing
132
+ */
133
+ + (id)sessionWithPrivateUserWithPermissions:(NSArray*)permissions;
134
+
135
+ @end
@@ -0,0 +1,127 @@
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 "FBViewController.h"
20
+
21
+ /*!
22
+ @protocol
23
+
24
+ @abstract
25
+ The `FBUserSettingsDelegate` protocol defines the methods called by a <FBUserSettingsViewController>.
26
+ */
27
+ @protocol FBUserSettingsDelegate <FBViewControllerDelegate>
28
+
29
+ @optional
30
+
31
+ /*!
32
+ @abstract
33
+ Called when the view controller will log the user out in response to a button press.
34
+
35
+ @param sender The view controller sending the message.
36
+ */
37
+ - (void)loginViewControllerWillLogUserOut:(id)sender;
38
+
39
+ /*!
40
+ @abstract
41
+ Called after the view controller logged the user out in response to a button press.
42
+
43
+ @param sender The view controller sending the message.
44
+ */
45
+ - (void)loginViewControllerDidLogUserOut:(id)sender;
46
+
47
+ /*!
48
+ @abstract
49
+ Called when the view controller will log the user in in response to a button press.
50
+ Note that logging in can fail for a number of reasons, so there is no guarantee that this
51
+ will be followed by a call to loginViewControllerDidLogUserIn:. Callers wanting more granular
52
+ notification of the session state changes can use KVO or the NSNotificationCenter to observe them.
53
+
54
+ @param sender The view controller sending the message.
55
+ */
56
+ - (void)loginViewControllerWillAttemptToLogUserIn:(id)sender;
57
+
58
+ /*!
59
+ @abstract
60
+ Called after the view controller successfully logged the user in in response to a button press.
61
+
62
+ @param sender The view controller sending the message.
63
+ */
64
+ - (void)loginViewControllerDidLogUserIn:(id)sender;
65
+
66
+ /*!
67
+ @abstract
68
+ Called if the view controller encounters an error while trying to log a user in.
69
+
70
+ @param sender The view controller sending the message.
71
+ @param error The error encountered.
72
+ @discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/
73
+ for error handling best practices.
74
+ */
75
+ - (void)loginViewController:(id)sender receivedError:(NSError *)error;
76
+
77
+ @end
78
+
79
+
80
+ /*!
81
+ @class FBUserSettingsViewController
82
+
83
+ @abstract
84
+ The `FBUserSettingsViewController` class provides a user interface exposing a user's
85
+ Facebook-related settings. Currently, this is limited to whether they are logged in or out
86
+ of Facebook.
87
+
88
+ Because of the size of some graphics used in this view, its resources are packaged as a separate
89
+ bundle. In order to use `FBUserSettingsViewController`, drag the `FBUserSettingsViewResources.bundle`
90
+ from the SDK directory into your Xcode project.
91
+ */
92
+ @interface FBUserSettingsViewController : FBViewController
93
+
94
+ /*!
95
+ @abstract
96
+ The permissions to request if the user logs in via this view.
97
+ */
98
+ @property (nonatomic, copy) NSArray *permissions __attribute__((deprecated));
99
+
100
+ /*!
101
+ @abstract
102
+ The read permissions to request if the user logs in via this view.
103
+
104
+ @discussion
105
+ Note, that if read permissions are specified, then publish permissions should not be specified.
106
+ */
107
+ @property (nonatomic, copy) NSArray *readPermissions;
108
+
109
+ /*!
110
+ @abstract
111
+ The publish permissions to request if the user logs in via this view.
112
+
113
+ @discussion
114
+ Note, that a defaultAudience value of FBSessionDefaultAudienceOnlyMe, FBSessionDefaultAudienceEveryone, or
115
+ FBSessionDefaultAudienceFriends should be set if publish permissions are specified. Additionally, when publish
116
+ permissions are specified, then read should not be specified.
117
+ */
118
+ @property (nonatomic, copy) NSArray *publishPermissions;
119
+
120
+ /*!
121
+ @abstract
122
+ The default audience to use, if publish permissions are requested at login time.
123
+ */
124
+ @property (nonatomic, assign) FBSessionDefaultAudience defaultAudience;
125
+
126
+ @end
127
+