FBPhotoParams.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright 2010-present Facebook.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #import "FBDialogsParams.h"
  18. /*!
  19. @class FBPhotoParams
  20. @abstract
  21. This object is used to encapsulate state for parameters to share photos,
  22. typically with the Facebook Native Share Dialog or Message Dialog
  23. */
  24. @interface FBPhotoParams : FBDialogsParams
  25. /*! @abstract An array of NSStrings or FBGraphUsers to tag in the post.
  26. If using NSStrings, the values must represent the IDs of the users to tag. */
  27. @property (nonatomic, copy) NSArray *friends;
  28. /*! @abstract An NSString or FBGraphPlace to tag in the status update. If
  29. NSString, the value must be the ID of the place to tag. */
  30. @property (nonatomic, copy) id place;
  31. /*! @abstract If YES, treats any data failures (e.g. failures when getting
  32. data for IDs passed through "friends" or "place") as a fatal error, and will not
  33. continue with the status update. */
  34. @property (nonatomic, assign) BOOL dataFailuresFatal;
  35. /*! @abstract An array of UIImages representing photos to be shared. Only
  36. six or fewer images are supported. */
  37. @property (nonatomic, copy) NSArray *photos;
  38. /*! @abstract Designated initializer.
  39. @param photos the array of UIImages
  40. */
  41. - (instancetype)initWithPhotos:(NSArray *)photos;
  42. @end