Beispiel #1
0
        public ShareSelectPage()
        {
            this.InitializeComponent();
            //NEW TO ME
            TwitterService.Instance.Initialize("6GWfkd8FNvsoOkIIcvtkO27As", "eNXD7lxTEIejgHHUlNbwHPHvSYhSnrEscFnkb5EmZe9vgs22Ne", "http://ProjectTheia.Neckbearproductions.com");
            FacebookOAuthTokens facebookOAuthTokens = new FacebookOAuthTokens();

            facebookOAuthTokens.AppId          = "238666966599408";
            facebookOAuthTokens.WindowsStoreId = "s-1-15-2-2776648472-1957620464-412982307-1569838514-1341643823-2232788273-4259109485";
            var initialized = FacebookService.Instance.Initialize(facebookOAuthTokens);
        }
Beispiel #2
0
        public async Task TestInvalidOAuth()
        {
            var config = new FacebookDataConfig
            {
                UserId = "8195378771",
            };

            var tokens = new FacebookOAuthTokens
            {
                AppId     = "INVALID",
                AppSecret = "INVALID"
            };

            var dataProvider = new FacebookDataProvider(tokens);

            await ExceptionsAssert.ThrowsAsync <OAuthKeysRevokedException>(async() => await dataProvider.LoadDataAsync(config));
        }