20
20
21
21
NS_ASSUME_NONNULL_BEGIN
22
22
23
- /* !
24
- The `PFFacebookUtils` class provides utility functions for using Facebook authentication with < PFUser> s.
23
+ /* *
24
+ The `PFFacebookUtils` class provides utility functions for using Facebook authentication with ` PFUser` s.
25
25
26
26
@warning This class supports official Facebook iOS SDK v4.0+ and is available only on iOS.
27
27
*/
@@ -31,10 +31,10 @@ NS_ASSUME_NONNULL_BEGIN
31
31
// / @name Interacting With Facebook
32
32
// /--------------------------------------
33
33
34
- /* !
35
- @abstract Initializes Parse Facebook Utils.
34
+ /* *
35
+ Initializes Parse Facebook Utils.
36
36
37
- @discussion You must provide your Facebook application ID as the value for FacebookAppID in your bundle's plist file
37
+ You must provide your Facebook application ID as the value for FacebookAppID in your bundle's plist file
38
38
as described here: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/
39
39
40
40
@warning You must invoke this in order to use the Facebook functionality in Parse.
@@ -43,35 +43,35 @@ NS_ASSUME_NONNULL_BEGIN
43
43
*/
44
44
+ (void )initializeFacebookWithApplicationLaunchOptions : (nullable NSDictionary *)launchOptions ;
45
45
46
- /* !
47
- @abstract `FBSDKLoginManager` provides methods for configuring login behavior, default audience
46
+ /* *
47
+ `FBSDKLoginManager` provides methods for configuring login behavior, default audience
48
48
and managing Facebook Access Token.
49
49
50
- @returns An instance of `FBSDKLoginManager` that is used by `PFFacebookUtils`.
50
+ @return An instance of `FBSDKLoginManager` that is used by `PFFacebookUtils`.
51
51
*/
52
52
+ (FBSDKLoginManager *)facebookLoginManager ;
53
53
54
54
// /--------------------------------------
55
55
// / @name Logging In
56
56
// /--------------------------------------
57
57
58
- /* !
59
- @abstract *Asynchronously* logs in a user using Facebook with read permissions.
58
+ /* *
59
+ *Asynchronously* logs in a user using Facebook with read permissions.
60
60
61
- @discussion This method delegates to the Facebook SDK to authenticate the user,
62
- and then automatically logs in (or creates, in the case where it is a new user) a < PFUser> .
61
+ This method delegates to the Facebook SDK to authenticate the user,
62
+ and then automatically logs in (or creates, in the case where it is a new user) a ` PFUser` .
63
63
64
64
@param permissions Array of read permissions to use.
65
65
66
- @returns The task that has will a have `result` set to < PFUser> if operation succeeds.
66
+ @return The task that has will a have `result` set to ` PFUser` if operation succeeds.
67
67
*/
68
68
+ (BFTask PF_GENERIC (PFUser *)*)logInInBackgroundWithReadPermissions:(nullable NSArray PF_GENERIC (NSString *)*)permissions;
69
69
70
- /* !
71
- @abstract *Asynchronously* logs in a user using Facebook with read permissions.
70
+ /* *
71
+ *Asynchronously* logs in a user using Facebook with read permissions.
72
72
73
- @discussion This method delegates to the Facebook SDK to authenticate the user,
74
- and then automatically logs in (or creates, in the case where it is a new user) a < PFUser> .
73
+ This method delegates to the Facebook SDK to authenticate the user,
74
+ and then automatically logs in (or creates, in the case where it is a new user) a ` PFUser` .
75
75
76
76
@param permissions Array of read permissions to use.
77
77
@param block The block to execute when the log in completes.
@@ -80,23 +80,23 @@ NS_ASSUME_NONNULL_BEGIN
80
80
+ (void )logInInBackgroundWithReadPermissions:(nullable NSArray PF_GENERIC (NSString *)*)permissions
81
81
block:(nullable PFUserResultBlock)block;
82
82
83
- /* !
84
- @abstract *Asynchronously* logs in a user using Facebook with publish permissions.
83
+ /* *
84
+ *Asynchronously* logs in a user using Facebook with publish permissions.
85
85
86
- @discussion This method delegates to the Facebook SDK to authenticate the user,
87
- and then automatically logs in (or creates, in the case where it is a new user) a < PFUser> .
86
+ This method delegates to the Facebook SDK to authenticate the user,
87
+ and then automatically logs in (or creates, in the case where it is a new user) a ` PFUser` .
88
88
89
89
@param permissions Array of publish permissions to use.
90
90
91
- @returns The task that has will a have `result` set to < PFUser> if operation succeeds.
91
+ @return The task that has will a have `result` set to ` PFUser` if operation succeeds.
92
92
*/
93
93
+ (BFTask PF_GENERIC (PFUser *)*)logInInBackgroundWithPublishPermissions:(nullable NSArray PF_GENERIC (NSString *)*)permissions;
94
94
95
- /* !
96
- @abstract *Asynchronously* logs in a user using Facebook with publish permissions.
95
+ /* *
96
+ *Asynchronously* logs in a user using Facebook with publish permissions.
97
97
98
- @discussion This method delegates to the Facebook SDK to authenticate the user,
99
- and then automatically logs in (or creates, in the case where it is a new user) a < PFUser> .
98
+ This method delegates to the Facebook SDK to authenticate the user,
99
+ and then automatically logs in (or creates, in the case where it is a new user) a ` PFUser` .
100
100
101
101
@param permissions Array of publish permissions to use.
102
102
@param block The block to execute when the log in completes.
@@ -105,23 +105,23 @@ NS_ASSUME_NONNULL_BEGIN
105
105
+ (void )logInInBackgroundWithPublishPermissions:(nullable NSArray PF_GENERIC (NSString *)*)permissions
106
106
block:(nullable PFUserResultBlock)block;
107
107
108
- /* !
109
- @abstract *Asynchronously* logs in a user using given Facebook Acess Token.
108
+ /* *
109
+ *Asynchronously* logs in a user using given Facebook Acess Token.
110
110
111
- @discussion This method delegates to the Facebook SDK to authenticate the user,
112
- and then automatically logs in (or creates, in the case where it is a new user) a < PFUser> .
111
+ This method delegates to the Facebook SDK to authenticate the user,
112
+ and then automatically logs in (or creates, in the case where it is a new user) a ` PFUser` .
113
113
114
114
@param accessToken An instance of `FBSDKAccessToken` to use when logging in.
115
115
116
- @returns The task that has will a have `result` set to < PFUser> if operation succeeds.
116
+ @return The task that has will a have `result` set to ` PFUser` if operation succeeds.
117
117
*/
118
118
+ (BFTask PF_GENERIC (PFUser *)*)logInInBackgroundWithAccessToken:(FBSDKAccessToken *)accessToken;
119
119
120
- /* !
121
- @abstract *Asynchronously* logs in a user using given Facebook Acess Token.
120
+ /* *
121
+ *Asynchronously* logs in a user using given Facebook Acess Token.
122
122
123
- @discussion This method delegates to the Facebook SDK to authenticate the user,
124
- and then automatically logs in (or creates, in the case where it is a new user) a < PFUser> .
123
+ This method delegates to the Facebook SDK to authenticate the user,
124
+ and then automatically logs in (or creates, in the case where it is a new user) a ` PFUser` .
125
125
126
126
@param accessToken An instance of `FBSDKAccessToken` to use when logging in.
127
127
@param block The block to execute when the log in completes.
@@ -134,26 +134,26 @@ NS_ASSUME_NONNULL_BEGIN
134
134
// / @name Linking Users
135
135
// /--------------------------------------
136
136
137
- /* !
138
- @abstract *Asynchronously* links Facebook with read permissions to an existing < PFUser> .
137
+ /* *
138
+ *Asynchronously* links Facebook with read permissions to an existing ` PFUser` .
139
139
140
- @discussion This method delegates to the Facebook SDK to authenticate
141
- the user, and then automatically links the account to the < PFUser> .
140
+ This method delegates to the Facebook SDK to authenticate
141
+ the user, and then automatically links the account to the ` PFUser` .
142
142
It will also save any unsaved changes that were made to the `user`.
143
143
144
144
@param user User to link to Facebook.
145
145
@param permissions Array of read permissions to use when logging in with Facebook.
146
146
147
- @returns The task that will have a `result` set to `@YES` if operation succeeds.
147
+ @return The task that will have a `result` set to `@YES` if operation succeeds.
148
148
*/
149
149
+ (BFTask PF_GENERIC (NSNumber *)*)linkUserInBackground:(PFUser *)user
150
150
withReadPermissions:(nullable NSArray PF_GENERIC (NSString *)*)permissions;
151
151
152
- /* !
153
- @abstract *Asynchronously* links Facebook with read permissions to an existing < PFUser> .
152
+ /* *
153
+ *Asynchronously* links Facebook with read permissions to an existing ` PFUser` .
154
154
155
- @discussion This method delegates to the Facebook SDK to authenticate
156
- the user, and then automatically links the account to the < PFUser> .
155
+ This method delegates to the Facebook SDK to authenticate
156
+ the user, and then automatically links the account to the ` PFUser` .
157
157
It will also save any unsaved changes that were made to the `user`.
158
158
159
159
@param user User to link to Facebook.
@@ -165,26 +165,26 @@ NS_ASSUME_NONNULL_BEGIN
165
165
withReadPermissions:(nullable NSArray PF_GENERIC (NSString *)*)permissions
166
166
block:(nullable PFBooleanResultBlock)block;
167
167
168
- /* !
169
- @abstract *Asynchronously* links Facebook with publish permissions to an existing < PFUser> .
168
+ /* *
169
+ *Asynchronously* links Facebook with publish permissions to an existing ` PFUser` .
170
170
171
- @discussion This method delegates to the Facebook SDK to authenticate
172
- the user, and then automatically links the account to the < PFUser> .
171
+ This method delegates to the Facebook SDK to authenticate
172
+ the user, and then automatically links the account to the ` PFUser` .
173
173
It will also save any unsaved changes that were made to the `user`.
174
174
175
175
@param user User to link to Facebook.
176
176
@param permissions Array of publish permissions to use.
177
177
178
- @returns The task that will have a `result` set to `@YES` if operation succeeds.
178
+ @return The task that will have a `result` set to `@YES` if operation succeeds.
179
179
*/
180
180
+ (BFTask PF_GENERIC (NSNumber *)*)linkUserInBackground:(PFUser *)user
181
181
withPublishPermissions:(NSArray PF_GENERIC (NSString *)*)permissions;
182
182
183
- /* !
184
- @abstract *Asynchronously* links Facebook with publish permissions to an existing < PFUser> .
183
+ /* *
184
+ *Asynchronously* links Facebook with publish permissions to an existing ` PFUser` .
185
185
186
- @discussion This method delegates to the Facebook SDK to authenticate
187
- the user, and then automatically links the account to the < PFUser> .
186
+ This method delegates to the Facebook SDK to authenticate
187
+ the user, and then automatically links the account to the ` PFUser` .
188
188
It will also save any unsaved changes that were made to the `user`.
189
189
190
190
@param user User to link to Facebook.
@@ -196,25 +196,25 @@ NS_ASSUME_NONNULL_BEGIN
196
196
withPublishPermissions:(NSArray PF_GENERIC (NSString *)*)permissions
197
197
block:(nullable PFBooleanResultBlock)block;
198
198
199
- /* !
200
- @abstract *Asynchronously* links Facebook Access Token to an existing < PFUser> .
199
+ /* *
200
+ *Asynchronously* links Facebook Access Token to an existing ` PFUser` .
201
201
202
- @discussion This method delegates to the Facebook SDK to authenticate
203
- the user, and then automatically links the account to the < PFUser> .
202
+ This method delegates to the Facebook SDK to authenticate
203
+ the user, and then automatically links the account to the ` PFUser` .
204
204
It will also save any unsaved changes that were made to the `user`.
205
205
206
206
@param user User to link to Facebook.
207
207
@param accessToken An instance of `FBSDKAccessToken` to use.
208
208
209
- @returns The task that will have a `result` set to `@YES` if operation succeeds.
209
+ @return The task that will have a `result` set to `@YES` if operation succeeds.
210
210
*/
211
211
+ (BFTask PF_GENERIC (NSNumber *)*)linkUserInBackground:(PFUser *)user withAccessToken:(FBSDKAccessToken *)accessToken;
212
212
213
- /* !
214
- @abstract *Asynchronously* links Facebook Access Token to an existing < PFUser> .
213
+ /* *
214
+ *Asynchronously* links Facebook Access Token to an existing ` PFUser` .
215
215
216
- @discussion This method delegates to the Facebook SDK to authenticate
217
- the user, and then automatically links the account to the < PFUser> .
216
+ This method delegates to the Facebook SDK to authenticate
217
+ the user, and then automatically links the account to the ` PFUser` .
218
218
It will also save any unsaved changes that were made to the `user`.
219
219
220
220
@param user User to link to Facebook.
@@ -230,16 +230,16 @@ NS_ASSUME_NONNULL_BEGIN
230
230
// / @name Unlinking Users
231
231
// /--------------------------------------
232
232
233
- /* !
234
- @abstract Unlinks the < PFUser> from a Facebook account *asynchronously*.
233
+ /* *
234
+ Unlinks the ` PFUser` from a Facebook account *asynchronously*.
235
235
236
236
@param user User to unlink from Facebook.
237
- @returns The task, that encapsulates the work being done.
237
+ @return The task, that encapsulates the work being done.
238
238
*/
239
239
+ (BFTask PF_GENERIC (NSNumber *)*)unlinkUserInBackground:(PFUser *)user;
240
240
241
- /* !
242
- @abstract Unlinks the < PFUser> from a Facebook account *asynchronously*.
241
+ /* *
242
+ Unlinks the ` PFUser` from a Facebook account *asynchronously*.
243
243
244
244
@param user User to unlink from Facebook.
245
245
@param block The block to execute.
@@ -251,12 +251,12 @@ NS_ASSUME_NONNULL_BEGIN
251
251
// / @name Getting Linked State
252
252
// /--------------------------------------
253
253
254
- /* !
255
- @abstract Whether the user has their account linked to Facebook.
254
+ /* *
255
+ Whether the user has their account linked to Facebook.
256
256
257
257
@param user User to check for a facebook link. The user must be logged in on this device.
258
258
259
- @returns `YES` if the user has their account linked to Facebook, otherwise `NO`.
259
+ @return `YES` if the user has their account linked to Facebook, otherwise `NO`.
260
260
*/
261
261
+ (BOOL )isLinkedWithUser:(PFUser *)user;
262
262
0 commit comments