|
LuxChat
2.0
Instant messenger for iOS
|
#import <PFFacebookUtils.h>
Class Methods | |
Interacting With Facebook | |
| (void) | + initializeFacebookWithApplicationLaunchOptions: |
Logging In | |
| (BFTask< PFUser * > *) | + logInInBackgroundWithReadPermissions: |
| (void) | + logInInBackgroundWithReadPermissions:block: |
| (BFTask< PFUser * > *) | + logInInBackgroundWithPublishPermissions: |
| (void) | + logInInBackgroundWithPublishPermissions:block: |
| (BFTask< PFUser * > *) | + logInInBackgroundWithAccessToken: |
| (void) | + logInInBackgroundWithAccessToken:block: |
Linking Users | |
| (BFTask< NSNumber * > *) | + linkUserInBackground:withReadPermissions: |
| (void) | + linkUserInBackground:withReadPermissions:block: |
| (BFTask< NSNumber * > *) | + linkUserInBackground:withPublishPermissions: |
| (void) | + linkUserInBackground:withPublishPermissions:block: |
| (BFTask< NSNumber * > *) | + linkUserInBackground:withAccessToken: |
| (void) | + linkUserInBackground:withAccessToken:block: |
Unlinking Users | |
| (BFTask< NSNumber * > *) | + unlinkUserInBackground: |
| (void) | + unlinkUserInBackground:block: |
Getting Linked State | |
| (BOOL) | + isLinkedWithUser: |
Copyright (c) 2015-present, Parse, LLC. All rights reserved.
This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. The PFFacebookUtils class provides utility functions for using Facebook authentication with PFUsers.
| + (void) initializeFacebookWithApplicationLaunchOptions: | (nullable NSDictionary *) | launchOptions |
Initializes Parse Facebook Utils.
You must provide your Facebook application ID as the value for FacebookAppID in your bundle's plist file as described here: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/
| launchOptions | The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. |
| + (BOOL) isLinkedWithUser: | (PFUser *) | user |
Whether the user has their account linked to Facebook.
| user | User to check for a facebook link. The user must be logged in on this device. |
YES if the user has their account linked to Facebook, otherwise NO. | + (BFTask<NSNumber *> *) linkUserInBackground: | (PFUser *) | user | |
| withAccessToken: | (FBSDKAccessToken *) | accessToken | |
Asynchronously* links Facebook Access Token to an existing PFUser.
This method delegates to the Facebook SDK to authenticate the user, and then automatically links the account to the PFUser. It will also save any unsaved changes that were made to the user.
| user | User to link to Facebook. |
| accessToken | An instance of FBSDKAccessToken to use. |
result set to @YES if operation succeeds. | + (void) linkUserInBackground: | (PFUser *) | user | |
| withAccessToken: | (FBSDKAccessToken *) | accessToken | |
| block: | (nullable PFBooleanResultBlock) | block | |
Asynchronously* links Facebook Access Token to an existing PFUser.
This method delegates to the Facebook SDK to authenticate the user, and then automatically links the account to the PFUser. It will also save any unsaved changes that were made to the user.
| user | User to link to Facebook. |
| accessToken | An instance of FBSDKAccessToken to use. |
| block | The block to execute when the linking completes. It should have the following signature: ^(BOOL succeeded, NSError *error). |
| + (BFTask<NSNumber *> *) linkUserInBackground: | (PFUser *) | user | |
| withPublishPermissions: | (NSArray< NSString * > *) | permissions | |
Asynchronously* links Facebook with publish permissions to an existing PFUser.
This method delegates to the Facebook SDK to authenticate the user, and then automatically links the account to the PFUser. It will also save any unsaved changes that were made to the user.
| user | User to link to Facebook. |
| permissions | Array of publish permissions to use. |
result set to @YES if operation succeeds. | + (void) linkUserInBackground: | (PFUser *) | user | |
| withPublishPermissions: | (NSArray< NSString * > *) | permissions | |
| block: | (nullable PFBooleanResultBlock) | block | |
Asynchronously* links Facebook with publish permissions to an existing PFUser.
This method delegates to the Facebook SDK to authenticate the user, and then automatically links the account to the PFUser. It will also save any unsaved changes that were made to the user.
| user | User to link to Facebook. |
| permissions | Array of publish permissions to use. |
| block | The block to execute when the linking completes. It should have the following signature: ^(BOOL succeeded, NSError *error). |
| + (BFTask<NSNumber *> *) linkUserInBackground: | (PFUser *) | user | |
| withReadPermissions: | (nullable NSArray< NSString * > *) | permissions | |
Asynchronously* links Facebook with read permissions to an existing PFUser.
This method delegates to the Facebook SDK to authenticate the user, and then automatically links the account to the PFUser. It will also save any unsaved changes that were made to the user.
| user | User to link to Facebook. |
| permissions | Array of read permissions to use when logging in with Facebook. |
result set to @YES if operation succeeds. | + (void) linkUserInBackground: | (PFUser *) | user | |
| withReadPermissions: | (nullable NSArray< NSString * > *) | permissions | |
| block: | (nullable PFBooleanResultBlock) | block | |
Asynchronously* links Facebook with read permissions to an existing PFUser.
This method delegates to the Facebook SDK to authenticate the user, and then automatically links the account to the PFUser. It will also save any unsaved changes that were made to the user.
| user | User to link to Facebook. |
| permissions | Array of read permissions to use. |
| block | The block to execute when the linking completes. It should have the following signature: ^(BOOL succeeded, NSError *error). |
| + (BFTask<PFUser *> *) logInInBackgroundWithAccessToken: | (FBSDKAccessToken *) | accessToken |
Asynchronously* logs in a user using given Facebook Acess Token.
This method delegates to the Facebook SDK to authenticate the user, and then automatically logs in (or creates, in the case where it is a new user) a PFUser.
| accessToken | An instance of FBSDKAccessToken to use when logging in. |
result set to PFUser if operation succeeds. | + (void) logInInBackgroundWithAccessToken: | (FBSDKAccessToken *) | accessToken | |
| block: | (nullable PFUserResultBlock) | block | |
Asynchronously* logs in a user using given Facebook Acess Token.
This method delegates to the Facebook SDK to authenticate the user, and then automatically logs in (or creates, in the case where it is a new user) a PFUser.
| accessToken | An instance of FBSDKAccessToken to use when logging in. |
| block | The block to execute when the log in completes. It should have the following signature: ^(PFUser *user, NSError *error). |
| + (BFTask<PFUser *> *) logInInBackgroundWithPublishPermissions: | (nullable NSArray< NSString * > *) | permissions |
Asynchronously* logs in a user using Facebook with publish permissions.
This method delegates to the Facebook SDK to authenticate the user, and then automatically logs in (or creates, in the case where it is a new user) a PFUser.
| permissions | Array of publish permissions to use. |
result set to PFUser if operation succeeds. | + (void) logInInBackgroundWithPublishPermissions: | (nullable NSArray< NSString * > *) | permissions | |
| block: | (nullable PFUserResultBlock) | block | |
Asynchronously* logs in a user using Facebook with publish permissions.
This method delegates to the Facebook SDK to authenticate the user, and then automatically logs in (or creates, in the case where it is a new user) a PFUser.
| permissions | Array of publish permissions to use. |
| block | The block to execute when the log in completes. It should have the following signature: ^(PFUser *user, NSError *error). |
| + (BFTask<PFUser *> *) logInInBackgroundWithReadPermissions: | (nullable NSArray< NSString * > *) | permissions |
Asynchronously* logs in a user using Facebook with read permissions.
This method delegates to the Facebook SDK to authenticate the user, and then automatically logs in (or creates, in the case where it is a new user) a PFUser.
| permissions | Array of read permissions to use. |
result set to PFUser if operation succeeds. | + (void) logInInBackgroundWithReadPermissions: | (nullable NSArray< NSString * > *) | permissions | |
| block: | (nullable PFUserResultBlock) | block | |
Asynchronously* logs in a user using Facebook with read permissions.
This method delegates to the Facebook SDK to authenticate the user, and then automatically logs in (or creates, in the case where it is a new user) a PFUser.
| permissions | Array of read permissions to use. |
| block | The block to execute when the log in completes. It should have the following signature: ^(PFUser *user, NSError *error). |
| + (BFTask<NSNumber *> *) unlinkUserInBackground: | (PFUser *) | user |
Unlinks the PFUser from a Facebook account asynchronously.
| user | User to unlink from Facebook. |
| + (void) unlinkUserInBackground: | (PFUser *) | user | |
| block: | (nullable PFBooleanResultBlock) | block | |
Unlinks the PFUser from a Facebook account asynchronously.
| user | User to unlink from Facebook. |
| block | The block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error). |
1.8.9.1