@@ -93,6 +93,7 @@ var provider = {
9393 * Provides a set of utilities for using Parse with Facebook.
9494 * @class Parse.FacebookUtils
9595 * @static
96+ * @hideconstructor
9697 */
9798var FacebookUtils = {
9899 /**
@@ -105,6 +106,7 @@ var FacebookUtils = {
105106 * with these arguments.
106107 *
107108 * @method init
109+ * @name Parse.FacebookUtils.init
108110 * @param {Object } options Facebook options argument as described here:
109111 * <a href=
110112 * "https://developers.facebook.com/docs/reference/javascript/FB.init/">
@@ -141,6 +143,7 @@ var FacebookUtils = {
141143 * Gets whether the user has their account linked to Facebook.
142144 *
143145 * @method isLinked
146+ * @name Parse.FacebookUtils.isLinked
144147 * @param {Parse.User } user User to check for a facebook link.
145148 * The user must be logged in on this device.
146149 * @return {Boolean } <code>true</code> if the user has their account
@@ -156,13 +159,15 @@ var FacebookUtils = {
156159 * creates, in the case where it is a new user) a Parse.User.
157160 *
158161 * @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
160164 * log in. This is a comma-separated string of permissions.
161165 * Alternatively, supply a Facebook authData object as described in our
162166 * REST API docs if you want to handle getting facebook auth tokens
163167 * yourself.
164168 * @param {Object } options Standard options object with success and error
165169 * callbacks.
170+ * @returns {Parse.Promise }
166171 */
167172 logIn ( permissions , options ) {
168173 if ( ! permissions || typeof permissions === 'string' ) {
@@ -191,15 +196,17 @@ var FacebookUtils = {
191196 * the account to the Parse.User.
192197 *
193198 * @method link
199+ * @name Parse.FacebookUtils.link
194200 * @param {Parse.User } user User to link to Facebook. This must be the
195201 * current user.
196- * @param {String, Object } permissions The permissions required for Facebook
202+ * @param {( String| Object) } permissions The permissions required for Facebook
197203 * log in. This is a comma-separated string of permissions.
198204 * Alternatively, supply a Facebook authData object as described in our
199205 * REST API docs if you want to handle getting facebook auth tokens
200206 * yourself.
201207 * @param {Object } options Standard options object with success and error
202208 * callbacks.
209+ * @returns {Parse.Promise }
203210 */
204211 link ( user , permissions , options ) {
205212 if ( ! permissions || typeof permissions === 'string' ) {
@@ -226,10 +233,12 @@ var FacebookUtils = {
226233 * Unlinks the Parse.User from a Facebook account.
227234 *
228235 * @method unlink
236+ * @name Parse.FacebookUtils.unlink
229237 * @param {Parse.User } user User to unlink from Facebook. This must be the
230238 * current user.
231239 * @param {Object } options Standard options object with success and error
232240 * callbacks.
241+ * @returns {Parse.Promise }
233242 */
234243 unlink : function ( user , options ) {
235244 if ( ! initialized ) {
0 commit comments