1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Facebook application help

Discussion in 'Visual Basic .NET' started by Dimension, Sep 21, 2010.

  1. Dimension

    Dimension Newbie

    Joined:
    Jul 11, 2009
    Messages:
    9
    Likes Received:
    0
    Location:
    North Yorkshire, England
    I?ve created a Facebook login sub in vb.net(which works fine) and would now like to accept all my friend invites. The problem I have is Httpwebrequest doesn?t use a JavaScript interpreter so JavaScript generated content isn?t shown. I can?t access the parameters I need to send to accept the requests. I can visit the mobile site and accept one friend request at a time then reload the page but it seems a bit of a slow way of going about it. If anyone would care to elaborate on how they go about it I?d be very grateful. Oh and if anyone wants my login sub or help with youtube programs just ask.
     
  2. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET
    the content you need should be either on the page or accessed via an AJAX request to a specific url.

    the content isn't generated via javascript per se, but rather data that is already in the page is manipulated by the client side script or requested by it via normal http requests.

    you don't need a js interpreter, rather you need to find where the information is being held (presumably some form of friend ID) and interact with it accordingly.
     
  3. Dimension

    Dimension Newbie

    Joined:
    Jul 11, 2009
    Messages:
    9
    Likes Received:
    0
    Location:
    North Yorkshire, England
    Have you ever looked at the facebook javascript? It is crazy complex, If you have an example please show.
     
  4. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET
    i have looked at it once or twice, nothing in depth though.

    sll websites that leverage AJAX have a ton of client script. i know this isn't the answer you want to hear, but sometimes you need to walk through it all line by line till you find what you need. it's just the nature of the beast.

    also getting yourself a quality packet logger is essential. that will help you find the requests you need and can also provide short cuts in situations like this if you know what you're looking for.
     
    • Thanks Thanks x 1
  5. Dimension

    Dimension Newbie

    Joined:
    Jul 11, 2009
    Messages:
    9
    Likes Received:
    0
    Location:
    North Yorkshire, England
    I took your advice and got a better packet sniffer, turns out my old one wasn't showing all the packets. Got it working now:)
     
  6. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET
    glad to hear it. :)

    make that money!