2015-10-28 60 views
0

我在我的應用enter image description here中發佈了一條Facebook功能。 成功後,我想檢查玩家與誰共享帖子。 我的目的是爲了避免成功的進步,以防他選擇了「Only me」選項。指示用戶與Facebook共享Facebook的帖子 - iOS

可能嗎?有任何想法嗎?

+0

成功在於用戶沒有取消彈出。 例如:FBWebDialogResult = FBWebDialogResultDialogCompleted。 我需要它進行分析。 –

+1

您不直接獲取該信息。如果您獲得了帖子ID,那麼您可以通過API查看帖子,然後檢查其隱私設置。 – CBroe

+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/