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,504 @@
1
+ /*
2
+ * Copyright 2012 Facebook
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ #import <Foundation/Foundation.h>
18
+ #import <CoreLocation/CoreLocation.h>
19
+ #import "FBRequestConnection.h"
20
+ #import "FBGraphObject.h"
21
+
22
+ /*! The base URL used for graph requests */
23
+ extern NSString* const FBGraphBasePath;
24
+
25
+ // up-front decl's
26
+ @protocol FBRequestDelegate;
27
+ @class FBSession;
28
+ @class UIImage;
29
+
30
+ /*!
31
+ @typedef FBRequestState
32
+
33
+ @abstract
34
+ Deprecated - do not use in new code.
35
+
36
+ @discussion
37
+ FBRequestState is retained from earlier versions of the SDK to give existing
38
+ apps time to remove dependency on this.
39
+
40
+ @deprecated
41
+ */
42
+ typedef NSUInteger FBRequestState __attribute__((deprecated));
43
+
44
+ /*!
45
+ @class FBRequest
46
+
47
+ @abstract
48
+ The `FBRequest` object is used to setup and manage requests to Facebook Graph
49
+ and REST APIs. This class provides helper methods that simplify the connection
50
+ and response handling.
51
+
52
+ @discussion
53
+ An <FBSession> object is required for all authenticated uses of `FBRequest`.
54
+ Requests that do not require an unauthenticated user are also supported and
55
+ do not require an <FBSession> object to be passed in.
56
+
57
+ An instance of `FBRequest` represents the arguments and setup for a connection
58
+ to Facebook. After creating an `FBRequest` object it can be used to setup a
59
+ connection to Facebook through the <FBRequestConnection> object. The
60
+ <FBRequestConnection> object is created to manage a single connection. To
61
+ cancel a connection use the instance method in the <FBRequestConnection> class.
62
+
63
+ An `FBRequest` object may be reused to issue multiple connections to Facebook.
64
+ However each <FBRequestConnection> instance will manage one connection.
65
+
66
+ Class and instance methods prefixed with **start* ** can be used to perform the
67
+ request setup and initiate the connection in a single call.
68
+
69
+ */
70
+ @interface FBRequest : NSObject {
71
+ @private
72
+ id<FBRequestDelegate> _delegate;
73
+ NSString* _url;
74
+ NSURLConnection* _connection;
75
+ NSMutableData* _responseText;
76
+ #pragma GCC diagnostic push
77
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
78
+ FBRequestState _state;
79
+ #pragma GCC diagnostic pop
80
+ NSError* _error;
81
+ BOOL _sessionDidExpire;
82
+ id<FBGraphObject> _graphObject;
83
+ }
84
+
85
+ /*!
86
+ @methodgroup Creating a request
87
+
88
+ @method
89
+ Calls <initWithSession:graphPath:parameters:HTTPMethod:> with the default parameters.
90
+ */
91
+ - (id)init;
92
+
93
+ /*!
94
+ @method
95
+ Calls <initWithSession:graphPath:parameters:HTTPMethod:> with default parameters
96
+ except for the ones provided to this method.
97
+
98
+ @param session The session object representing the identity of the Facebook user making
99
+ the request. A nil value indicates a request that requires no token; to
100
+ use the active session pass `[FBSession activeSession]`.
101
+
102
+ @param graphPath The Graph API endpoint to use for the request, for example "me".
103
+ */
104
+ - (id)initWithSession:(FBSession*)session
105
+ graphPath:(NSString *)graphPath;
106
+
107
+ /*!
108
+ @method
109
+
110
+ @abstract
111
+ Initializes an `FBRequest` object for a Graph API request call.
112
+
113
+ @discussion
114
+ Note that this only sets properties on the `FBRequest` object.
115
+
116
+ To send the request, initialize an <FBRequestConnection> object, add this request,
117
+ and send <[FBRequestConnection start]>. See other methods on this
118
+ class for shortcuts to simplify this process.
119
+
120
+ @param session The session object representing the identity of the Facebook user making
121
+ the request. A nil value indicates a request that requires no token; to
122
+ use the active session pass `[FBSession activeSession]`.
123
+
124
+ @param graphPath The Graph API endpoint to use for the request, for example "me".
125
+
126
+ @param parameters The parameters for the request. A value of nil sends only the automatically handled
127
+ parameters, for example, the access token. The default is nil.
128
+
129
+ @param HTTPMethod The HTTP method to use for the request. The default is value of nil implies a GET.
130
+ */
131
+ - (id)initWithSession:(FBSession*)session
132
+ graphPath:(NSString *)graphPath
133
+ parameters:(NSDictionary *)parameters
134
+ HTTPMethod:(NSString *)HTTPMethod;
135
+
136
+ /*!
137
+ @method
138
+ @abstract
139
+ Initialize a `FBRequest` object that will do a graph request.
140
+
141
+ @discussion
142
+ Note that this only sets properties on the `FBRequest`.
143
+
144
+ To send the request, initialize a <FBRequestConnection>, add this request,
145
+ and send <[FBRequestConnection start]>. See other methods on this
146
+ class for shortcuts to simplify this process.
147
+
148
+ @param session The session object representing the identity of the Facebook user making
149
+ the request. A nil value indicates a request that requires no token; to
150
+ use the active session pass `[FBSession activeSession]`.
151
+
152
+ @param graphPath The Graph API endpoint to use for the request, for example "me".
153
+
154
+ @param graphObject An object or open graph action to post.
155
+ */
156
+ - (id)initForPostWithSession:(FBSession*)session
157
+ graphPath:(NSString *)graphPath
158
+ graphObject:(id<FBGraphObject>)graphObject;
159
+
160
+ /*!
161
+ @method
162
+ @abstract
163
+ Initialize a `FBRequest` object that will do a rest API request.
164
+
165
+ @discussion
166
+ Prefer to use graph requests instead of this where possible.
167
+
168
+ Note that this only sets properties on the `FBRequest`.
169
+
170
+ To send the request, initialize a <FBRequestConnection>, add this request,
171
+ and send <[FBRequestConnection start]>. See other methods on this
172
+ class for shortcuts to simplify this process.
173
+
174
+ @param session The session object representing the identity of the Facebook user making
175
+ the request. A nil value indicates a request that requires no token; to
176
+ use the active session pass `[FBSession activeSession]`.
177
+
178
+ @param restMethod A valid REST API method.
179
+
180
+ @param parameters The parameters for the request. A value of nil sends only the automatically handled
181
+ parameters, for example, the access token. The default is nil.
182
+
183
+ @param HTTPMethod The HTTP method to use for the request. The default is value of nil implies a GET.
184
+
185
+ */
186
+ - (id)initWithSession:(FBSession*)session
187
+ restMethod:(NSString *)restMethod
188
+ parameters:(NSDictionary *)parameters
189
+ HTTPMethod:(NSString *)HTTPMethod;
190
+
191
+ /*!
192
+ @abstract
193
+ The parameters for the request.
194
+
195
+ @discussion
196
+ May be used to read the parameters that were automatically set during
197
+ the object initiliazation. Make any required modifications prior to
198
+ sending the request.
199
+
200
+ `NSString` parameters are used to generate URL parameter values or JSON
201
+ parameters. `NSData` and `UIImage` parameters are added as attachments
202
+ to the HTTP body and referenced by name in the URL and/or JSON.
203
+ */
204
+ @property(nonatomic, retain, readonly) NSMutableDictionary *parameters;
205
+
206
+ /*!
207
+ @abstract
208
+ The <FBSession> session object to use for the request.
209
+
210
+ @discussion
211
+ May be used to read the session that was automatically set during
212
+ the object initiliazation. Make any required modifications prior to
213
+ sending the request.
214
+ */
215
+ @property(nonatomic, retain) FBSession *session;
216
+
217
+ /*!
218
+ @abstract
219
+ The Graph API endpoint to use for the request, for example "me".
220
+
221
+ @discussion
222
+ May be used to read the Graph API endpoint that was automatically set during
223
+ the object initiliazation. Make any required modifications prior to
224
+ sending the request.
225
+ */
226
+ @property(nonatomic, copy) NSString *graphPath;
227
+
228
+ /*!
229
+ @abstract
230
+ A valid REST API method.
231
+
232
+ @discussion
233
+ May be used to read the REST method that was automatically set during
234
+ the object initiliazation. Make any required modifications prior to
235
+ sending the request.
236
+
237
+ Use the Graph API equivalent of the API if it exists as the REST API
238
+ method is deprecated if there is a Graph API equivalent.
239
+ */
240
+ @property(nonatomic, copy) NSString *restMethod;
241
+
242
+ /*!
243
+ @abstract
244
+ The HTTPMethod to use for the request, for example "GET" or "POST".
245
+
246
+ @discussion
247
+ May be used to read the HTTP method that was automatically set during
248
+ the object initiliazation. Make any required modifications prior to
249
+ sending the request.
250
+ */
251
+ @property(nonatomic, copy) NSString *HTTPMethod;
252
+
253
+ /*!
254
+ @abstract
255
+ The graph object to post with the request.
256
+
257
+ @discussion
258
+ May be used to read the graph object that was automatically set during
259
+ the object initiliazation. Make any required modifications prior to
260
+ sending the request.
261
+ */
262
+ @property(nonatomic, retain) id<FBGraphObject> graphObject;
263
+
264
+ /*!
265
+ @methodgroup Instance methods
266
+ */
267
+
268
+ /*!
269
+ @method
270
+
271
+ @abstract
272
+ Starts a connection to the Facebook API.
273
+
274
+ @discussion
275
+ This is used to start an API call to Facebook and call the block when the
276
+ request completes with a success, error, or cancel.
277
+
278
+ @param handler The handler block to call when the request completes with a success, error, or cancel action.
279
+ */
280
+ - (FBRequestConnection*)startWithCompletionHandler:(FBRequestHandler)handler;
281
+
282
+ /*!
283
+ @methodgroup FBRequestConnection start methods
284
+
285
+ @abstract
286
+ These methods start an <FBRequestConnection>.
287
+
288
+ @discussion
289
+ These methods simplify the process of preparing a request and starting
290
+ the connection. The methods handle initializing an `FBRequest` object,
291
+ initializing a <FBRequestConnection> object, adding the `FBRequest`
292
+ object to the to the <FBRequestConnection>, and finally starting the
293
+ connection.
294
+ */
295
+
296
+ /*!
297
+ @methodgroup FBRequest factory methods
298
+
299
+ @abstract
300
+ These methods initialize a `FBRequest` for common scenarios.
301
+
302
+ @discussion
303
+ These simplify the process of preparing a request to send. These
304
+ initialize a `FBRequest` based on strongly typed parameters that are
305
+ specific to the scenario.
306
+
307
+ These method do not initialize an <FBRequestConnection> object. To initiate the API
308
+ call first instantiate an <FBRequestConnection> object, add the request to this object,
309
+ then call the `start` method on the connection instance.
310
+ */
311
+
312
+ // request*
313
+ //
314
+ // Summary:
315
+ // Helper methods used to create common request objects which can be used to create single or batch connections
316
+ //
317
+ // session: - the session object representing the identity of the
318
+ // Facebook user making the request; nil implies an
319
+ // unauthenticated request; default=nil
320
+
321
+ /*!
322
+ @method
323
+
324
+ @abstract
325
+ Creates a request representing a Graph API call to the "me" endpoint, using the active session.
326
+
327
+ @discussion
328
+ Simplifies preparing a request to retrieve the user's identity.
329
+
330
+ This method does not initialize an <FBRequestConnection> object. To initiate the API
331
+ call first instantiate an <FBRequestConnection> object, add the request to this object,
332
+ then call the `start` method on the connection instance.
333
+
334
+ A successful Graph API call will return an <FBGraphUser> object representing the
335
+ user's identity.
336
+
337
+ Note you may change the session property after construction if a session other than
338
+ the active session is preferred.
339
+ */
340
+ + (FBRequest*)requestForMe;
341
+
342
+ /*!
343
+ @method
344
+
345
+ @abstract
346
+ Creates a request representing a Graph API call to the "me/friends" endpoint using the active session.
347
+
348
+ @discussion
349
+ Simplifies preparing a request to retrieve the user's friends.
350
+
351
+ This method does not initialize an <FBRequestConnection> object. To initiate the API
352
+ call first instantiate an <FBRequestConnection> object, add the request to this object,
353
+ then call the `start` method on the connection instance.
354
+
355
+ A successful Graph API call will return an array of <FBGraphUser> objects representing the
356
+ user's friends.
357
+ */
358
+ + (FBRequest*)requestForMyFriends;
359
+
360
+ /*!
361
+ @method
362
+
363
+ @abstract
364
+ Creates a request representing a Graph API call to upload a photo to the app's album using the active session.
365
+
366
+ @discussion
367
+ Simplifies preparing a request to post a photo.
368
+
369
+ To post a photo to a specific album, get the `FBRequest` returned from this method
370
+ call, then modify the request parameters by adding the album ID to an "album" key.
371
+
372
+ This method does not initialize an <FBRequestConnection> object. To initiate the API
373
+ call first instantiate an <FBRequestConnection> object, add the request to this object,
374
+ then call the `start` method on the connection instance.
375
+
376
+ @param photo A `UIImage` for the photo to upload.
377
+ */
378
+ + (FBRequest*)requestForUploadPhoto:(UIImage *)photo;
379
+
380
+ /*!
381
+ @method
382
+
383
+ @abstract
384
+ Creates a request representing a status update.
385
+
386
+ @discussion
387
+ Simplifies preparing a request to post a status update.
388
+
389
+ This method does not initialize an <FBRequestConnection> object. To initiate the API
390
+ call first instantiate an <FBRequestConnection> object, add the request to this object,
391
+ then call the `start` method on the connection instance.
392
+
393
+ @param message The message to post.
394
+ */
395
+ + (FBRequest *)requestForPostStatusUpdate:(NSString *)message;
396
+
397
+ /*!
398
+ @method
399
+
400
+ @abstract
401
+ Creates a request representing a status update.
402
+
403
+ @discussion
404
+ Simplifies preparing a request to post a status update.
405
+
406
+ This method does not initialize an <FBRequestConnection> object. To initiate the API
407
+ call first instantiate an <FBRequestConnection> object, add the request to this object,
408
+ then call the `start` method on the connection instance.
409
+
410
+ @param message The message to post.
411
+ @param place The place to checkin with, or nil. Place may be an fbid or a
412
+ graph object representing a place.
413
+ @param tags Array of friends to tag in the status update, each element
414
+ may be an fbid or a graph object representing a user.
415
+ */
416
+ + (FBRequest *)requestForPostStatusUpdate:(NSString *)message
417
+ place:(id)place
418
+ tags:(id<NSFastEnumeration>)tags;
419
+
420
+ /*!
421
+ @method
422
+
423
+ @abstract
424
+ Creates a request representing a Graph API call to the "search" endpoint
425
+ for a given location using the active session.
426
+
427
+ @discussion
428
+ Simplifies preparing a request to search for places near a coordinate.
429
+
430
+ This method does not initialize an <FBRequestConnection> object. To initiate the API
431
+ call first instantiate an <FBRequestConnection> object, add the request to this object,
432
+ then call the `start` method on the connection instance.
433
+
434
+ A successful Graph API call will return an array of <FBGraphPlace> objects representing
435
+ the nearby locations.
436
+
437
+ @param coordinate The search coordinates.
438
+
439
+ @param radius The search radius in meters.
440
+
441
+ @param limit The maxiumum number of results to return. It is
442
+ possible to receive fewer than this because of the radius and because of server limits.
443
+
444
+ @param searchText The text to use in the query to narrow the set of places
445
+ returned.
446
+ */
447
+ + (FBRequest*)requestForPlacesSearchAtCoordinate:(CLLocationCoordinate2D)coordinate
448
+ radiusInMeters:(NSInteger)radius
449
+ resultsLimit:(NSInteger)limit
450
+ searchText:(NSString*)searchText;
451
+
452
+ /*!
453
+ @method
454
+
455
+ @abstract
456
+ Returns a newly initialized request object that can be used to make a Graph API call for the active session.
457
+
458
+ @discussion
459
+ This method simplifies the preparation of a Graph API call.
460
+
461
+ This method does not initialize an <FBRequestConnection> object. To initiate the API
462
+ call first instantiate an <FBRequestConnection> object, add the request to this object,
463
+ then call the `start` method on the connection instance.
464
+
465
+ @param graphPath The Graph API endpoint to use for the request, for example "me".
466
+ */
467
+ + (FBRequest*)requestForGraphPath:(NSString*)graphPath;
468
+
469
+ /*!
470
+ @method
471
+
472
+ @abstract
473
+ Creates a request representing a POST for a graph object.
474
+
475
+ @param graphPath The Graph API endpoint to use for the request, for example "me".
476
+
477
+ @param graphObject An object or open graph action to post.
478
+ */
479
+ + (FBRequest*)requestForPostWithGraphPath:(NSString*)graphPath
480
+ graphObject:(id<FBGraphObject>)graphObject;
481
+
482
+ /*!
483
+ @method
484
+
485
+ @abstract
486
+ Returns a newly initialized request object that can be used to make a Graph API call for the active session.
487
+
488
+ @discussion
489
+ This method simplifies the preparation of a Graph API call.
490
+
491
+ This method does not initialize an <FBRequestConnection> object. To initiate the API
492
+ call first instantiate an <FBRequestConnection> object, add the request to this object,
493
+ then call the `start` method on the connection instance.
494
+
495
+ @param graphPath The Graph API endpoint to use for the request, for example "me".
496
+
497
+ @param parameters The parameters for the request. A value of nil sends only the automatically handled parameters, for example, the access token. The default is nil.
498
+
499
+ @param HTTPMethod The HTTP method to use for the request. A nil value implies a GET.
500
+ */
501
+ + (FBRequest*)requestWithGraphPath:(NSString*)graphPath
502
+ parameters:(NSDictionary*)parameters
503
+ HTTPMethod:(NSString*)HTTPMethod;
504
+ @end