如果用户与 "Friends" 或 "Only me" 共享 link,我可以从回调函数中知道吗?

Can I know from the callback function, if user shared the link with "Friends" or "Only me"?

我正在制作一款手机游戏,玩家可以在其中分享他的分数。 我想知道他是分享给 "Only me" 还是他所有的朋友。

能否从回调函数中检索到此信息?

Facebook 文档说响应数据是 "post_id",但我不确定我是否搜索了正确的文档。

如果您使用 FB API for unity3d,您一定已经查看了免费对话框 API,它位于此处:

https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.2?locale=es_ES

正如API所说,post_id参数允许你得到"The ID of the posted story, if the person chose to publish."。这意味着您无法访问除此 ID 号之外的更多信息。

因此,要获取您的发帖收件人("Only me" 或 "Your friends"),您必须从您的 FB API 请求中获取信息。如果您获得请求信息,您可以访问 to 参数并从中获取收件人。