简体   繁体   中英

c# Windows Phone 8.1 Twitter Feeds

I have ac# windows phone 8.1 application and I am able to do the login validation using this code:

             user = await App.MobileService.LoginAsync(MobileServiceAuthenticationProvider.Twitter);

            if (user.UserId != "")
                message = "You are now signed in -" + user.UserId;
            else
                message = "You must log in. Login Required";

            var dialog = new MessageDialog(message);
            dialog.Commands.Add(new UICommand("OK"));
            await dialog.ShowAsync();

I want to retrieve twitter feeds of this particular user. I tried using TwitterSharp API but it works only for windows phone 8 apps and not 8.1

Your question is way too broad, but there are some steps you can take to get the desired result.

  1. Check out LINQ to Twitter , one of the best Twitter libraries out there
  2. Read the documentation about fetching Twitter feed with this library

It comes down to doing something like this:

var tweets = await (from tweet in twitterCtx.Status
                    where tweet.Type == StatusType.Home
                    select tweet).ToListAsync();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM