jesusmartinoza / Fuse.SocialShare

Share to Facebook and Twitter using native share sheet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fuse.SocialShare

Library to use social share options in Fuse

Installation

fusepm

fusepm is a dependency manager for Fuse projects.

    $ 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

    var SocialShare = require("SocialShare");

    // Create your post or tweet using JSON
    var myTweet = {
        text: "This is a tweet from a Fuse app :D",
        // url : "https://www.fusetools.com",
        via : "fusetools"
    }
    var fbPost = {
        text: "This is a post from a Fuse app :D",
        imageUrl: "https://www.fusetools.com/assets/dist/images/frontpage/showcases@2x.png",
        url : "https://www.fusetools.com"
    }

    // Show the social share dialog.
    SocialShare.byTwitter(myTweet);
    SocialShare.byFacebook(fbPost);

A detailed example in MainView.ux

TODO

  • iOS facebook share.
  • Standard share sheet with picture. Official support by Fuse

About

Share to Facebook and Twitter using native share sheet

License:Apache License 2.0


Languages

Language:Uno 100.0%