FBSDKGraphRequestFlags.h 904 B

123456789101112131415161718192021222324
  1. /*
  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. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /// Flags that indicate how a graph request should be treated in various scenarios
  11. typedef NS_OPTIONS(NSUInteger, FBSDKGraphRequestFlags) {
  12. FBSDKGraphRequestFlagNone = 0,
  13. /// indicates this request should not use a client token as its token parameter
  14. FBSDKGraphRequestFlagSkipClientToken = 1 << 1,
  15. /// indicates this request should not close the session if its response is an oauth error
  16. FBSDKGraphRequestFlagDoNotInvalidateTokenOnError = 1 << 2,
  17. /// indicates this request should not perform error recovery
  18. FBSDKGraphRequestFlagDisableErrorRecovery = 1 << 3,
  19. } NS_SWIFT_NAME(GraphRequestFlags);
  20. NS_ASSUME_NONNULL_END