@@ -93,6 +93,7 @@ var provider = {
93
93
* Provides a set of utilities for using Parse with Facebook.
94
94
* @class Parse.FacebookUtils
95
95
* @static
96
+ * @hideconstructor
96
97
*/
97
98
var FacebookUtils = {
98
99
/**
@@ -105,6 +106,7 @@ var FacebookUtils = {
105
106
* with these arguments.
106
107
*
107
108
* @method init
109
+ * @name Parse.FacebookUtils.init
108
110
* @param {Object } options Facebook options argument as described here:
109
111
* <a href=
110
112
* "https://developers.facebook.com/docs/reference/javascript/FB.init/">
@@ -141,6 +143,7 @@ var FacebookUtils = {
141
143
* Gets whether the user has their account linked to Facebook.
142
144
*
143
145
* @method isLinked
146
+ * @name Parse.FacebookUtils.isLinked
144
147
* @param {Parse.User } user User to check for a facebook link.
145
148
* The user must be logged in on this device.
146
149
* @return {Boolean } <code>true</code> if the user has their account
@@ -156,13 +159,15 @@ var FacebookUtils = {
156
159
* creates, in the case where it is a new user) a Parse.User.
157
160
*
158
161
* @method logIn
159
- * @param {String, Object } permissions The permissions required for Facebook
162
+ * @name Parse.FacebookUtils.logIn
163
+ * @param {(String|Object) } permissions The permissions required for Facebook
160
164
* log in. This is a comma-separated string of permissions.
161
165
* Alternatively, supply a Facebook authData object as described in our
162
166
* REST API docs if you want to handle getting facebook auth tokens
163
167
* yourself.
164
168
* @param {Object } options Standard options object with success and error
165
169
* callbacks.
170
+ * @returns {Parse.Promise }
166
171
*/
167
172
logIn ( permissions , options ) {
168
173
if ( ! permissions || typeof permissions === 'string' ) {
@@ -191,15 +196,17 @@ var FacebookUtils = {
191
196
* the account to the Parse.User.
192
197
*
193
198
* @method link
199
+ * @name Parse.FacebookUtils.link
194
200
* @param {Parse.User } user User to link to Facebook. This must be the
195
201
* current user.
196
- * @param {String, Object } permissions The permissions required for Facebook
202
+ * @param {( String| Object) } permissions The permissions required for Facebook
197
203
* log in. This is a comma-separated string of permissions.
198
204
* Alternatively, supply a Facebook authData object as described in our
199
205
* REST API docs if you want to handle getting facebook auth tokens
200
206
* yourself.
201
207
* @param {Object } options Standard options object with success and error
202
208
* callbacks.
209
+ * @returns {Parse.Promise }
203
210
*/
204
211
link ( user , permissions , options ) {
205
212
if ( ! permissions || typeof permissions === 'string' ) {
@@ -226,10 +233,12 @@ var FacebookUtils = {
226
233
* Unlinks the Parse.User from a Facebook account.
227
234
*
228
235
* @method unlink
236
+ * @name Parse.FacebookUtils.unlink
229
237
* @param {Parse.User } user User to unlink from Facebook. This must be the
230
238
* current user.
231
239
* @param {Object } options Standard options object with success and error
232
240
* callbacks.
241
+ * @returns {Parse.Promise }
233
242
*/
234
243
unlink : function ( user , options ) {
235
244
if ( ! initialized ) {
0 commit comments