项目作者: jesusmartinoza

项目描述 :
Share to Facebook and Twitter using native share sheet
高级语言: Uno
项目地址: git://github.com/jesusmartinoza/Fuse.SocialShare.git
创建时间: 2017-03-16T19:18:58Z
项目社区:https://github.com/jesusmartinoza/Fuse.SocialShare

开源协议:Apache License 2.0

下载


Fuse.SocialShare

Library to use social share options in Fuse

Installation

fusepm

fusepm is a dependency manager for Fuse projects.

  1. $ fusepm install https://github.com/jesusmartinoza/Fuse.SocialShare

Manually

Copy the SocialShare.uno, FacebookShare.uxl and FacebookAppId.uxl to your project

Setup(Only Facebook share)

You will need to register for a Facebook App ID and fill it
in as Facebook.AppID in FacebookAppId.uxl

Usage

  1. var SocialShare = require("SocialShare");
  2. // Create your post or tweet using JSON
  3. var myTweet = {
  4. text: "This is a tweet from a Fuse app :D",
  5. // url : "https://www.fusetools.com",
  6. via : "fusetools"
  7. }
  8. var fbPost = {
  9. text: "This is a post from a Fuse app :D",
  10. imageUrl: "https://www.fusetools.com/assets/dist/images/frontpage/showcases@2x.png",
  11. url : "https://www.fusetools.com"
  12. }
  13. // Show the social share dialog.
  14. SocialShare.byTwitter(myTweet);
  15. SocialShare.byFacebook(fbPost);

A detailed example in MainView.ux

TODO