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

  • SEARCH
  • Home
  • 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 7537289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:48:38+00:00 2026-05-30T06:48:38+00:00

Beginning to play around with the Twitter API and chose to use the Twitterizer

  • 0

Beginning to play around with the Twitter API and chose to use the Twitterizer library to interface with the API. Currently using a testing project to do some simple task, I have ran into an issue that I cannot seem to find any information on in the forums or here on stack.

The Setup

  1. Using Twitterizer Version 2.4 (NuGet)
  2. Using NewtonSoft JSON Version 4.0.2 (Had to downgrade from 4.0.8 because of serialization issues)
  3. .Net 4.0/MVC project

Here is the code snippet that is throwing the exception:

var token = dbContext.TwitterProfiles.Where(x => x.TwitterId == MySuperSecretId).First();
var oAuthToken = new OAuthTokens
    {
        AccessToken = token.Token,
        AccessTokenSecret = token.Secret,
        ConsumerKey = ConfigurationManager.AppSettings["TwitterConsumerKey"],
        ConsumerSecret = ConfigurationManager.AppSettings["TwitterConsumerSecret"]
    };

TwitterResponse<TwitterStatusCollection> mentionsResponse = TwitterTimeline.RetweetsOfMe(oAuthToken);

The last line pukes up a Null Ref Exception

Stack Trace:

   at Twitterizer.Commands.RetweetsOfMeCommand.Init()
   at Twitterizer.Core.CommandPerformer.PerformAction[T](ICommand`1 command)
   at Twitterizer.TwitterTimeline.RetweetsOfMe(OAuthTokens tokens, RetweetsOfMeOptions options)
   at Twitterizer.TwitterTimeline.RetweetsOfMe(OAuthTokens tokens)
   at TwitterTest.Controllers.HomeController.GetRetweets() in C:\Users\Tommy\Documents\Visual Studio 2010\Projects\TwitterTest\TwitterTest\Controllers\HomeController.cs:line 85
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)

I have seen the previous question regarding a Null Reference exception in the library, but that issue was on a previous version (2.3.1). Anyone came across this/know a parameter or something I should send to this function/etc? I should say that I have successfully used the Timeline.Mentions and User.GetFollowers functions without problem, so this tells me I have the library configured somewhat correctly…

  • 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-05-30T06:48:40+00:00Added an answer on May 30, 2026 at 6:48 am

    Ok – I may have it, but am going to do a little more testing first. This particular function has an overloaded version with RetweetsOfMeOptions as the second parameter and in my example, I was not using this version. However, if I add this line of code:

    var options = new RetweetsOfMeOptions {Count = 25, UseSSL = false};
    

    And update my function call to use the overloaded call:

    TwitterResponse<TwitterStatusCollection> mentionsResponse = TwitterTimeline.RetweetsOfMe(oAuthToken, options);
    

    I did not get the error. Once I am certain this was it – I will post to the Twitterizer forum/bug tracker as a potential issue.

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

Sidebar

Related Questions

I'm at the beginning/middle of a project that we chose to implement using GWT.
I am just beginning to play around with .NET (using C#). Which namespace, aside
I'm just beginning to play with the Twitter Streaming API. If I specify $sc->setTrack(array('just
I'm beginning to play around with MongoDB and I'm wondering if it's possible to
At the beginning of a level in my XNA based game, I'm using MediaPlayer.Play()
Since beginning to use VB.NET some years ago I have become slowly familiar with
I'm using flash.net.NetStream and flash.media.Video to play a .flv, here is some code: var
I am beginning to play around with ARC, and one of the first experiements
I am just beginning to play around with node.js and was looking through the
Gang, I am beginning to play around with pySQLite and I'm trying to find

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.