commit | author | age
|
2e29a3
|
1 |
/* |
L |
2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. |
|
7 |
*/ |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
NS_ASSUME_NONNULL_BEGIN |
|
12 |
|
|
13 |
/** |
|
14 |
The error domain for all errors from FBSDKLoginKit |
|
15 |
|
|
16 |
Error codes from the SDK in the range 300-399 are reserved for this domain. |
|
17 |
*/ |
|
18 |
FOUNDATION_EXPORT NSErrorDomain const FBSDKLoginErrorDomain |
|
19 |
NS_SWIFT_NAME(LoginErrorDomain); |
|
20 |
|
|
21 |
#ifndef NS_ERROR_ENUM |
|
22 |
#define NS_ERROR_ENUM(_domain, _name) \ |
|
23 |
enum _name : NSInteger _name; \ |
|
24 |
enum __attribute__((ns_error_domain(_domain))) _name: NSInteger |
|
25 |
#endif |
|
26 |
|
|
27 |
/** |
|
28 |
FBSDKLoginError |
|
29 |
Error codes for FBSDKLoginErrorDomain. |
|
30 |
*/ |
|
31 |
typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKLoginError) |
|
32 |
{ |
|
33 |
/** |
|
34 |
Reserved. |
|
35 |
*/ |
|
36 |
FBSDKLoginErrorReserved = 300, |
|
37 |
|
|
38 |
/** |
|
39 |
The error code for unknown errors. |
|
40 |
*/ |
|
41 |
FBSDKLoginErrorUnknown, |
|
42 |
|
|
43 |
/** |
|
44 |
The user's password has changed and must log in again |
|
45 |
*/ |
|
46 |
FBSDKLoginErrorPasswordChanged, |
|
47 |
|
|
48 |
/** |
|
49 |
The user must log in to their account on www.facebook.com to restore access |
|
50 |
*/ |
|
51 |
FBSDKLoginErrorUserCheckpointed, |
|
52 |
|
|
53 |
/** |
|
54 |
Indicates a failure to request new permissions because the user has changed. |
|
55 |
*/ |
|
56 |
FBSDKLoginErrorUserMismatch, |
|
57 |
|
|
58 |
/** |
|
59 |
The user must confirm their account with Facebook before logging in |
|
60 |
*/ |
|
61 |
FBSDKLoginErrorUnconfirmedUser, |
|
62 |
|
|
63 |
/** |
|
64 |
The Accounts framework failed without returning an error, indicating the |
|
65 |
app's slider in the iOS Facebook Settings (device Settings -> Facebook -> App Name) has |
|
66 |
been disabled. |
|
67 |
*/ |
|
68 |
FBSDKLoginErrorSystemAccountAppDisabled, |
|
69 |
|
|
70 |
/** |
|
71 |
An error occurred related to Facebook system Account store |
|
72 |
*/ |
|
73 |
FBSDKLoginErrorSystemAccountUnavailable, |
|
74 |
|
|
75 |
/** |
|
76 |
The login response was missing a valid challenge string. |
|
77 |
*/ |
|
78 |
FBSDKLoginErrorBadChallengeString, |
|
79 |
|
|
80 |
/** |
|
81 |
The ID token returned in login response was invalid |
|
82 |
*/ |
|
83 |
FBSDKLoginErrorInvalidIDToken, |
|
84 |
|
|
85 |
/** |
|
86 |
A current access token was required and not provided |
|
87 |
*/ |
|
88 |
FBSDKLoginErrorMissingAccessToken, |
|
89 |
} NS_SWIFT_NAME(LoginError); |
|
90 |
|
|
91 |
/** |
|
92 |
FBSDKDeviceLoginError |
|
93 |
Error codes for FBSDKDeviceLoginErrorDomain. |
|
94 |
*/ |
|
95 |
typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKDeviceLoginError) { |
|
96 |
/** |
|
97 |
Your device is polling too frequently. |
|
98 |
*/ |
|
99 |
FBSDKDeviceLoginErrorExcessivePolling = 1349172, |
|
100 |
/** |
|
101 |
User has declined to authorize your application. |
|
102 |
*/ |
|
103 |
FBSDKDeviceLoginErrorAuthorizationDeclined = 1349173, |
|
104 |
/** |
|
105 |
User has not yet authorized your application. Continue polling. |
|
106 |
*/ |
|
107 |
FBSDKDeviceLoginErrorAuthorizationPending = 1349174, |
|
108 |
/** |
|
109 |
The code you entered has expired. |
|
110 |
*/ |
|
111 |
FBSDKDeviceLoginErrorCodeExpired = 1349152 |
|
112 |
} NS_SWIFT_NAME(DeviceLoginError); |
|
113 |
|
|
114 |
NS_ASSUME_NONNULL_END |