Nice forum - can you help me with the Twitter App - Printable Version +- BP Forums (https://bpforums.info) +-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55) +--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56) +---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8) +---- Thread: Nice forum - can you help me with the Twitter App (/showthread.php?tid=369) |
Nice forum - can you help me with the Twitter App - romanos8 - 07-27-2011 I think that I followed all steps but I getting this error: {"Exception of type 'TwitterAPIException' was thrown."} Can you check the code? Imports TwitterVB2 Public Class twitter Public tw As New TwitterAPI Dim consumer As String = "QQT9vjRAYODUr8VNDM6A5w" Dim consumersecret As String = "4fM7Tkw24HpWlCxh3hJPyjNbu1jtKuUWtvUSJyf94g" Public oauthtoken As String Public oauthtokensecret As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim url As String = tw.GetAuthorizationLink(consumer, consumersecret) Process.Start(url) Catch ex As Exception End Try End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If TextBox1.Text = "" Then MsgBox("You must insert a code!") Else 'Proceed Dim isValid As Boolean = tw.ValidatePIN(TextBox1.Text) If isValid = True Then oauthtoken = tw.OAuth_Token oauthtokensecret = tw.OAuth_TokenSecret tw.AuthenticateWith(consumer, consumersecret, oauthtoken, oauthtokensecret) Label2.Text = tw.AccountInformation.Name Else MsgBox("Wrong code!") End If End If End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click tw.AuthenticateWith(consumer, consumersecret, oauthtoken, oauthtokensecret) tw.Update(TextBox2.Text) End Sub End Class Re: Nice forum - can you help me with the Twitter App - brandonio21 - 07-30-2011 What line is the error being thrown at? Re: Nice forum - can you help me with the Twitter App - Santhosh_apk - 05-09-2013 i'm also facing the same problem. But my problem is "When i click the open code button, i don't get any of my web browsers opening". Would you please help me out with it. I struggled a lot with the coding but all went in vein. Please please please help me out Brandonio |