I am using mono develop on Ubuntu os.I downloaded Tweetinvi lib from nuget.This used to work on windows.
public static void Main (string[] args)
{
var appCredentials = new TwitterCredentials("AppCred", "AppCred");
var authenticationContext = AuthFlow.InitAuthentication(appCredentials);
Process.Start(authenticationContext.AuthorizationURL);
string pinCode = Console.ReadLine();
var userCredentials = AuthFlow.CreateCredentialsFromVerifierCode(pinCode, authenticationContext);
Auth.SetCredentials(userCredentials);
var firstTweet = Tweet.PublishTweet("Hello World!");
}
Now I get this exception : Unhandled Exception: System.TypeLoadException: Could not resolve type with token 01000015, in terminal.
I tried different versions of the Tweetinvi library and I got: System.TypeInitialization Exception,at
var authenticationContext = AuthFlow.InitAuthentication(appCredentials);
This worked well in Xamarin Studio in Windows but I must do this in Linux.I guess I must add a reference or something so that ubuntu can open firefox and start authentication process.