Xamarin.ShareQuick 1.0.2

dotnet add package Xamarin.ShareQuick --version 1.0.2
NuGet\Install-Package Xamarin.ShareQuick -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xamarin.ShareQuick" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.ShareQuick --version 1.0.2
#r "nuget: Xamarin.ShareQuick, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xamarin.ShareQuick as a Cake Addin
#addin nuget:?package=Xamarin.ShareQuick&version=1.0.2

// Install Xamarin.ShareQuick as a Cake Tool
#tool nuget:?package=Xamarin.ShareQuick&version=1.0.2


A Xamarin wrapper around Xaamrin.Auth APIs to share in Social Media(Facebook & Twitter for now)


    using Newtonsoft.Json;
    using Newtonsoft.Json.Linq;
    using Xamarin.Auth;
    using Subsystems.ShareQuickComponent.External;
    using Subsystems.CustomAccountStore.External;
    public partial class ViewController : UIViewController, IShareAuthenticationCallbacks, IAccountStoreConfiguration

IShareAuthenticationCallbacks - Overrides

    public void PerformAuthentication(WebRedirectAuthenticator authenticator)

        if (authenticator == null)
        var authViewController = authenticator.GetUI();
        PresentViewController(authViewController, true, null);


IAccountStoreConfiguration - Overrides

    public Tuple<AccountStore, string> GetAccountStore()

        var accountStore = AccountStore.Create();
        return (new Tuple<AccountStore, string>(accountStore, "com.monojit.development.TestShareComponent"));


Facebook (iOS)

    private CMPFacebookShareProxy _shareFacebookProxy;
    private async Task PerformFacebookAsync()

        var authenticationResult = await _shareFacebookProxy.AuthenticateUserAsync();
        DismissViewController(true, null);

        var paramsDictionary = new Dictionary<string, string>();
        paramsDictionary.Add("message", "This is a Another Test Message");

        var postResultInfo = await _shareFacebookProxy.PostStatusAsync(paramsDictionary);
        var idTokenInfo = JObject.Parse(postResultInfo.Item1);
        var idString = idTokenInfo["id"] as JToken;

        paramsDictionary.Add("message", "This is an Updated Message");
        var updateResultInfo = await _shareFacebookProxy.UpdatePostAsync(idString.ToString(), paramsDictionary);

        var removeResultInfo = await _shareFacebookProxy.RemovePostAsync(idString.ToString());

    _shareFacebookProxy = new CMPFacebookShareProxy();
    _shareFacebookProxy.CreateFacebookService("<Customer_Key>","<Customer_Secret>", this, this);

Twitter (iOS)

    private CMPTwitterShareProxy _shareTwitterProxy;
    private async Task GetTwitterFollowersAsync()

        var authenticationResult = await _shareTwitterProxy.AuthenticateUserAsync();
        DismissViewController(true, null);

        var followersInfo = await _shareTwitterProxy.GetFollowersListAsync();

        var dMUsersList = JsonConvert.DeserializeObject<DMUsers>(followersInfo.Item1);
        var dMUser = dMUsersList.UsersList[0];
        var idString = dMUser.UserIdString;
        await PerformDirectMessageAsync(idString);

    private async Task RefreshMessageListAsync()

        var authenticationResult = await _shareTwitterProxy.AuthenticateUserAsync();
        DismissViewController(true, null);
        var res = await _shareTwitterProxy.GetDirectMessagesAsync();

    private async Task PerformDirectMessageAsync(string idString, byte[] imageBytesArray = null)

        var authenticationResult = await _shareTwitterProxy.AuthenticateUserAsync();
        DismissViewController(true, null);

        var path = NSBundle.MainBundle.PathForResource("Contacts_69", "png");
        var img = UIImage.FromFile(path);
        var strm = img.AsPNG().AsStream();
        var memstrm = new MemoryStream();
        var bytes = memstrm.GetBuffer();

        var res = await _shareTwitterProxy.SendDirectMessageAsync(idString, "hello How are you??", null);

        var param = new Dictionary<string, string>();
        param.Add("status", "This is nice quick test of Tweek with image! Thanks!!");

        var res = await _shareTwitterProxy.SendTweetAsync(param, bytes);

    _shareTwitterProxy = new CMPTwitterShareProxy();
    _shareTwitterProxy.CreateTwitterService("<Customer_Key>","<Customer_Secret>", this, this);
Product Versions
MonoAndroid monoandroid90
Xamarin.iOS xamarinios10
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 634 10/23/2018
1.0.1 675 8/2/2018
1.0.0 641 8/2/2018

1. Icon updated