【问题标题】:Unity facebook SDK sharing on facebookUnity facebook SDK 在 facebook 上共享
【发布时间】:2015-07-16 02:49:35
【问题描述】:

我在使用 facebook unity SDK 的 FB.Feed 对话框时遇到了一些问题。我可以毫不费力地分享所有内容,但是当用户发布内容并希望使用 facebook“分享”按钮(在 facebook.com 上)分享他的帖子时,问题就来了。

用户可以共享的唯一内容是链接到 FB.Feed 中的页面。无法分享包含他的分数和难度的实际描述,因为我们希望用户能够分享他的分数,而不是链接中的 Facebook 页面。

是否缺少任何东西可以让用户分享他的实际分数而不是链接页面?

(忽略链接名称、标题和描述中的字符串,因为它们只是占位符)

FB.Feed(
            link: "https://www.facebook.com/pages/Retris-Reversed-Tetris/1570129109911797?fref=ts",
            linkName: "I just scored " + GameManager.CurrentScore + " points in Retris on " + GameManager.CurrentDifficulty + "!",
            linkCaption: "Checkout my awesome score on " + GameManager.CurrentDifficulty + " difficulty!",
            linkDescription: "I just scored " + GameManager.CurrentScore + " points on " + GameManager.CurrentDifficulty + "!",
            picture: "http://i1379.photobucket.com/albums/ah130/Redomex/logo512_zpskocz8jlk.png"
          );

感谢您的帮助

【问题讨论】:

    标签: facebook-unity-sdk


    【解决方案1】:

    您可以使用 Open Graph 来分享结构化故事。

    见:https://developers.facebook.com/docs/games/sharing#opengraphcustomstories

    【讨论】:

      【解决方案2】:

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-07-10
        • 1970-01-01
        • 2015-06-11
        • 2017-07-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多