Invoking share charm programatically

I am developing a game for windows store/phone using unity and want to share score on facebook and other platforms using share charm. I have a button in my scene but I am unable to invoke share charm through it programatically. I tried using

DataTransferManager.ShowShareUI();

but it gives me following error:

activating a single-threaded class from mta is not supported

Can anyone tell me how can I achieve my desired functionality?

I haven’t ever used you “share charm” but your error basically asks you to do this:

        Thread threadAsk = new Thread(() =>
        {
            ///???
            DataTransferManager.ShowShareUI();
            ///???
        });
        threadAsk.SetApartmentState(ApartmentState.STA);
        threadAsk.CurrentCulture = Thread.CurrentThread.CurrentCulture;
        threadAsk.CurrentUICulture = Thread.CurrentThread.CurrentUICulture;
        threadAsk.Start();
       // threadAsk.Join();