human torch
human torch

Reputation: 303

c# Windows Phone 8.1 Twitter Feeds

I have a c# 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

Upvotes: 0

Views: 421

Answers (1)

Igor Ralic
Igor Ralic

Reputation: 15006

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();

Upvotes: 1

Related Questions