Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

112 lines (84 sloc) 3.874 kB
* Copyright 2012 Facebook
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* See the License for the specific language governing permissions and
* limitations under the License.
#import <Foundation/Foundation.h>
/// The error domain of all error codes returned by the Facebook SDK
extern NSString *const FBiOSSDKDomain;
// ----------------------------------------------------------------------------
// Keys in the userInfo NSDictionary of NSError where you can find additional
// information about the error. All are optional.
/// The key for an inner NSError.
extern NSString *const FBErrorInnerErrorKey;
/// The key for parsed JSON response from the server.
extern NSString *const FBErrorParsedJSONResponseKey;
/// The key for HTTP status code.
extern NSString *const FBErrorHTTPStatusCodeKey;
// ----------------------------------------------------------------------------
@abstract Error codes returned by the Facebook SDK in NSError.
These are valid only in the scope of FBiOSSDKDomain.
typedef enum FBErrorCode {
Like nil for FBErrorCode values, represents an error code that
has not been initialized yet.
FBErrorInvalid = 0,
/// The operation failed because it was cancelled.
/// A login attempt failed
/// The graph API returned an error for this operation.
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.
/// Non-success HTTP status code was returned from the operation.
/// An endpoint that returns a binary response was used with FBRequestConnection;
/// endpoints that return image/jpg, etc. should be accessed using NSURLRequest
} FBErrorCode;
The key in the userInfo NSDictionary of NSError where you can find
the inner NSError (if any).
extern NSString *const FBErrorInnerErrorKey;
/// The NSError key used by session to capture login failure reason
extern NSString *const FBErrorLoginFailedReason;
/// the NSError key used by session to capture login failure error code
extern NSString *const FBErrorLoginFailedOriginalErrorCode;
/// used by session when an inline dialog fails
extern NSString *const FBErrorLoginFailedReasonInlineCancelledValue;
extern NSString *const FBErrorLoginFailedReasonInlineNotCancelledValue;
extern NSString *const FBErrorLoginFailedReasonUnitTestResponseUnrecognized;
/// used by session when a reauthorize fails
extern NSString *const FBErrorReauthorizeFailedReasonSessionClosed;
extern NSString *const FBErrorReauthorizeFailedReasonUserCancelled;
extern NSString *const FBErrorReauthorizeFailedReasonWrongUser;
// Exception strings raised by the Facebook SDK
This exception is raised by methods in the Facebook SDK to indicate
that an attempted operation is invalid
extern NSString *const FBInvalidOperationException;
// Facebook SDK also raises exceptions the following common exceptions:
// NSInvalidArgumentException
Jump to Line
Something went wrong with that request. Please try again.