Corona Sdk与社交网络整合

问题描述 投票:1回答:1

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

谢谢,

facebook corona
1个回答
0
投票

您可以使用插件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,email等等。

© www.soinside.com 2019 - 2024. All rights reserved.