motion-firebase 1.0.11 → 2.0.0

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 (251) hide show
  1. data/README.md +1 -1
  2. data/lib/firebase/version.rb +1 -1
  3. metadata +1 -249
  4. data/lib/motion-firebase-facebook.rb +0 -17
  5. data/lib/vendor/FacebookSDK.framework/FacebookSDK +0 -0
  6. data/lib/vendor/FacebookSDK.framework/FacebookSDK.framework.bridgesupport +0 -2646
  7. data/lib/vendor/FacebookSDK.framework/Headers/FBAccessTokenData.h +0 -115
  8. data/lib/vendor/FacebookSDK.framework/Headers/FBCacheDescriptor.h +0 -42
  9. data/lib/vendor/FacebookSDK.framework/Headers/FBError.h +0 -274
  10. data/lib/vendor/FacebookSDK.framework/Headers/FBFrictionlessRecipientCache.h +0 -86
  11. data/lib/vendor/FacebookSDK.framework/Headers/FBFriendPickerViewController.h +0 -290
  12. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphLocation.h +0 -77
  13. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphObject.h +0 -224
  14. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphPlace.h +0 -60
  15. data/lib/vendor/FacebookSDK.framework/Headers/FBGraphUser.h +0 -90
  16. data/lib/vendor/FacebookSDK.framework/Headers/FBInsights.h +0 -271
  17. data/lib/vendor/FacebookSDK.framework/Headers/FBLoginView.h +0 -178
  18. data/lib/vendor/FacebookSDK.framework/Headers/FBNativeDialogs.h +0 -170
  19. data/lib/vendor/FacebookSDK.framework/Headers/FBOpenGraphAction.h +0 -127
  20. data/lib/vendor/FacebookSDK.framework/Headers/FBPlacePickerViewController.h +0 -257
  21. data/lib/vendor/FacebookSDK.framework/Headers/FBProfilePictureView.h +0 -80
  22. data/lib/vendor/FacebookSDK.framework/Headers/FBRequest.h +0 -504
  23. data/lib/vendor/FacebookSDK.framework/Headers/FBRequestConnection.h +0 -389
  24. data/lib/vendor/FacebookSDK.framework/Headers/FBSession.h +0 -751
  25. data/lib/vendor/FacebookSDK.framework/Headers/FBSessionTokenCachingStrategy.h +0 -152
  26. data/lib/vendor/FacebookSDK.framework/Headers/FBSettings.h +0 -136
  27. data/lib/vendor/FacebookSDK.framework/Headers/FBTestSession.h +0 -135
  28. data/lib/vendor/FacebookSDK.framework/Headers/FBUserSettingsViewController.h +0 -127
  29. data/lib/vendor/FacebookSDK.framework/Headers/FBViewController.h +0 -118
  30. data/lib/vendor/FacebookSDK.framework/Headers/FBWebDialogs.h +0 -234
  31. data/lib/vendor/FacebookSDK.framework/Headers/FacebookSDK.h +0 -132
  32. data/lib/vendor/FacebookSDK.framework/Headers/NSError+FBError.h +0 -59
  33. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  34. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  35. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
  36. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
  37. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
  38. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
  39. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
  40. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
  41. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
  42. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
  43. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
  44. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
  45. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
  46. data/lib/vendor/FacebookSDK.framework/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
  47. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  48. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  49. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
  50. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
  51. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
  52. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
  53. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
  54. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
  55. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
  56. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
  57. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
  58. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
  59. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
  60. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
  61. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
  62. data/lib/vendor/FacebookSDK.framework/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
  63. data/lib/vendor/FacebookSDK.framework/Resources/Info.plist +0 -20
  64. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBAccessTokenData.h +0 -115
  65. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBCacheDescriptor.h +0 -42
  66. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBConnect.h +0 -22
  67. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBDialog.h +0 -165
  68. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBError.h +0 -274
  69. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRecipientCache.h +0 -86
  70. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFrictionlessRequestSettings.h +0 -85
  71. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBFriendPickerViewController.h +0 -290
  72. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphLocation.h +0 -77
  73. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphObject.h +0 -224
  74. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphPlace.h +0 -60
  75. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBGraphUser.h +0 -90
  76. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBInsights.h +0 -271
  77. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginDialog.h +0 -48
  78. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBLoginView.h +0 -178
  79. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBNativeDialogs.h +0 -170
  80. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBOpenGraphAction.h +0 -127
  81. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBPlacePickerViewController.h +0 -257
  82. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBProfilePictureView.h +0 -80
  83. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequest.h +0 -504
  84. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBRequestConnection.h +0 -389
  85. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJSON.h +0 -75
  86. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonBase.h +0 -86
  87. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonParser.h +0 -87
  88. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSBJsonWriter.h +0 -129
  89. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSession.h +0 -751
  90. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionManualTokenCachingStrategy.h +0 -32
  91. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSessionTokenCachingStrategy.h +0 -152
  92. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBSettings.h +0 -136
  93. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBTestSession.h +0 -135
  94. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBUserSettingsViewController.h +0 -127
  95. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBViewController.h +0 -118
  96. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FBWebDialogs.h +0 -234
  97. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/Facebook.h +0 -281
  98. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/FacebookSDK.h +0 -132
  99. data/lib/vendor/FacebookSDK.framework/Versions/A/DeprecatedHeaders/NSError+FBError.h +0 -59
  100. data/lib/vendor/FacebookSDK.framework/Versions/A/FacebookSDK +0 -0
  101. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBAccessTokenData.h +0 -115
  102. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBCacheDescriptor.h +0 -42
  103. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBError.h +0 -274
  104. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBFrictionlessRecipientCache.h +0 -86
  105. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBFriendPickerViewController.h +0 -290
  106. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphLocation.h +0 -77
  107. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphObject.h +0 -224
  108. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphPlace.h +0 -60
  109. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBGraphUser.h +0 -90
  110. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBInsights.h +0 -271
  111. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBLoginView.h +0 -178
  112. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBNativeDialogs.h +0 -170
  113. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBOpenGraphAction.h +0 -127
  114. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBPlacePickerViewController.h +0 -257
  115. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBProfilePictureView.h +0 -80
  116. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBRequest.h +0 -504
  117. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBRequestConnection.h +0 -389
  118. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSession.h +0 -751
  119. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSessionTokenCachingStrategy.h +0 -152
  120. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBSettings.h +0 -136
  121. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBTestSession.h +0 -135
  122. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBUserSettingsViewController.h +0 -127
  123. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBViewController.h +0 -118
  124. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FBWebDialogs.h +0 -234
  125. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/FacebookSDK.h +0 -132
  126. data/lib/vendor/FacebookSDK.framework/Versions/A/Headers/NSError+FBError.h +0 -59
  127. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  128. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  129. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
  130. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
  131. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
  132. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
  133. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
  134. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
  135. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
  136. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
  137. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
  138. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
  139. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
  140. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
  141. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  142. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  143. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
  144. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
  145. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
  146. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
  147. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
  148. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
  149. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
  150. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
  151. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
  152. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
  153. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
  154. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
  155. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
  156. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
  157. data/lib/vendor/FacebookSDK.framework/Versions/A/Resources/Info.plist +0 -20
  158. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBAccessTokenData.h +0 -115
  159. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBCacheDescriptor.h +0 -42
  160. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBConnect.h +0 -22
  161. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBDialog.h +0 -165
  162. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBError.h +0 -274
  163. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFrictionlessRecipientCache.h +0 -86
  164. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFrictionlessRequestSettings.h +0 -85
  165. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBFriendPickerViewController.h +0 -290
  166. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphLocation.h +0 -77
  167. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphObject.h +0 -224
  168. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphPlace.h +0 -60
  169. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBGraphUser.h +0 -90
  170. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBInsights.h +0 -271
  171. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBLoginDialog.h +0 -48
  172. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBLoginView.h +0 -178
  173. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBNativeDialogs.h +0 -170
  174. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBOpenGraphAction.h +0 -127
  175. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBPlacePickerViewController.h +0 -257
  176. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBProfilePictureView.h +0 -80
  177. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBRequest.h +0 -504
  178. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBRequestConnection.h +0 -389
  179. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJSON.h +0 -75
  180. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonBase.h +0 -86
  181. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonParser.h +0 -87
  182. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSBJsonWriter.h +0 -129
  183. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSession.h +0 -751
  184. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSessionManualTokenCachingStrategy.h +0 -32
  185. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSessionTokenCachingStrategy.h +0 -152
  186. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBSettings.h +0 -136
  187. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBTestSession.h +0 -135
  188. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBUserSettingsViewController.h +0 -127
  189. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBViewController.h +0 -118
  190. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FBWebDialogs.h +0 -234
  191. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/Facebook.h +0 -281
  192. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/FacebookSDK.h +0 -132
  193. data/lib/vendor/FacebookSDK.framework/Versions/Current/DeprecatedHeaders/NSError+FBError.h +0 -59
  194. data/lib/vendor/FacebookSDK.framework/Versions/Current/FacebookSDK +0 -0
  195. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBAccessTokenData.h +0 -115
  196. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBCacheDescriptor.h +0 -42
  197. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBError.h +0 -274
  198. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBFrictionlessRecipientCache.h +0 -86
  199. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBFriendPickerViewController.h +0 -290
  200. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphLocation.h +0 -77
  201. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphObject.h +0 -224
  202. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphPlace.h +0 -60
  203. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBGraphUser.h +0 -90
  204. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBInsights.h +0 -271
  205. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBLoginView.h +0 -178
  206. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBNativeDialogs.h +0 -170
  207. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBOpenGraphAction.h +0 -127
  208. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBPlacePickerViewController.h +0 -257
  209. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBProfilePictureView.h +0 -80
  210. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBRequest.h +0 -504
  211. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBRequestConnection.h +0 -389
  212. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSession.h +0 -751
  213. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSessionTokenCachingStrategy.h +0 -152
  214. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBSettings.h +0 -136
  215. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBTestSession.h +0 -135
  216. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBUserSettingsViewController.h +0 -127
  217. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBViewController.h +0 -118
  218. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FBWebDialogs.h +0 -234
  219. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/FacebookSDK.h +0 -132
  220. data/lib/vendor/FacebookSDK.framework/Versions/Current/Headers/NSError+FBError.h +0 -59
  221. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  222. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  223. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo.png +0 -0
  224. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png +0 -0
  225. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg +0 -0
  226. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg +0 -0
  227. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg +0 -0
  228. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg +0 -0
  229. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg +0 -0
  230. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg +0 -0
  231. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal.png +0 -0
  232. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png +0 -0
  233. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed.png +0 -0
  234. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png +0 -0
  235. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/Contents/Resources/en.lproj/Localizable.strings +0 -0
  236. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/Contents/Resources/he.lproj/Localizable.strings +0 -0
  237. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/close.png +0 -0
  238. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/close@2x.png +0 -0
  239. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBDialog/images/fbicon.png +0 -0
  240. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBFriendPickerView/images/default.png +0 -0
  241. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/bluetint.png +0 -0
  242. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/f_logo.png +0 -0
  243. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/facebook.png +0 -0
  244. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed.png +0 -0
  245. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small-pressed@2x.png +0 -0
  246. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small.png +0 -0
  247. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBLoginView/images/login-button-small@2x.png +0 -0
  248. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBPlacePickerView/images/fb_generic_place.png +0 -0
  249. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_portrait.png +0 -0
  250. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/FacebookSDKResources.bundle/FBProfilePictureView/images/fb_blank_profile_square.png +0 -0
  251. data/lib/vendor/FacebookSDK.framework/Versions/Current/Resources/Info.plist +0 -20
@@ -1,86 +0,0 @@
1
- /*
2
- Copyright (C) 2009 Stig Brautaset. All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
-
7
- * Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
-
10
- * Redistributions in binary form must reproduce the above copyright notice,
11
- this list of conditions and the following disclaimer in the documentation
12
- and/or other materials provided with the distribution.
13
-
14
- * Neither the name of the author nor the names of its contributors may be used
15
- to endorse or promote products derived from this software without specific
16
- prior written permission.
17
-
18
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
22
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
- */
29
-
30
- #import <Foundation/Foundation.h>
31
-
32
- extern NSString * FBSBJSONErrorDomain;
33
-
34
-
35
- enum {
36
- EUNSUPPORTED = 1,
37
- EPARSENUM,
38
- EPARSE,
39
- EFRAGMENT,
40
- ECTRL,
41
- EUNICODE,
42
- EDEPTH,
43
- EESCAPE,
44
- ETRAILCOMMA,
45
- ETRAILGARBAGE,
46
- EEOF,
47
- EINPUT
48
- };
49
-
50
- /**
51
- @brief Common base class for parsing & writing.
52
-
53
- This class contains the common error-handling code and option between the parser/writer.
54
- */
55
- @interface FBSBJsonBase : NSObject {
56
- NSMutableArray *errorTrace;
57
-
58
- @protected
59
- NSUInteger depth, maxDepth;
60
- }
61
-
62
- /**
63
- @brief The maximum recursing depth.
64
-
65
- Defaults to 512. If the input is nested deeper than this the input will be deemed to be
66
- malicious and the parser returns nil, signalling an error. ("Nested too deep".) You can
67
- turn off this security feature by setting the maxDepth value to 0.
68
- */
69
- @property NSUInteger maxDepth;
70
-
71
- /**
72
- @brief Return an error trace, or nil if there was no errors.
73
-
74
- Note that this method returns the trace of the last method that failed.
75
- You need to check the return value of the call you're making to figure out
76
- if the call actually failed, before you know call this method.
77
- */
78
- @property(copy,readonly) NSArray* errorTrace;
79
-
80
- /// @internal for use in subclasses to add errors to the stack trace
81
- - (void)addErrorWithCode:(NSUInteger)code description:(NSString*)str;
82
-
83
- /// @internal for use in subclasess to clear the error before a new parsing attempt
84
- - (void)clearErrorTrace;
85
-
86
- @end
@@ -1,87 +0,0 @@
1
- /*
2
- Copyright (C) 2009 Stig Brautaset. All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
-
7
- * Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
-
10
- * Redistributions in binary form must reproduce the above copyright notice,
11
- this list of conditions and the following disclaimer in the documentation
12
- and/or other materials provided with the distribution.
13
-
14
- * Neither the name of the author nor the names of its contributors may be used
15
- to endorse or promote products derived from this software without specific
16
- prior written permission.
17
-
18
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
22
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
- */
29
-
30
- #import <Foundation/Foundation.h>
31
- #import "FBSBJsonBase.h"
32
-
33
- /**
34
- @brief Options for the parser class.
35
-
36
- This exists so the SBJSON facade can implement the options in the parser without having to re-declare them.
37
- */
38
- @protocol FBSBJsonParser
39
-
40
- /**
41
- @brief Return the object represented by the given string.
42
-
43
- Returns the object represented by the passed-in string or nil on error. The returned object can be
44
- a string, number, boolean, null, array or dictionary.
45
-
46
- @param repr the json string to parse
47
- */
48
- - (id)objectWithString:(NSString *)repr;
49
-
50
- @end
51
-
52
-
53
- /**
54
- @brief The JSON parser class.
55
-
56
- JSON is mapped to Objective-C types in the following way:
57
-
58
- @li Null -> NSNull
59
- @li String -> NSMutableString
60
- @li Array -> NSMutableArray
61
- @li Object -> NSMutableDictionary
62
- @li Boolean -> NSNumber (initialised with -initWithBool:)
63
- @li Number -> NSDecimalNumber
64
-
65
- Since Objective-C doesn't have a dedicated class for boolean values, these turns into NSNumber
66
- instances. These are initialised with the -initWithBool: method, and
67
- round-trip back to JSON properly. (They won't silently suddenly become 0 or 1; they'll be
68
- represented as 'true' and 'false' again.)
69
-
70
- JSON numbers turn into NSDecimalNumber instances,
71
- as we can thus avoid any loss of precision. (JSON allows ridiculously large numbers.)
72
-
73
- */
74
- @interface FBSBJsonParser : FBSBJsonBase <FBSBJsonParser> {
75
-
76
- @private
77
- const char *c;
78
- }
79
-
80
- @end
81
-
82
- // don't use - exists for backwards compatibility with 2.1.x only. Will be removed in 2.3.
83
- @interface FBSBJsonParser (Private)
84
- - (id)fragmentWithString:(id)repr;
85
- @end
86
-
87
-
@@ -1,129 +0,0 @@
1
- /*
2
- Copyright (C) 2009 Stig Brautaset. All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
-
7
- * Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
-
10
- * Redistributions in binary form must reproduce the above copyright notice,
11
- this list of conditions and the following disclaimer in the documentation
12
- and/or other materials provided with the distribution.
13
-
14
- * Neither the name of the author nor the names of its contributors may be used
15
- to endorse or promote products derived from this software without specific
16
- prior written permission.
17
-
18
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
22
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
- */
29
-
30
- #import <Foundation/Foundation.h>
31
- #import "FBSBJsonBase.h"
32
-
33
- /**
34
- @brief Options for the writer class.
35
-
36
- This exists so the SBJSON facade can implement the options in the writer without having to re-declare them.
37
- */
38
- @protocol FBSBJsonWriter
39
-
40
- /**
41
- @brief Whether we are generating human-readable (multiline) JSON.
42
-
43
- Set whether or not to generate human-readable JSON. The default is NO, which produces
44
- JSON without any whitespace. (Except inside strings.) If set to YES, generates human-readable
45
- JSON with linebreaks after each array value and dictionary key/value pair, indented two
46
- spaces per nesting level.
47
- */
48
- @property BOOL humanReadable;
49
-
50
- /**
51
- @brief Whether or not to sort the dictionary keys in the output.
52
-
53
- If this is set to YES, the dictionary keys in the JSON output will be in sorted order.
54
- (This is useful if you need to compare two structures, for example.) The default is NO.
55
- */
56
- @property BOOL sortKeys;
57
-
58
- /**
59
- @brief Return JSON representation (or fragment) for the given object.
60
-
61
- Returns a string containing JSON representation of the passed in value, or nil on error.
62
- If nil is returned and @p error is not NULL, @p *error can be interrogated to find the cause of the error.
63
-
64
- @param value any instance that can be represented as a JSON fragment
65
-
66
- */
67
- - (NSString*)stringWithObject:(id)value;
68
-
69
- @end
70
-
71
-
72
- /**
73
- @brief The JSON writer class.
74
-
75
- Objective-C types are mapped to JSON types in the following way:
76
-
77
- @li NSNull -> Null
78
- @li NSString -> String
79
- @li NSArray -> Array
80
- @li NSDictionary -> Object
81
- @li NSNumber (-initWithBool:) -> Boolean
82
- @li NSNumber -> Number
83
-
84
- In JSON the keys of an object must be strings. NSDictionary keys need
85
- not be, but attempting to convert an NSDictionary with non-string keys
86
- into JSON will throw an exception.
87
-
88
- NSNumber instances created with the +initWithBool: method are
89
- converted into the JSON boolean "true" and "false" values, and vice
90
- versa. Any other NSNumber instances are converted to a JSON number the
91
- way you would expect.
92
-
93
- */
94
- @interface FBSBJsonWriter : FBSBJsonBase <FBSBJsonWriter> {
95
-
96
- @private
97
- BOOL sortKeys, humanReadable;
98
- }
99
-
100
- @end
101
-
102
- // don't use - exists for backwards compatibility. Will be removed in 2.3.
103
- @interface FBSBJsonWriter (Private)
104
- - (NSString*)stringWithFragment:(id)value;
105
- @end
106
-
107
- /**
108
- @brief Allows generation of JSON for otherwise unsupported classes.
109
-
110
- If you have a custom class that you want to create a JSON representation for you can implement
111
- this method in your class. It should return a representation of your object defined
112
- in terms of objects that can be translated into JSON. For example, a Person
113
- object might implement it like this:
114
-
115
- @code
116
- - (id)jsonProxyObject {
117
- return [NSDictionary dictionaryWithObjectsAndKeys:
118
- name, @"name",
119
- phone, @"phone",
120
- email, @"email",
121
- nil];
122
- }
123
- @endcode
124
-
125
- */
126
- @interface NSObject (SBProxyForJson)
127
- - (id)proxyForJson;
128
- @end
129
-
@@ -1,751 +0,0 @@
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 <Accounts/Accounts.h>
19
-
20
- // up-front decl's
21
- @class FBSession;
22
- @class FBSessionTokenCachingStrategy;
23
- @class FBAccessTokenData;
24
-
25
- #define FB_SESSIONSTATETERMINALBIT (1 << 8)
26
-
27
- #define FB_SESSIONSTATEOPENBIT (1 << 9)
28
-
29
- /*
30
- * Constants used by NSNotificationCenter for active session notification
31
- */
32
-
33
- /*! NSNotificationCenter name indicating that a new active session was set */
34
- extern NSString *const FBSessionDidSetActiveSessionNotification;
35
-
36
- /*! NSNotificationCenter name indicating that an active session was unset */
37
- extern NSString *const FBSessionDidUnsetActiveSessionNotification;
38
-
39
- /*! NSNotificationCenter name indicating that the active session is open */
40
- extern NSString *const FBSessionDidBecomeOpenActiveSessionNotification;
41
-
42
- /*! NSNotificationCenter name indicating that there is no longer an open active session */
43
- extern NSString *const FBSessionDidBecomeClosedActiveSessionNotification;
44
-
45
- /*!
46
- @typedef FBSessionState enum
47
-
48
- @abstract Passed to handler block each time a session state changes
49
-
50
- @discussion
51
- */
52
- typedef enum {
53
- /*! One of two initial states indicating that no valid cached token was found */
54
- FBSessionStateCreated = 0,
55
- /*! One of two initial session states indicating that a cached token was loaded;
56
- when a session is in this state, a call to open* will result in an open session,
57
- without UX or app-switching*/
58
- FBSessionStateCreatedTokenLoaded = 1,
59
- /*! One of three pre-open session states indicating that an attempt to open the session
60
- is underway*/
61
- FBSessionStateCreatedOpening = 2,
62
-
63
- /*! Open session state indicating user has logged in or a cached token is available */
64
- FBSessionStateOpen = 1 | FB_SESSIONSTATEOPENBIT,
65
- /*! Open session state indicating token has been extended */
66
- FBSessionStateOpenTokenExtended = 2 | FB_SESSIONSTATEOPENBIT,
67
-
68
- /*! Closed session state indicating that a login attempt failed */
69
- FBSessionStateClosedLoginFailed = 1 | FB_SESSIONSTATETERMINALBIT, // NSError obj w/more info
70
- /*! Closed session state indicating that the session was closed, but the users token
71
- remains cached on the device for later use */
72
- FBSessionStateClosed = 2 | FB_SESSIONSTATETERMINALBIT, // "
73
- } FBSessionState;
74
-
75
- /*! helper macro to test for states that imply an open session */
76
- #define FB_ISSESSIONOPENWITHSTATE(state) (0 != (state & FB_SESSIONSTATEOPENBIT))
77
-
78
- /*! helper macro to test for states that are terminal */
79
- #define FB_ISSESSIONSTATETERMINAL(state) (0 != (state & FB_SESSIONSTATETERMINALBIT))
80
-
81
- /*!
82
- @typedef FBSessionLoginBehavior enum
83
-
84
- @abstract
85
- Passed to open to indicate whether Facebook Login should allow for fallback to be attempted.
86
-
87
- @discussion
88
- Facebook Login authorizes the application to act on behalf of the user, using the user's
89
- Facebook account. Usually a Facebook Login will rely on an account maintained outside of
90
- the application, by the native Facebook application, the browser, or perhaps the device
91
- itself. This avoids the need for a user to enter their username and password directly, and
92
- provides the most secure and lowest friction way for a user to authorize the application to
93
- interact with Facebook. If a Facebook Login is not possible, a fallback Facebook Login may be
94
- attempted, where the user is prompted to enter their credentials in a web-view hosted directly
95
- by the application.
96
-
97
- The `FBSessionLoginBehavior` enum specifies whether to allow fallback, disallow fallback, or
98
- force fallback login behavior. Most applications will use the default, which attempts a normal
99
- Facebook Login, and only falls back if needed. In rare cases, it may be preferable to disallow
100
- fallback Facebook Login completely, or to force a fallback login.
101
- */
102
- typedef enum {
103
- /*! Attempt Facebook Login, ask user for credentials if necessary */
104
- FBSessionLoginBehaviorWithFallbackToWebView = 0,
105
- /*! Attempt Facebook Login, no direct request for credentials will be made */
106
- FBSessionLoginBehaviorWithNoFallbackToWebView = 1,
107
- /*! Only attempt WebView Login; ask user for credentials */
108
- FBSessionLoginBehaviorForcingWebView = 2,
109
- /*! Attempt Facebook Login, prefering system account and falling back to fast app switch if necessary */
110
- FBSessionLoginBehaviorUseSystemAccountIfPresent = 3,
111
- } FBSessionLoginBehavior;
112
-
113
- /*!
114
- @typedef FBSessionDefaultAudience enum
115
-
116
- @abstract
117
- Passed to open to indicate which default audience to use for sessions that post data to Facebook.
118
-
119
- @discussion
120
- Certain operations such as publishing a status or publishing a photo require an audience. When the user
121
- grants an application permission to perform a publish operation, a default audience is selected as the
122
- publication ceiling for the application. This enumerated value allows the application to select which
123
- audience to ask the user to grant publish permission for.
124
- */
125
- typedef enum {
126
- /*! No audience needed; this value is useful for cases where data will only be read from Facebook */
127
- FBSessionDefaultAudienceNone = 0,
128
- /*! Indicates that only the user is able to see posts made by the application */
129
- FBSessionDefaultAudienceOnlyMe = 10,
130
- /*! Indicates that the user's friends are able to see posts made by the application */
131
- FBSessionDefaultAudienceFriends = 20,
132
- /*! Indicates that all Facebook users are able to see posts made by the application */
133
- FBSessionDefaultAudienceEveryone = 30,
134
- } FBSessionDefaultAudience;
135
-
136
- /*!
137
- @typedef FBSessionLoginType enum
138
-
139
- @abstract
140
- Used as the type of the loginType property in order to specify what underlying technology was used to
141
- login the user.
142
-
143
- @discussion
144
- The FBSession object is an abstraction over five distinct mechanisms. This enum allows an application
145
- to test for the mechanism used by a particular instance of FBSession. Usually the mechanism used for a
146
- given login does not matter, however for certain capabilities, the type of login can impact the behavior
147
- of other Facebook functionality.
148
- */
149
- typedef enum {
150
- /*! A login type has not yet been established */
151
- FBSessionLoginTypeNone = 0,
152
- /*! A system integrated account was used to log the user into the application */
153
- FBSessionLoginTypeSystemAccount = 1,
154
- /*! The Facebook native application was used to log the user into the application */
155
- FBSessionLoginTypeFacebookApplication = 2,
156
- /*! Safari was used to log the user into the application */
157
- FBSessionLoginTypeFacebookViaSafari = 3,
158
- /*! A web view was used to log the user into the application */
159
- FBSessionLoginTypeWebView = 4,
160
- /*! A test user was used to create an open session */
161
- FBSessionLoginTypeTestUser = 5,
162
- } FBSessionLoginType;
163
-
164
- /*!
165
- @typedef
166
-
167
- @abstract Block type used to define blocks called by <FBSession> for state updates
168
- @discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/
169
- for error handling best practices.
170
- */
171
- typedef void (^FBSessionStateHandler)(FBSession *session,
172
- FBSessionState status,
173
- NSError *error);
174
-
175
- /*!
176
- @typedef
177
-
178
- @abstract Block type used to define blocks called by <[FBSession requestNewReadPermissions:completionHandler:]>
179
- and <[FBSession requestNewPublishPermissions:defaultAudience:completionHandler:]>.
180
-
181
- @discussion See https://developers.facebook.com/docs/technical-guides/iossdk/errors/
182
- for error handling best practices.
183
- */
184
- typedef void (^FBSessionRequestPermissionResultHandler)(FBSession *session,
185
- NSError *error);
186
-
187
- /*!
188
- @typedef
189
-
190
- @abstract Block type used to define blocks called by <[FBSession reauthorizeWithPermissions]>.
191
-
192
- @discussion You should use the preferred FBSessionRequestPermissionHandler typedef rather than
193
- this synonym, which has been deprecated.
194
- */
195
- typedef FBSessionRequestPermissionResultHandler FBSessionReauthorizeResultHandler __attribute__((deprecated));
196
-
197
- /*!
198
- @typedef
199
-
200
- @abstract Block type used to define blocks called for system credential renewals.
201
- @discussion
202
- */
203
- typedef void (^FBSessionRenewSystemCredentialsHandler)(ACAccountCredentialRenewResult result, NSError *error) ;
204
-
205
- /*!
206
- @class FBSession
207
-
208
- @abstract
209
- The `FBSession` object is used to authenticate a user and manage the user's session. After
210
- initializing a `FBSession` object the Facebook App ID and desired permissions are stored.
211
- Opening the session will initiate the authentication flow after which a valid user session
212
- should be available and subsequently cached. Closing the session can optionally clear the
213
- cache.
214
-
215
- If an <FBRequest> request requires user authorization then an `FBSession` object should be used.
216
-
217
-
218
- @discussion
219
- Instances of the `FBSession` class provide notification of state changes in the following ways:
220
-
221
- 1. Callers of certain `FBSession` methods may provide a block that will be called
222
- back in the course of state transitions for the session (e.g. login or session closed).
223
-
224
- 2. The object supports Key-Value Observing (KVO) for property changes.
225
- */
226
- @interface FBSession : NSObject
227
-
228
- /*!
229
- @methodgroup Creating a session
230
- */
231
-
232
- /*!
233
- @method
234
-
235
- @abstract
236
- Returns a newly initialized Facebook session with default values for the parameters
237
- to <initWithAppID:permissions:urlSchemeSuffix:tokenCacheStrategy:>.
238
- */
239
- - (id)init;
240
-
241
- /*!
242
- @method
243
-
244
- @abstract
245
- Returns a newly initialized Facebook session with the specified permissions and other
246
- default values for parameters to <initWithAppID:permissions:urlSchemeSuffix:tokenCacheStrategy:>.
247
-
248
- @param permissions An array of strings representing the permissions to request during the
249
- authentication flow. A value of nil indicates basic permissions. The default is nil.
250
-
251
- @discussion
252
- It is required that any single permission request request (including initial log in) represent read-only permissions
253
- or publish permissions only; not both. The permissions passed here should reflect this requirement.
254
-
255
- */
256
- - (id)initWithPermissions:(NSArray*)permissions;
257
-
258
- /*!
259
- @method
260
-
261
- @abstract
262
- Following are the descriptions of the arguments along with their
263
- defaults when ommitted.
264
-
265
- @param permissions An array of strings representing the permissions to request during the
266
- authentication flow. A value of nil indicates basic permissions. The default is nil.
267
- @param appID The Facebook App ID for the session. If nil is passed in the default App ID will be obtained from a call to <[FBSession defaultAppID]>. The default is nil.
268
- @param urlSchemeSuffix The URL Scheme Suffix to be used in scenarious where multiple iOS apps use one Facebook App ID. A value of nil indicates that this information should be pulled from the plist. The default is nil.
269
- @param tokenCachingStrategy Specifies a key name to use for cached token information in NSUserDefaults, nil
270
- indicates a default value of @"FBAccessTokenInformationKey".
271
-
272
- @discussion
273
- It is required that any single permission request request (including initial log in) represent read-only permissions
274
- or publish permissions only; not both. The permissions passed here should reflect this requirement.
275
- */
276
- - (id)initWithAppID:(NSString*)appID
277
- permissions:(NSArray*)permissions
278
- urlSchemeSuffix:(NSString*)urlSchemeSuffix
279
- tokenCacheStrategy:(FBSessionTokenCachingStrategy*)tokenCachingStrategy;
280
-
281
- /*!
282
- @method
283
-
284
- @abstract
285
- Following are the descriptions of the arguments along with their
286
- defaults when ommitted.
287
-
288
- @param permissions An array of strings representing the permissions to request during the
289
- authentication flow. A value of nil indicates basic permissions. The default is nil.
290
- @param defaultAudience Most applications use FBSessionDefaultAudienceNone here, only specifying an audience when using reauthorize to request publish permissions.
291
- @param appID The Facebook App ID for the session. If nil is passed in the default App ID will be obtained from a call to <[FBSession defaultAppID]>. The default is nil.
292
- @param urlSchemeSuffix The URL Scheme Suffix to be used in scenarious where multiple iOS apps use one Facebook App ID. A value of nil indicates that this information should be pulled from the plist. The default is nil.
293
- @param tokenCachingStrategy Specifies a key name to use for cached token information in NSUserDefaults, nil
294
- indicates a default value of @"FBAccessTokenInformationKey".
295
-
296
- @discussion
297
- It is required that any single permission request request (including initial log in) represent read-only permissions
298
- or publish permissions only; not both. The permissions passed here should reflect this requirement. If publish permissions
299
- are used, then the audience must also be specified.
300
- */
301
- - (id)initWithAppID:(NSString*)appID
302
- permissions:(NSArray*)permissions
303
- defaultAudience:(FBSessionDefaultAudience)defaultAudience
304
- urlSchemeSuffix:(NSString*)urlSchemeSuffix
305
- tokenCacheStrategy:(FBSessionTokenCachingStrategy*)tokenCachingStrategy;
306
-
307
- // instance readonly properties
308
-
309
- /*! @abstract Indicates whether the session is open and ready for use. */
310
- @property(readonly) BOOL isOpen;
311
-
312
- /*! @abstract Detailed session state */
313
- @property(readonly) FBSessionState state;
314
-
315
- /*! @abstract Identifies the Facebook app which the session object represents. */
316
- @property(readonly, copy) NSString *appID;
317
-
318
- /*! @abstract Identifies the URL Scheme Suffix used by the session. This is used when multiple iOS apps share a single Facebook app ID. */
319
- @property(readonly, copy) NSString *urlSchemeSuffix;
320
-
321
- /*! @abstract The access token for the session object.
322
- @discussion Deprecated. Use the `accessTokenData` property. */
323
- @property(readonly, copy) NSString *accessToken
324
- __attribute__((deprecated));
325
-
326
- /*! @abstract The expiration date of the access token for the session object.
327
- @discussion Deprecated. Use the `accessTokenData` property. */
328
- @property(readonly, copy) NSDate *expirationDate
329
- __attribute__((deprecated));
330
-
331
- /*! @abstract The permissions granted to the access token during the authentication flow. */
332
- @property(readonly, copy) NSArray *permissions;
333
-
334
- /*! @abstract Specifies the login type used to authenticate the user.
335
- @discussion Deprecated. Use the `accessTokenData` property. */
336
- @property(readonly) FBSessionLoginType loginType
337
- __attribute__((deprecated));
338
-
339
- /*! @abstract Gets the FBAccessTokenData for the session */
340
- @property(readonly, copy) FBAccessTokenData *accessTokenData;
341
-
342
- /*!
343
- @methodgroup Instance methods
344
- */
345
-
346
- /*!
347
- @method
348
-
349
- @abstract Opens a session for the Facebook.
350
-
351
- @discussion
352
- A session may not be used with <FBRequest> and other classes in the SDK until it is open. If, prior
353
- to calling open, the session is in the <FBSessionStateCreatedTokenLoaded> state, then no UX occurs, and
354
- the session becomes available for use. If the session is in the <FBSessionStateCreated> state, prior
355
- to calling open, then a call to open causes login UX to occur, either via the Facebook application
356
- or via mobile Safari.
357
-
358
- Open may be called at most once and must be called after the `FBSession` is initialized. Open must
359
- be called before the session is closed. Calling an open method at an invalid time will result in
360
- an exception. The open session methods may be passed a block that will be called back when the session
361
- state changes. The block will be released when the session is closed.
362
-
363
- @param handler A block to call with the state changes. The default is nil.
364
- */
365
- - (void)openWithCompletionHandler:(FBSessionStateHandler)handler;
366
-
367
- /*!
368
- @method
369
-
370
- @abstract Logs a user on to Facebook.
371
-
372
- @discussion
373
- A session may not be used with <FBRequest> and other classes in the SDK until it is open. If, prior
374
- to calling open, the session is in the <FBSessionStateCreatedTokenLoaded> state, then no UX occurs, and
375
- the session becomes available for use. If the session is in the <FBSessionStateCreated> state, prior
376
- to calling open, then a call to open causes login UX to occur, either via the Facebook application
377
- or via mobile Safari.
378
-
379
- The method may be called at most once and must be called after the `FBSession` is initialized. It must
380
- be called before the session is closed. Calling the method at an invalid time will result in
381
- an exception. The open session methods may be passed a block that will be called back when the session
382
- state changes. The block will be released when the session is closed.
383
-
384
- @param behavior Controls whether to allow, force, or prohibit Facebook Login or Inline Facebook Login. The default
385
- is to allow Facebook Login, with fallback to Inline Facebook Login.
386
- @param handler A block to call with session state changes. The default is nil.
387
- */
388
- - (void)openWithBehavior:(FBSessionLoginBehavior)behavior
389
- completionHandler:(FBSessionStateHandler)handler;
390
-
391
- /*!
392
- @method
393
-
394
- @abstract Imports an existing access token and opens the session with it.
395
-
396
- @discussion
397
- The method attempts to open the session using an existing access token. No UX will occur. If
398
- successful, the session with be in an Open state and the method will return YES; otherwise, NO.
399
-
400
- The method may be called at most once and must be called after the `FBSession` is initialized (see below).
401
- It must be called before the session is closed. Calling the method at an invalid time will result in
402
- an exception. The open session methods may be passed a block that will be called back when the session
403
- state changes. The block will be released when the session is closed.
404
-
405
- The initialized session must not have already been initialized from a cache (for example, you could use
406
- the `[FBSessionTokenCachingStrategy nullCacheInstance]` instance).
407
-
408
- @param accessTokenData The token data. See `FBAccessTokenData` for construction methods.
409
- @param handler A block to call with session state changes. The default is nil.
410
- */
411
- - (BOOL)openFromAccessTokenData:(FBAccessTokenData *)accessTokenData completionHandler:(FBSessionStateHandler) handler;
412
-
413
- /*!
414
- @abstract
415
- Closes the local in-memory session object, but does not clear the persisted token cache.
416
- */
417
- - (void)close;
418
-
419
- /*!
420
- @abstract
421
- Closes the in-memory session, and clears any persisted cache related to the session.
422
- */
423
- - (void)closeAndClearTokenInformation;
424
-
425
- /*!
426
- @abstract
427
- Reauthorizes the session, with additional permissions.
428
-
429
- @param permissions An array of strings representing the permissions to request during the
430
- authentication flow. A value of nil indicates basic permissions. The default is nil.
431
- @param behavior Controls whether to allow, force, or prohibit Facebook Login. The default
432
- is to allow Facebook Login and fall back to Inline Facebook Login if needed.
433
- @param handler A block to call with session state changes. The default is nil.
434
-
435
- @discussion Methods and properties that specify permissions without a read or publish
436
- qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred
437
- (e.g. reauthorizeWithReadPermissions or reauthorizeWithPublishPermissions)
438
- */
439
- - (void)reauthorizeWithPermissions:(NSArray*)permissions
440
- behavior:(FBSessionLoginBehavior)behavior
441
- completionHandler:(FBSessionReauthorizeResultHandler)handler
442
- __attribute__((deprecated));
443
-
444
- /*!
445
- @abstract
446
- Reauthorizes the session, with additional permissions.
447
-
448
- @param readPermissions An array of strings representing the permissions to request during the
449
- authentication flow. A value of nil indicates basic permissions.
450
-
451
- @param handler A block to call with session state changes. The default is nil.
452
-
453
- @discussion This method is a deprecated alias of <[FBSession requestNewReadPermissions:completionHandler:]>. Consider
454
- using <[FBSession requestNewReadPermissions:completionHandler:]>, which is preferred for readability.
455
- */
456
- - (void)reauthorizeWithReadPermissions:(NSArray*)readPermissions
457
- completionHandler:(FBSessionReauthorizeResultHandler)handler
458
- __attribute__((deprecated));
459
-
460
- /*!
461
- @abstract
462
- Reauthorizes the session, with additional permissions.
463
-
464
- @param writePermissions An array of strings representing the permissions to request during the
465
- authentication flow.
466
-
467
- @param defaultAudience Specifies the audience for posts.
468
-
469
- @param handler A block to call with session state changes. The default is nil.
470
-
471
- @discussion This method is a deprecated alias of <[FBSession requestNewPublishPermissions:defaultAudience:completionHandler:]>.
472
- Consider using <[FBSession requestNewPublishPermissions:defaultAudience:completionHandler:]>, which is preferred for readability.
473
- */
474
- - (void)reauthorizeWithPublishPermissions:(NSArray*)writePermissions
475
- defaultAudience:(FBSessionDefaultAudience)defaultAudience
476
- completionHandler:(FBSessionReauthorizeResultHandler)handler
477
- __attribute__((deprecated));
478
-
479
- /*!
480
- @abstract
481
- Requests new or additional read permissions for the session.
482
-
483
- @param readPermissions An array of strings representing the permissions to request during the
484
- authentication flow. A value of nil indicates basic permissions.
485
-
486
- @param handler A block to call with session state changes. The default is nil.
487
-
488
- @discussion The handler, if non-nil, is called once the operation has completed or failed. This is in contrast to the
489
- state completion handler used in <[FBSession openWithCompletionHandler:]> (and other `open*` methods) which is called
490
- for each state-change for the session.
491
- */
492
- - (void)requestNewReadPermissions:(NSArray*)readPermissions
493
- completionHandler:(FBSessionRequestPermissionResultHandler)handler;
494
-
495
- /*!
496
- @abstract
497
- Requests new or additional write permissions for the session.
498
-
499
- @param writePermissions An array of strings representing the permissions to request during the
500
- authentication flow.
501
-
502
- @param defaultAudience Specifies the audience for posts.
503
-
504
- @param handler A block to call with session state changes. The default is nil.
505
-
506
- @discussion The handler, if non-nil, is called once the operation has completed or failed. This is in contrast to the
507
- state completion handler used in <[FBSession openWithCompletionHandler:]> (and other `open*` methods) which is called
508
- for each state-change for the session.
509
- */
510
- - (void)requestNewPublishPermissions:(NSArray*)writePermissions
511
- defaultAudience:(FBSessionDefaultAudience)defaultAudience
512
- completionHandler:(FBSessionRequestPermissionResultHandler)handler;
513
-
514
- /*!
515
- @abstract
516
- A helper method that is used to provide an implementation for
517
- [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. It should be invoked during
518
- the Facebook Login flow and will update the session information based on the incoming URL.
519
-
520
- @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:].
521
- */
522
- - (BOOL)handleOpenURL:(NSURL*)url;
523
-
524
- /*!
525
- @abstract
526
- A helper method that is used to provide an implementation for
527
- [UIApplicationDelegate applicationDidBecomeActive:] to properly resolve session state for
528
- the Facebook Login flow, specifically to support app-switch login.
529
- */
530
- - (void)handleDidBecomeActive;
531
-
532
- /*!
533
- @methodgroup Class methods
534
- */
535
-
536
- /*!
537
- @abstract
538
- This is the simplest method for opening a session with Facebook. Using sessionOpen logs on a user,
539
- and sets the static activeSession which becomes the default session object for any Facebook UI widgets
540
- used by the application. This session becomes the active session, whether open succeeds or fails.
541
-
542
- Note, if there is not a cached token available, this method will present UI to the user in order to
543
- open the session via explicit login by the user.
544
-
545
- @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if
546
- no login UI will be required to accomplish the operation. For example, at application startup it may not
547
- be disirable to transition to login UI for the user, and yet an open session is desired so long as a cached
548
- token can be used to open the session. Passing NO to this argument, assures the method will not present UI
549
- to the user in order to open the session.
550
-
551
- @discussion
552
- Returns YES if the session was opened synchronously without presenting UI to the user. This occurs
553
- when there is a cached token available from a previous run of the application. If NO is returned, this indicates
554
- that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is
555
- possible that the user will login, and the session will become open asynchronously. The primary use for
556
- this return value is to switch-on facebook capabilities in your UX upon startup, in the case were the session
557
- is opened via cache.
558
- */
559
- + (BOOL)openActiveSessionWithAllowLoginUI:(BOOL)allowLoginUI;
560
-
561
- /*!
562
- @abstract
563
- This is a simple method for opening a session with Facebook. Using sessionOpen logs on a user,
564
- and sets the static activeSession which becomes the default session object for any Facebook UI widgets
565
- used by the application. This session becomes the active session, whether open succeeds or fails.
566
-
567
- @param permissions An array of strings representing the permissions to request during the
568
- authentication flow. A value of nil indicates basic permissions. A nil value specifies
569
- default permissions.
570
-
571
- @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if
572
- no login UI will be required to accomplish the operation. For example, at application startup it may not
573
- be desirable to transition to login UI for the user, and yet an open session is desired so long as a cached
574
- token can be used to open the session. Passing NO to this argument, assures the method will not present UI
575
- to the user in order to open the session.
576
-
577
- @param handler Many applications will benefit from notification when a session becomes invalid
578
- or undergoes other state transitions. If a block is provided, the FBSession
579
- object will call the block each time the session changes state.
580
-
581
- @discussion
582
- Returns true if the session was opened synchronously without presenting UI to the user. This occurs
583
- when there is a cached token available from a previous run of the application. If NO is returned, this indicates
584
- that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is
585
- possible that the user will login, and the session will become open asynchronously. The primary use for
586
- this return value is to switch-on facebook capabilities in your UX upon startup, in the case were the session
587
- is opened via cache.
588
-
589
- It is required that initial permissions requests represent read-only permissions only. If publish
590
- permissions are needed, you may use reauthorizeWithPermissions to specify additional permissions as
591
- well as an audience. Use of this method will result in a legacy fast-app-switch Facebook Login due to
592
- the requirement to seperate read and publish permissions for newer applications. Methods and properties
593
- that specify permissions without a read or publish qualification are deprecated; use of a read-qualified
594
- or publish-qualified alternative is preferred.
595
- */
596
- + (BOOL)openActiveSessionWithPermissions:(NSArray*)permissions
597
- allowLoginUI:(BOOL)allowLoginUI
598
- completionHandler:(FBSessionStateHandler)handler
599
- __attribute__((deprecated));
600
-
601
- /*!
602
- @abstract
603
- This is a simple method for opening a session with Facebook. Using sessionOpen logs on a user,
604
- and sets the static activeSession which becomes the default session object for any Facebook UI widgets
605
- used by the application. This session becomes the active session, whether open succeeds or fails.
606
-
607
- @param readPermissions An array of strings representing the read permissions to request during the
608
- authentication flow. A value of nil indicates basic permissions. It is not allowed to pass publish
609
- permissions to this method.
610
-
611
- @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if
612
- no login UI will be required to accomplish the operation. For example, at application startup it may not
613
- be desirable to transition to login UI for the user, and yet an open session is desired so long as a cached
614
- token can be used to open the session. Passing NO to this argument, assures the method will not present UI
615
- to the user in order to open the session.
616
-
617
- @param handler Many applications will benefit from notification when a session becomes invalid
618
- or undergoes other state transitions. If a block is provided, the FBSession
619
- object will call the block each time the session changes state.
620
-
621
- @discussion
622
- Returns true if the session was opened synchronously without presenting UI to the user. This occurs
623
- when there is a cached token available from a previous run of the application. If NO is returned, this indicates
624
- that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is
625
- possible that the user will login, and the session will become open asynchronously. The primary use for
626
- this return value is to switch-on facebook capabilities in your UX upon startup, in the case were the session
627
- is opened via cache.
628
-
629
- */
630
- + (BOOL)openActiveSessionWithReadPermissions:(NSArray*)readPermissions
631
- allowLoginUI:(BOOL)allowLoginUI
632
- completionHandler:(FBSessionStateHandler)handler;
633
-
634
- /*!
635
- @abstract
636
- This is a simple method for opening a session with Facebook. Using sessionOpen logs on a user,
637
- and sets the static activeSession which becomes the default session object for any Facebook UI widgets
638
- used by the application. This session becomes the active session, whether open succeeds or fails.
639
-
640
- @param publishPermissions An array of strings representing the publish permissions to request during the
641
- authentication flow.
642
-
643
- @param defaultAudience Anytime an app publishes on behalf of a user, the post must have an audience (e.g. me, my friends, etc.)
644
- The default audience is used to notify the user of the cieling that the user agrees to grant to the app for the provided permissions.
645
-
646
- @param allowLoginUI Sometimes it is useful to attempt to open a session, but only if
647
- no login UI will be required to accomplish the operation. For example, at application startup it may not
648
- be desirable to transition to login UI for the user, and yet an open session is desired so long as a cached
649
- token can be used to open the session. Passing NO to this argument, assures the method will not present UI
650
- to the user in order to open the session.
651
-
652
- @param handler Many applications will benefit from notification when a session becomes invalid
653
- or undergoes other state transitions. If a block is provided, the FBSession
654
- object will call the block each time the session changes state.
655
-
656
- @discussion
657
- Returns true if the session was opened synchronously without presenting UI to the user. This occurs
658
- when there is a cached token available from a previous run of the application. If NO is returned, this indicates
659
- that the session was not immediately opened, via cache. However, if YES was passed as allowLoginUI, then it is
660
- possible that the user will login, and the session will become open asynchronously. The primary use for
661
- this return value is to switch-on facebook capabilities in your UX upon startup, in the case were the session
662
- is opened via cache.
663
-
664
- */
665
- + (BOOL)openActiveSessionWithPublishPermissions:(NSArray*)publishPermissions
666
- defaultAudience:(FBSessionDefaultAudience)defaultAudience
667
- allowLoginUI:(BOOL)allowLoginUI
668
- completionHandler:(FBSessionStateHandler)handler;
669
-
670
- /*!
671
- @abstract
672
- An application may get or set the current active session. Certain high-level components in the SDK
673
- will use the activeSession to set default session (e.g. `FBLoginView`, `FBFriendPickerViewController`)
674
-
675
- @discussion
676
- If sessionOpen* is called, the resulting `FBSession` object also becomes the activeSession. If another
677
- session was active at the time, it is closed automatically. If activeSession is called when no session
678
- is active, a session object is instatiated and returned; in this case open must be called on the session
679
- in order for it to be useable for communication with Facebook.
680
- */
681
- + (FBSession*)activeSession;
682
-
683
- /*!
684
- @abstract
685
- An application may get or set the current active session. Certain high-level components in the SDK
686
- will use the activeSession to set default session (e.g. `FBLoginView`, `FBFriendPickerViewController`)
687
-
688
- @param session The FBSession object to become the active session
689
-
690
- @discussion
691
- If an application prefers the flexibilility of directly instantiating a session object, an active
692
- session can be set directly.
693
- */
694
- + (FBSession*)setActiveSession:(FBSession*)session;
695
-
696
- /*!
697
- @method
698
-
699
- @abstract Set the default Facebook App ID to use for sessions. The app ID may be
700
- overridden on a per session basis.
701
-
702
- @param appID The default Facebook App ID to use for <FBSession> methods.
703
- */
704
- + (void)setDefaultAppID:(NSString*)appID;
705
-
706
- /*!
707
- @method
708
-
709
- @abstract Get the default Facebook App ID to use for sessions. If not explicitly
710
- set, the default will be read from the application's plist. The app ID may be
711
- overridden on a per session basis.
712
- */
713
- + (NSString*)defaultAppID;
714
-
715
- /*!
716
- @method
717
-
718
- @abstract Set the default url scheme suffix to use for sessions. The url
719
- scheme suffix may be overridden on a per session basis.
720
-
721
- @param urlSchemeSuffix The default url scheme suffix to use for <FBSession> methods.
722
- */
723
- + (void)setDefaultUrlSchemeSuffix:(NSString*)urlSchemeSuffix;
724
-
725
- /*!
726
- @method
727
-
728
- @abstract Get the default url scheme suffix used for sessions. If not
729
- explicitly set, the default will be read from the application's plist. The
730
- url scheme suffix may be overridden on a per session basis.
731
- */
732
- + (NSString*)defaultUrlSchemeSuffix;
733
-
734
- /*!
735
- @method
736
-
737
- @abstract Issues an asychronous renewCredentialsForAccount call to the device Facebook account store.
738
-
739
- @param handler The completion handler to call when the renewal is completed. The handler will be
740
- invoked on the main thread.
741
-
742
- @discussion This can be used to explicitly renew account credentials on iOS 6 devices and is provided
743
- as a convenience wrapper around `[ACAccountStore renewCredentialsForAccount:completion]`. Note the
744
- method will not issue the renewal call if the the Facebook account has not been set on the device, or
745
- if access had not been granted to the account (though the handler wil receive an error).
746
-
747
- This is safe to call (and will surface an error to the handler) on versions of iOS before 6 or if the user
748
- logged in via Safari or Facebook SSO.
749
- */
750
- + (void)renewSystemCredentials:(FBSessionRenewSystemCredentialsHandler)handler;
751
- @end