Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8139651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:53:56+00:00 2026-06-06T11:53:56+00:00

this is the my first question in SO witch I use alot btw :).

  • 0

this is the my first question in SO witch I use alot btw :). this is the problem/challenge:

I’m building a service where the user can select a number of his facebook and twitter friends, he will then get a combined list of tweets and statuses of those. Facebook was no problem using batch request was very useful and easy to implement. Im trying to get the same result from twitter, but this seems harder then it seem.

I have a list of all my friends (name and user_id), I want to select a few of those friends and retrieve their tweets. Im using linqToTwitter, a direct HTTP request is also welcome :).

this is what im trying:

var tweetsResult =
                (from search in twitterCtx.Search
                  where search.Type == SearchType.Search &&
                    search.Query == "from:cinek24 OR from:blaba"
                  select search).Single();

this works with public users like cnn but not private friends, and yes i have valid tokens.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:53:57+00:00Added an answer on June 6, 2026 at 11:53 am

    Here’s how you would do the users look-up in LINQ to Twitter:

            var users =
                (from user in twitterCtx.User
                 where user.Type == UserType.Lookup &&
                       user.ScreenName == "cinek24,blaba"
                 select user)
                .ToList();
    
            users.ForEach(user => Console.WriteLine("Name: " + user.Name));
    

    More info here:

    http://linqtotwitter.codeplex.com/wikipage?title=Querying%20User%20Details&referringTitle=Getting%20User%20Information

    Once you have the users, then you’ll have to query each of them for their tweets because the user lookup will only return their last tweet, like this:

            var statusTweets =
                from tweet in twitterCtx.Status
                where tweet.Type == StatusType.User
                      && tweet.ScreenName == "cinek24"
                      && tweet.Count == 40
                select tweet;
    
            tweets.ToList().ForEach(
                tweet => Console.WriteLine(
                    "Name: {0}, Tweet: {1}\n",
                    tweet.User.Name, tweet.Text));
    

    More info on that query here:

    http://linqtotwitter.codeplex.com/wikipage?title=Querying%20the%20User%20Timeline&referringTitle=Making%20Status%20Queries%20and%20Calls

    Joe

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've looked at this question: Select first instance only with XPath? But if I
First of all, this is a follow-up question to Should I use WCF or
this is my first question, but i use this site a lot this last
This is my first question. I gave up and will use a hand rolled
nobody loved my first question about this: Creating Entity Framework objects with Unity for
I have this view (DetailsContainer, first class in code section of this question) with
this is my first time asking a question so bear with me. I am
this is my first question in here, and I would like to ask if
This is my first question on Stack Overflow, so I hope that I'm clear
This is my first question, so please be gentle. I'm trying out Apache Camel

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.