Json request for user profile returns "following" as null


#1

Hello!
I m using json in my website in order to fetch twitter user profile details like followers and following.
If you visit this url:
https://api.twitter.com/1/users/lookup.json?screen_name=losangeles
you ll notice that it returns “following” as null.

See more here:

[
    {
        "id": 193352566,
        "profile_background_tile": false,
        "listed_count": 29,
        "profile_sidebar_fill_color": "DDEEF6",
        "location": "Los Angeles, CA",
        "utc_offset": -25200,
        "name": "Los Angeles",
        "is_translator": false,
        "time_zone": "Mountain Time (US & Canada)",
        "profile_image_url_https": "https://si0.twimg.com/profile_images/1128538710/los-angeles_normal.jpg",
        "contributors_enabled": false,
        "profile_background_color": "C0DEED",
        "protected": false,
        "geo_enabled": false,
        "profile_background_image_url_https": "https://si0.twimg.com/profile_background_images/157355295/la-at-night.jpg",
        "friends_count": 1,
        "lang": "en",
        "default_profile_image": false,
        "favourites_count": 1,
        "profile_background_image_url": "http://a0.twimg.com/profile_background_images/157355295/la-at-night.jpg",
        "statuses_count": 35839,
        "show_all_inline_media": false,
        "profile_link_color": "0084B4",
        "description": "Left wing,liberal,political junkie, animal rights activist, Bill Maher fan!! I love living in LA. No better place on earth!",
        "follow_request_sent": null,
        "verified": false,
        "screen_name": "LosAngeles",
        "profile_use_background_image": true,
        "id_str": "193352566",
        "notifications": null,
        "following": null,
        "profile_text_color": "333333",
        "profile_image_url": "http://a0.twimg.com/profile_images/1128538710/los-angeles_normal.jpg",
        "status": {
            "created_at": "Sat Apr 21 18:11:01 +0000 2012",
            "possibly_sensitive": false,
            "in_reply_to_screen_name": null,
            "place": null,
            "geo": null,
            "retweet_count": 1,
            "in_reply_to_status_id": null,
            "retweeted": false,
            "in_reply_to_user_id": null,
            "truncated": false,
            "id_str": "193763789286543361",
            "coordinates": null,
            "in_reply_to_status_id_str": null,
            "source": "<a href=\"http://twitterfeed.com\" rel=\"nofollow\">twitterfeed</a>",
            "contributors": null,
            "id": 193763789286543360,
            "in_reply_to_user_id_str": null,
            "favorited": false,
            "text": "#la Saturday hate mail-a-palooza: George Rockwell makes a settlement offer: The authors.\n\nThe goods are belo... http://t.co/bcH1BjrW #p2"
        },
        "default_profile": false,
        "url": null,
        "followers_count": 859,
        "profile_sidebar_border_color": "C0DEED",
        "created_at": "Tue Sep 21 16:25:04 +0000 2010"
    }
]

This is happening for the last one day at least while it used to work without any problems.


#2

Make sure that your request is being evaluated with authentication – look for an X-Warning header that might indicate your auth isn’t being recognized – without auth, a friendship comparison cannot be made. Also, if this service cannot determine the relationship status in an appropriate amount of time, it might fall back to “false” or “null”


#3

#4