表示用户与iOS共享Facebook帖子的用户

时间:2015-10-28 11:22:16

标签: ios iphone xcode facebook

我在我的应用enter image description here中发布了Facebook功能。 一旦成功,我想检查玩家与谁共享帖子。 我的目的是避免在他选择“仅限我”选项的情况下取得成功。

有可能吗?任何想法?

1 个答案:

答案 0 :(得分:0)

如果有兴趣的话,我已经得到了答案:

NS_ENUM
Passed to open to indicate which default audience to use for sessions that post data to Facebook.
typedef NS_ENUM(NSUInteger, FBSDKDefaultAudience) {
FBSDKDefaultAudienceFriends = 0,
FBSDKDefaultAudienceOnlyMe,
FBSDKDefaultAudienceEveryone,
};
Constant    Description
FBSDKDefaultAudienceFriends 
Indicates that the user's friends are able to see posts made by the application
Discussion:
Certain operations such as publishing a status or publishing a photo require an audience. When the user grants an application permission to     perform a publish operation, a default audience is selected as the publication ceiling for the application. This enumerated value allows the application to select which audience to ask the user to grant publish permission for.

Declared In: FBSDKLoginManager.h

更多信息:https://developers.facebook.com/docs/reference/ios/current/class/FBSDKLoginManager/