commit | author | age
|
bad748
|
1 |
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
W |
2 |
// |
|
3 |
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, |
|
4 |
// copy, modify, and distribute this software in source code or binary form for use |
|
5 |
// in connection with the web services and APIs provided by Facebook. |
|
6 |
// |
|
7 |
// As with any software that integrates with the Facebook platform, your use of |
|
8 |
// this software is subject to the Facebook Developer Principles and Policies |
|
9 |
// [http://developers.facebook.com/policy/]. This copyright notice shall be |
|
10 |
// included in all copies or substantial portions of the software. |
|
11 |
// |
|
12 |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
13 |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
|
14 |
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
|
15 |
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
|
16 |
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
17 |
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
18 |
|
|
19 |
#import <Foundation/Foundation.h> |
|
20 |
|
|
21 |
#import <FBSDKCoreKit/FBSDKMacros.h> |
|
22 |
|
9febd9
|
23 |
/** |
W |
24 |
The error domain for all errors from FBSDKLoginKit |
|
25 |
|
|
26 |
Error codes from the SDK in the range 300-399 are reserved for this domain. |
bad748
|
27 |
*/ |
W |
28 |
FBSDK_EXTERN NSString *const FBSDKLoginErrorDomain; |
|
29 |
|
9febd9
|
30 |
/** |
W |
31 |
NS_ENUM(NSInteger, FBSDKLoginErrorCode) |
|
32 |
Error codes for FBSDKLoginErrorDomain. |
bad748
|
33 |
*/ |
W |
34 |
typedef NS_ENUM(NSInteger, FBSDKLoginErrorCode) |
|
35 |
{ |
9febd9
|
36 |
/** |
W |
37 |
Reserved. |
bad748
|
38 |
*/ |
W |
39 |
FBSDKLoginReservedErrorCode = 300, |
9febd9
|
40 |
/** |
W |
41 |
The error code for unknown errors. |
bad748
|
42 |
*/ |
W |
43 |
FBSDKLoginUnknownErrorCode, |
|
44 |
|
9febd9
|
45 |
/** |
W |
46 |
The user's password has changed and must log in again |
bad748
|
47 |
*/ |
W |
48 |
FBSDKLoginPasswordChangedErrorCode, |
9febd9
|
49 |
/** |
W |
50 |
The user must log in to their account on www.facebook.com to restore access |
bad748
|
51 |
*/ |
W |
52 |
FBSDKLoginUserCheckpointedErrorCode, |
9febd9
|
53 |
/** |
W |
54 |
Indicates a failure to request new permissions because the user has changed. |
bad748
|
55 |
*/ |
W |
56 |
FBSDKLoginUserMismatchErrorCode, |
9febd9
|
57 |
/** |
W |
58 |
The user must confirm their account with Facebook before logging in |
bad748
|
59 |
*/ |
W |
60 |
FBSDKLoginUnconfirmedUserErrorCode, |
|
61 |
|
9febd9
|
62 |
/** |
W |
63 |
The Accounts framework failed without returning an error, indicating the |
bad748
|
64 |
app's slider in the iOS Facebook Settings (device Settings -> Facebook -> App Name) has |
W |
65 |
been disabled. |
|
66 |
*/ |
|
67 |
FBSDKLoginSystemAccountAppDisabledErrorCode, |
9febd9
|
68 |
/** |
W |
69 |
An error occurred related to Facebook system Account store |
bad748
|
70 |
*/ |
W |
71 |
FBSDKLoginSystemAccountUnavailableErrorCode, |
9febd9
|
72 |
/** |
W |
73 |
The login response was missing a valid challenge string. |
bad748
|
74 |
*/ |
W |
75 |
FBSDKLoginBadChallengeString, |
|
76 |
}; |
9f077b
|
77 |
|
H |
78 |
/** |
|
79 |
NS_ENUM(NSInteger, FBSDKDeviceLoginErrorCode) |
|
80 |
Error codes for FBSDKDeviceLoginErrorDomain. |
|
81 |
*/ |
|
82 |
typedef NS_ENUM(NSUInteger, FBSDKDeviceLoginErrorSubcode) { |
|
83 |
/** |
|
84 |
Your device is polling too frequently. |
|
85 |
*/ |
|
86 |
FBSDKDeviceLoginExcessivePollingErrorSubcode = 1349172, |
|
87 |
/** |
|
88 |
User has declined to authorize your application. |
|
89 |
*/ |
|
90 |
FBSDKDeviceLoginAuthorizationDeclinedErrorSubcode = 1349173, |
|
91 |
/** |
|
92 |
User has not yet authorized your application. Continue polling. |
|
93 |
*/ |
|
94 |
FBSDKDeviceLoginAuthorizationPendingErrorSubcode = 1349174, |
|
95 |
/** |
|
96 |
The code you entered has expired. |
|
97 |
*/ |
|
98 |
FBSDKDeviceLoginCodeExpiredErrorSubcode = 1349152 |
|
99 |
}; |