Help with logging out of Twitter
I am trying to log in to Twitter and submit a tweet in vb6.
I should use the REST API but it is way too much confusing.
So I thought I would use the internet control.
The internet control is named to 'ww' and I use this URL to navigate to the login page.
Am using the mobile page because it is simpler and loads faster.
I have two text boxes and a command button which serve as the username & password fields, and as the Sign In button.
The internet control's visible property is set to false.
Then I navigate to this page to compose a tweet and just fill the text field with the data from another textbox which serves as the Tweet's content and then the user clicks on this other command button which serves as the submit button in the page.
Now the problem is that even after my application exits, and reopens, when the internet control navigates to the login page it doesn't show the log in page, but the home page and I am logged in.
How can I prevent this from happening?
I would try to send the click command on the 'Me' button in the twitter's mobile homepage, wait for the page to load, and then send the click command to sign out? But I don't know how to send the click command for the 'Me' button because it is just an image and it doesn't have a name.
Anyone can help me? If you didn't understand the thread just ask.
Thank you in advance :)
Re: Help with logging out of Twitter
How do you log-in in the first place?
Re: Help with logging out of Twitter
Is your webbrowser hidden when you do all this?
If so, instead of having to log out all the time before login in, simply create a new internet explorer medium window (private mode) and it will never stay logged in as it was on private....
If not well you could check the webbrowser.locationname and if its still the login page then you would log out click on the page's log out button.
Re: Help with logging out of Twitter
I will attach the project as soon as I can because now I don't have access to a PC.
Max, I don't use an Internet Explorer instance. I am just using the Microsoft Internet Control (SP6) and yes it is not visible. I will try what you suggested as soon as I can and post here the results. Thank you both for the help :)
1 Attachment(s)
Re: Help with logging out of Twitter
Here is the project. Quick Edit for the first post: The control is visible. Otherwise it wouldn't work. This is just a set up on the spot project. My intention of logging in to Twitter and tweeting is part of a bigger project.
Attachment 103985
Re: Help with logging out of Twitter
Clear you browser settings to make sure it doesn't save you log in info then try again.
Re: Help with logging out of Twitter
And how exactly do I do that?
I'm kinda a newbie when it comes to network/internet related stuff in vb6
Re: Help with logging out of Twitter
http://twitter.com/tos
Quote:
8. Restrictions on Content and Use of the Services
...
... (NOTE: crawling the Services is permissible if done in accordance with the provisions of the robots.txt file, however, scraping the Services without the prior consent of Twitter is expressly prohibited)
Re: Help with logging out of Twitter
I know that it is against the Twitter's policy but I was left no choice. I tried to use their API so I went to the Twitter Dev page and read the documentation, but I didn't learn a thing. It was impossible to learn sth from the dev page. I either need an example or a startpoint. If you have any simple basic example of Twitter logging in it would help me a lot. And I can take it much further by myself. That's how I did it with XML parsing. I just needed a simple example and I finished my task in a great time :D
Re: Help with logging out of Twitter
Quote:
Originally Posted by
kevinKZzaka
I know that it is against the Twitter's policy but I was left no choice. ....
So are we :)
I would recommend getting in touch with them and see what they have to say. This thread is now closed.