FacebookSDKDomain
extern NSString *const FacebookSDKDomain;
The NSError domain of all errors returned by the Facebook SDK.
FBError.h
FBErrorHTTPStatusCodeKey
extern NSString *const FBErrorHTTPStatusCodeKey;
The key in the userInfo NSDictionary of NSError indicating the HTTP status code of the response (if any).
FBError.h
FBErrorInnerErrorKey
extern NSString *const FBErrorInnerErrorKey;
The key in the userInfo NSDictionary of NSError where you can find the inner NSError (if any).
FBError.h
FBErrorInnerErrorKey
extern NSString *const FBErrorInnerErrorKey;
The key in the userInfo NSDictionary of NSError where you can find the inner NSError (if any).
FBError.h
FBErrorInsightsReasonKey
extern NSString *const FBErrorInsightsReasonKey;
The key in the userInfo NSDictionary of NSError for errors
encountered with FBInsights
operations (error.code equals FBErrorInsights).
FBError.h
FBErrorLoginFailedOriginalErrorCode
extern NSString *const FBErrorLoginFailedOriginalErrorCode;
The key in the userInfo NSDictionary of NSError for unsuccessful logins (error.code equals FBErrorLoginFailedOrCancelled). If present, the value indicates an original login error code wrapped by this error. This is only used in the web dialog login flow.
FBError.h
FBErrorLoginFailedReason
extern NSString *const FBErrorLoginFailedReason;
The key in the userInfo NSDictionary of NSError for unsuccessful logins (error.code equals FBErrorLoginFailedOrCancelled). If present, the value will be one of the constants prefixed by FBErrorLoginFailedReason*.
FBError.h
FBErrorLoginFailedReasonInlineCancelledValue
extern NSString *const FBErrorLoginFailedReasonInlineCancelledValue;
A value that may appear in an NSError userInfo dictionary under the
FBErrorLoginFailedReason
key for login failures. Indicates the user
cancelled a web dialog auth.
FBError.h
FBErrorLoginFailedReasonInlineNotCancelledValue
extern NSString *const FBErrorLoginFailedReasonInlineNotCancelledValue;
A value that may appear in an NSError userInfo dictionary under the
FBErrorLoginFailedReason
key for login failures. Indicates the user
did not cancel a web dialog auth.
FBError.h
FBErrorLoginFailedReasonSystemDisallowedWithoutErrorValue
extern NSString *const FBErrorLoginFailedReasonSystemDisallowedWithoutErrorValue;
A value that may appear in an NSError userInfo dictionary under the
FBErrorLoginFailedReason
key for login failures. Indicates the app's
slider in iOS 6 (device Settings -> Privacy -> Facebook {app} ) has
been disabled.
FBError.h
FBErrorLoginFailedReasonSystemError
extern NSString *const FBErrorLoginFailedReasonSystemError;
A value that may appear in an NSError userInfo dictionary under the
FBErrorLoginFailedReason
key for login failures. Indicates an error
has occurred when requesting Facebook account acccess in iOS 6 that was
not FBErrorLoginFailedReasonSystemDisallowedWithoutErrorValue
nor
a user cancellation.
FBError.h
FBErrorLoginFailedReasonUserCancelledSystemValue
extern NSString *const FBErrorLoginFailedReasonUserCancelledSystemValue;
A value that may appear in an NSError userInfo dictionary under the
FBErrorLoginFailedReason
key for login failures. Indicates the user
cancelled an iOS system login.
FBError.h
FBErrorLoginFailedReasonUserCancelledValue
extern NSString *const FBErrorLoginFailedReasonUserCancelledValue;
A value that may appear in an NSError userInfo dictionary under the
FBErrorLoginFailedReason
key for login failures. Indicates the user
cancelled a non-iOS 6 SSO (either Safari or Facebook App) login.
FBError.h
FBErrorNativeDialogCantBeDisplayed
extern NSString *const FBErrorNativeDialogCantBeDisplayed;
A value that may appear in the NSError userInfo dictionary under the
FBErrorNativeDialogReasonKey
key. Indicates that a native dialog cannot be
displayed for some other reason.
FBError.h
FBErrorNativeDialogInvalidForSession
extern NSString *const FBErrorNativeDialogInvalidForSession;
A value that may appear in the NSError userInfo dictionary under the
FBErrorNativeDialogReasonKey
key. Indicates that a native dialog cannot be
displayed because it is not appropriate for the current session.
FBError.h
FBErrorNativeDialogNotSupported
extern NSString *const FBErrorNativeDialogNotSupported;
A value that may appear in the NSError userInfo dictionary under the
FBErrorNativeDialogReasonKey
key. Indicates that a native dialog is not supported
in the current OS.
FBError.h
FBErrorNativeDialogReasonKey
extern NSString *const FBErrorNativeDialogReasonKey;
The key in the userInfo NSDictionary of NSError for errors
encountered with FBNativeDialog
operations. (error.code equals FBErrorNativeDialog).
If present, the value will be one of the constants prefixed by FBErrorNativeDialog*.
FBError.h
FBErrorParsedJSONResponseKey
extern NSString *const FBErrorParsedJSONResponseKey;
The key in the userInfo NSDictionary of NSError for the parsed JSON response from the server. In case of a batch, includes the JSON for a single FBRequest.
FBError.h
FBErrorReauthorizeFailedReasonSessionClosed
extern NSString *const FBErrorReauthorizeFailedReasonSessionClosed;
A value that may appear in the NSError userInfo dictionary under the
FBErrorLoginFailedReason
key when requesting new permissions fails. Indicates
the request for new permissions has failed because the session was closed.
FBError.h
FBErrorReauthorizeFailedReasonUserCancelled
extern NSString *const FBErrorReauthorizeFailedReasonUserCancelled;
A value that may appear in the NSError userInfo dictionary under the
FBErrorLoginFailedReason
key when requesting new permissions fails. Indicates
the request for new permissions has failed because the user cancelled.
FBError.h
FBErrorReauthorizeFailedReasonUserCancelledSystem
extern NSString *const FBErrorReauthorizeFailedReasonUserCancelledSystem;
A value that may appear in the NSError userInfo dictionary under the
FBErrorLoginFailedReason
key when requesting new permissions fails on
iOS 6 with the Facebook account. Indicates the request for new permissions has
failed because the user cancelled.
FBError.h
FBErrorReauthorizeFailedReasonWrongUser
extern NSString *const FBErrorReauthorizeFailedReasonWrongUser;
A value that may appear in the NSError userInfo dictionary under the
FBErrorLoginFailedReason
key when requesting new permissions fails. Indicates
the request for new permissions has failed because the request was
for a different user than the original permission set.
FBError.h
FBErrorSessionKey
extern NSString *const FBErrorSessionKey;
The key in the userInfo NSDictionary of NSError where you can find the session associated with the error (if any).
FBError.h
FBInvalidOperationException
extern NSString *const FBInvalidOperationException;
This exception is raised by methods in the Facebook SDK to indicate that an attempted operation is invalid
FBError.h
FBErrorCategory enum
Indicates the Facebook SDK classification for the error
typedef enum { FBErrorCategoryInvalid = 0, FBErrorCategoryRetry = 1, FBErrorCategoryAuthenticationReopenSession = 2, FBErrorCategoryPermissions = 3, FBErrorCategoryServer = 4, FBErrorCategoryThrottling = 5, FBErrorCategoryUserCancelled = 6, FBErrorCategoryFacebookOther = -1, FBErrorCategoryBadRequest = -2, } FBErrorCategory;
Constant | Description |
---|---|
FBErrorCategoryInvalid | Indicates that the error category is invalid and likely represents an error that is unrelated to Facebook or the Facebook SDK |
FBErrorCategoryRetry | Indicates that the error may be authentication related but the application should retry the operation. This case may involve user action that must be taken, and so the application should also test the fberrorShouldNotifyUser property and if YES display fberrorUserMessage to the user before retrying. |
FBErrorCategoryAuthenticationReopenSession | Indicates that the error is authentication related and the application should reopen the session |
FBErrorCategoryPermissions | Indicates that the error is permission related |
FBErrorCategoryServer | Indicates that the error implies that the server had an unexpected failure or may be temporarily down |
FBErrorCategoryThrottling | Indicates that the error results from the server throttling the client |
FBErrorCategoryUserCancelled | Indicates the user cancelled the operation |
FBErrorCategoryFacebookOther | Indicates that the error is Facebook-related but is uncategorizable, and likely newer than the current version of the SDK |
FBErrorCategoryBadRequest | Indicates that the error is an application error resulting in a bad or malformed request to the server. |
FBError.h
FBErrorCode
Error codes returned by the Facebook SDK in NSError.
typedef enum FBErrorCode { FBErrorInvalid = 0, FBErrorOperationCancelled, FBErrorLoginFailedOrCancelled, FBErrorRequestConnectionApi, FBErrorProtocolMismatch, FBErrorHTTPError, FBErrorNonTextMimeTypeReturned, FBErrorNativeDialog, FBErrorInsights, FBErrorSystemAPI, FBErrorPublishInstallResponse, FBErrorAppActivatedWhilePendingAction, } FBErrorCode;
Constant | Description |
---|---|
FBErrorInvalid | Like nil for FBErrorCode values, represents an error code that has not been initialized yet. |
FBErrorProtocolMismatch | The operation failed because the server returned an unexpected response. You can get this error if you are not using the most recent SDK, or if you set your application's migration settings incorrectly for the version of the SDK you are using. If this occurs on the current SDK with proper app migration settings, you may need to try changing to one request per batch. |
FBErrorAppActivatedWhilePendingAction | The application had it's applicationDidBecomeActive: method called while waiting on a response from the native Facebook app for a pending FBAppAction. |
These are valid only in the scope of FacebookSDKDomain.
FBError.h