+ Reply to Thread
Results 1 to 9 of 9

MSXML2 Object unableto login facebook

  1. #1
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    MSXML2 Object unableto login facebook

    Hello everyone,

    I was just trying to get login facebook using MSXML2 object but I do not why its giving me an error.
    I am able to login using IE as object.
    I am using the following code.

    Please Login or Register  to view this content.
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: MSXML2 Object unableto login facebook

    The easiest method is to include the password and username with in the URL. You need to find the elements (ID and tagname) of password and username from the source and include them with URL.

    This is how I log in to Hotmail. I have changed some of the details as they are personal data.

    Please Login or Register  to view this content.
    Last edited by AB33; 07-19-2015 at 07:08 AM.

  3. #3
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: MSXML2 Object unableto login facebook

    Thanks.. I should try this..
    xHttp.send "[email protected]&form-login-password=mypassword"
    The issue is that I can easily login with internet explorer but unable to login with MSXML2. I get different text by using following:-
    MSXML2
    Please Login or Register  to view this content.
    IE
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: MSXML2 Object unableto login facebook

    If you could log in using MSXML2, then what you want to do after you are in is another issue. I just used it as an example to merely illustrate how to log in.
    Sorry, I do not have access to Face book( Face Less book) since my account has been blocked years ago. I have not missed the gossip though.

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: MSXML2 Object unableto login facebook

    Msxml doesn't work like that. To use it you needs to understand http requests and cookies, that's why sticking to internet explorer is so much easier.

  6. #6
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: MSXML2 Object unableto login facebook

    If you could log in using MSXML2, then what you want to do after you are in is another issue.
    Internet explorer 11 does not allow you to save file without clicking on "Save". It always prompt you file dialog box due to increased securities.
    I just want to download some files from there.. with automation.
    I tried internet explorer but then I need "Sends Keys" commands which I really do not like.

    Thanks everyone...

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: MSXML2 Object unableto login facebook

    I'm afraid, without learning http, that's the best that you're going to get. I believe that mc84Excel wrote some code that gets rid of the download box if you search his threads

  8. #8
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: MSXML2 Object unableto login facebook

    Ok... I can do this with MSXML2, there was some issue with my Facebook page...while opening this website in Tab(window 8.1 tab) ...it is showing my page in "Hindi language". I was not able to fetch the correct elements. I did this in my desktop after installing Internet explorer 11, it works.
    Still I will look into windows API as mentioned in thread Automating Save/Downloads from Internet Explore by mc84Excel.

    I guess this is solved now..
    Anyone can use this thread for further inquiry..
    http://www.excelforum.com/excel-prog...r-in-ie11.html

  9. #9
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: MSXML2 Object unableto login facebook

    MSXML doesn't use internet explorer, so I'm not quite sure what you're talking about

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Strange problem on web extract using MSXML2.XMLHTTP / WinHttp.WinHttpRequest.5.1
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2013, 05:13 AM
  2. How does the MSXML2.XMLHTTP object connect to the same session
    By paranidharan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2013, 04:38 PM
  3. Importing XSD / XML Files in Excel using MSXML2 and DOM
    By uselessnut in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2013, 06:05 AM
  4. [SOLVED] MSXML2 Nodes Selection Issue
    By AKarel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-08-2013, 04:07 PM
  5. MSXML2.ServerXMLHTTP - illegal characters in responseText, how to replace?
    By lornen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2010, 11:12 PM
  6. find the login user and saving /login the name
    By belkin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2008, 08:24 AM
  7. MSXML2 - getElementsByTagName()
    By hoopz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2006, 03:41 AM
  8. [SOLVED] Unableto access "greater than or equal to" Where is it?
    By ddewdrops522 in forum Excel General
    Replies: 2
    Last Post: 01-13-2006, 07:10 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1