【问题标题】:Corona Sdk to get integrated with social networksCorona Sdk 与社交网络集成
【发布时间】:2018-01-05 10:02:45
【问题描述】:

我只需要您的帮助,以允许通过 Corona SDK 在 Facebook 和 Twitter 上发帖,在发帖之前,我需要确保最终用户设备上安装了 facebook 或 twitter 应用程序。

谢谢,

【问题讨论】:

    标签: facebook coronasdk


    【解决方案1】:

    您可以使用插件CoronaProvider.native.popup.social

    -- To use this plugin, add an entry into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.
    settings =
    {
        plugins =
        {
            ["CoronaProvider.native.popup.social"] =
            {
                publisherId = "com.coronalabs"
            },
        },
    }
    
    -- and then in any button event use function
    native.showPopup( name, options )
    

    https://docs.coronalabs.com/plugin/CoronaProvider_native_popup_social/index.html https://docs.coronalabs.com/plugin/CoronaProvider_native_popup_social/showPopup.html

    这是一个非常通用的解决方案,因为它会自动为用户提供各种社交选择、在哪里发布,如果他的设备中有这样的 apk:twitter、facebook、skype、电子邮件等。

    【讨论】:

      猜你喜欢
      • 2014-10-16
      • 1970-01-01
      • 2013-12-04
      • 1970-01-01
      • 1970-01-01
      • 2011-03-21
      • 2011-07-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多