Results 1 to 10 of 10

Thread: Help with logging out of Twitter

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2013
    Location
    Albania
    Posts
    101

    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

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Help with logging out of Twitter

    How do you log-in in the first place?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    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.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 2013
    Location
    Albania
    Posts
    101

    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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2013
    Location
    Albania
    Posts
    101

    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.
    twitter login.zip

  6. #6
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    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.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Feb 2013
    Location
    Albania
    Posts
    101

    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

  8. #8
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: Help with logging out of Twitter

    http://twitter.com/tos

    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)

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Feb 2013
    Location
    Albania
    Posts
    101

    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

  10. #10
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Help with logging out of Twitter

    Quote Originally Posted by kevinKZzaka View Post
    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.
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width