PHP + Twitter Question

Discussion in 'PHP' started by Marketer456, Jun 16, 2009.

  1. #1
    Well this is mostly have to do with twitter than php but i am going to use php to manipulate an twitter xml file... so in other words here....

    When i get a list of my friends, an xml file, there is a node called <following> and the value of it is sometimes true, false and 0... now i figured that when it is false it basically means that they are following me but i am not following them... if it is true we are both following each other and if it is 0 then they are not following me... but it does not work for some reason i get weird results... is there any other way i can figure out who is following me and who am i following using php... any help would be greatly appreciated.

    Thank you,
    - Avo
     
    Marketer456, Jun 16, 2009 IP
  2. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #2
    Well, you are not going to find out using PHP alone. The data is exposed via the Twitter API.

    The return value for following is below:

    Return value: following
    Description : boolean indicating if the referenced user is following another user
    Examples: true, false
     
    Social.Network, Jun 16, 2009 IP
  3. Marketer456

    Marketer456 Peon

    Messages:
    120
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Whats does 0 mean then becasue there is also 0 there...

    Thanks for your answer.

    - Avo
     
    Marketer456, Jun 17, 2009 IP
  4. ven

    ven Member

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    0 should be false.
    Cheers!
     
    ven, Jun 17, 2009 IP
  5. Marketer456

    Marketer456 Peon

    Messages:
    120
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ohhhhh thaaanks =]
     
    Marketer456, Jun 24, 2009 IP