Jul 10, 2014 at 2:51 PM
Edited Jul 10, 2014 at 2:53 PM
Perhaps a newbie question. I have an ASP.NET app that successfully posted a status update to
companies twitter account when certain events happened. This worked great until the api 1.1 was required and we got the 401 error. I did not use LinqToTwitter to do this.
Our code did not post or require the app's user to login/authenticate because it did not post to "their" status, but rather to our twitter account.
I am trying to get a simple VB.NET app working and using LinqToTwitterCP.dll ver. 2.1.12. VS 2010 and .Net 4.0.
When I execute the code below, my app opens a web browser and displays a twitter page asking for authorization for my 'TweetApp' to access my personal Twitter account (which I am logged into) on the line auth.GoToTwitterAuthorization.
When I click authorize on the Twitter page, it gives me a PIN and tells me enter that PIN into my twitter app. The code then gets a 401 error on the auth.Authorize() line.
Dim credentials As IOAuthCredentials = New InMemoryCredentials
credentials.ConsumerKey = "my consumer key"
credentials.ConsumerSecret = "my secret"
Dim auth As PinAuthorizer = New PinAuthorizer()
auth.Credentials = credentials
auth.GetPin = AddressOf VerifierCallback
auth.GoToTwitterAuthorization = Function(pageLink) Process.Start(pageLink)
So, my question is. If I want to just post to MY company account and not interact with any end user accounts, is this the correct method? Even though this is not my end goal, I am also not sure how to enter the 'PIN' as directed by the twitter page.
I am obliviously very confused. ;-) I know that the cosumerkey / ConsumerSecret are derived from my 'app' defined in my Twitter account. But All I want to do is automate status updates to my account. I do not want to access or use the end users account, just
Thanks in advance,