Unexpected results from stream

Hi All , I created a test stream with only one follow , @Balaganapati
However some responses I’m getting are from user @Sumantu
like this:

Whats going on here? ? I would attach json , but the spam filter blocking it
here is a top part of the json file:
{

“extended_entities”: {

“media”:…,

“id_str”: “1164129282605703168”,

“expanded_url”: “https://twitter.com/ESPNFC/status/1164129284480483329/photo/1”,

“source_status_id_str”: “1164129284480483329”,

“media_url_https”: “https://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg”,

“id”: 1164129282605703168,

“source_user_id_str”: “18091004”

}

]

},

“in_reply_to_status_id_str”: null,

“in_reply_to_status_id”: null,

“created_at”: “Wed Aug 21 14:19:49 +0000 2019”,

“in_reply_to_user_id_str”: null,

“source”: “<a href=“http://twitter.com/download/iphone” rel=“nofollow”>Twitter for iPhone</a>”,

“retweeted_status”: {

Can you provide a code snippet?

@Animesh Thanks for replying ,
My client is in Java world and I use twitter4j library . The code is identical to this example:

My query contains only one follow : @Balaganapati that I resolve to 2557521 using user show API.

and I get this json back , which is a retweet .
Does Twitter group users in any way ? say all ESPN users are somehow linked?

{
  "extended_entities": {
    "media": [
      {
        "display_url": "pic.twitter.com/y2E7ktezgd",
        "source_user_id": 18091004,
        "type": "photo",
        "media_url": "http://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg",
        "source_status_id": 1164129284480483329,
        "url": "https://t.co/y2E7ktezgd",
        "indices": [
          44,
          67
        ],
        "sizes": {
          "small": {
            "w": 544,
            "h": 680,
            "resize": "fit"
          },
          "large": {
            "w": 1080,
            "h": 1350,
            "resize": "fit"
          },
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "medium": {
            "w": 960,
            "h": 1200,
            "resize": "fit"
          }
        },
        "id_str": "1164129282605703168",
        "expanded_url": "https://twitter.com/ESPNFC/status/1164129284480483329/photo/1",
        "source_status_id_str": "1164129284480483329",
        "media_url_https": "https://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg",
        "id": 1164129282605703168,
        "source_user_id_str": "18091004"
      }
    ]
  },
  "in_reply_to_status_id_str": null,
  "in_reply_to_status_id": null,
  "created_at": "Wed Aug 21 14:19:49 +0000 2019",
  "in_reply_to_user_id_str": null,
  "source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone<\/a>",
  "retweeted_status": {
    "extended_entities": {
      "media": [
        {
          "display_url": "pic.twitter.com/y2E7ktezgd",
          "indices": [
            32,
            55
          ],
          "sizes": {
            "small": {
              "w": 544,
              "h": 680,
              "resize": "fit"
            },
            "large": {
              "w": 1080,
              "h": 1350,
              "resize": "fit"
            },
            "thumb": {
              "w": 150,
              "h": 150,
              "resize": "crop"
            },
            "medium": {
              "w": 960,
              "h": 1200,
              "resize": "fit"
            }
          },
          "id_str": "1164129282605703168",
          "expanded_url": "https://twitter.com/ESPNFC/status/1164129284480483329/photo/1",
          "media_url_https": "https://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg",
          "id": 1164129282605703168,
          "type": "photo",
          "media_url": "http://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg",
          "url": "https://t.co/y2E7ktezgd"
        }
      ]
    },
    "in_reply_to_status_id_str": null,
    "in_reply_to_status_id": null,
    "created_at": "Wed Aug 21 10:57:04 +0000 2019",
    "in_reply_to_user_id_str": null,
    "source": "<a href=\"https://www.spredfast.com/\" rel=\"nofollow\">Spredfast app<\/a>",
    "retweet_count": 2773,
    "retweeted": false,
    "geo": null,
    "filter_level": "low",
    "in_reply_to_screen_name": null,
    "is_quote_status": false,
    "id_str": "1164129284480483329",
    "in_reply_to_user_id": null,
    "favorite_count": 10732,
    "id": 1164129284480483329,
    "text": "Cristiano Ronaldo: The 🐐father. https://t.co/y2E7ktezgd",
    "place": null,
    "lang": "en",
    "quote_count": 198,
    "favorited": false,
    "possibly_sensitive": false,
    "coordinates": null,
    "truncated": false,
    "reply_count": 85,
    "entities": {
      "urls": [],
      "hashtags": [],
      "media": [
        {
          "display_url": "pic.twitter.com/y2E7ktezgd",
          "indices": [
            32,
            55
          ],
          "sizes": {
            "small": {
              "w": 544,
              "h": 680,
              "resize": "fit"
            },
            "large": {
              "w": 1080,
              "h": 1350,
              "resize": "fit"
            },
            "thumb": {
              "w": 150,
              "h": 150,
              "resize": "crop"
            },
            "medium": {
              "w": 960,
              "h": 1200,
              "resize": "fit"
            }
          },
          "id_str": "1164129282605703168",
          "expanded_url": "https://twitter.com/ESPNFC/status/1164129284480483329/photo/1",
          "media_url_https": "https://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg",
          "id": 1164129282605703168,
          "type": "photo",
          "media_url": "http://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg",
          "url": "https://t.co/y2E7ktezgd"
        }
      ],
      "user_mentions": [],
      "symbols": []
    },
    "display_text_range": [
      0,
      31
    ],
    "contributors": null,
    "user": {
      "utc_offset": null,
      "friends_count": 510,
      "profile_image_url_https": "https://pbs.twimg.com/profile_images/993576884498849792/zH7kViGI_normal.jpg",
      "listed_count": 10706,
      "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
      "default_profile_image": false,
      "favourites_count": 29,
      "description": "All things football. All the time. \n\nWatch ESPN FC exclusively on ESPN+ ⤵️",
      "created_at": "Sat Dec 13 01:33:04 +0000 2008",
      "is_translator": false,
      "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png",
      "protected": false,
      "screen_name": "ESPNFC",
      "id_str": "18091004",
      "profile_link_color": "4A913C",
      "translator_type": "none",
      "id": 18091004,
      "geo_enabled": true,
      "profile_background_color": "381020",
      "lang": null,
      "profile_sidebar_border_color": "D1CA8E",
      "profile_text_color": "39213B",
      "verified": true,
      "profile_image_url": "http://pbs.twimg.com/profile_images/993576884498849792/zH7kViGI_normal.jpg",
      "time_zone": null,
      "url": "https://es.pn/2NX6LVt",
      "contributors_enabled": false,
      "profile_background_tile": true,
      "profile_banner_url": "https://pbs.twimg.com/profile_banners/18091004/1537888142",
      "statuses_count": 132394,
      "follow_request_sent": null,
      "followers_count": 1859003,
      "profile_use_background_image": true,
      "default_profile": false,
      "following": null,
      "name": "ESPN FC",
      "location": null,
      "profile_sidebar_fill_color": "9DB381",
      "notifications": null
    }
  },
  "retweet_count": 0,
  "retweeted": false,
  "geo": null,
  "filter_level": "low",
  "in_reply_to_screen_name": null,
  "is_quote_status": false,
  "id_str": "1164180307341279237",
  "in_reply_to_user_id": null,
  "favorite_count": 0,
  "id": 1164180307341279237,
  "text": "RT @ESPNFC: Cristiano Ronaldo: The 🐐father. https://t.co/y2E7ktezgd",
  "place": null,
  "lang": "en",
  "quote_count": 0,
  "favorited": false,
  "possibly_sensitive": false,
  "coordinates": null,
  "truncated": false,
  "timestamp_ms": "1566397189351",
  "reply_count": 0,
  "entities": {
    "urls": [],
    "hashtags": [],
    "media": [
      {
        "display_url": "pic.twitter.com/y2E7ktezgd",
        "source_user_id": 18091004,
        "type": "photo",
        "media_url": "http://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg",
        "source_status_id": 1164129284480483329,
        "url": "https://t.co/y2E7ktezgd",
        "indices": [
          44,
          67
        ],
        "sizes": {
          "small": {
            "w": 544,
            "h": 680,
            "resize": "fit"
          },
          "large": {
            "w": 1080,
            "h": 1350,
            "resize": "fit"
          },
          "thumb": {
            "w": 150,
            "h": 150,
            "resize": "crop"
          },
          "medium": {
            "w": 960,
            "h": 1200,
            "resize": "fit"
          }
        },
        "id_str": "1164129282605703168",
        "expanded_url": "https://twitter.com/ESPNFC/status/1164129284480483329/photo/1",
        "source_status_id_str": "1164129284480483329",
        "media_url_https": "https://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg",
        "id": 1164129282605703168,
        "source_user_id_str": "18091004"
      }
    ],
    "user_mentions": [
      {
        "indices": [
          3,
          10
        ],
        "screen_name": "ESPNFC",
        "id_str": "18091004",
        "name": "ESPN FC",
        "id": 18091004
      }
    ],
    "symbols": []
  },
  "contributors": null,
  "user": {
    "utc_offset": null,
    "friends_count": 66,
    "profile_image_url_https": "https://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png",
    "listed_count": 0,
    "profile_background_image_url": "",
    "default_profile_image": false,
    "favourites_count": 7768,
    "description": null,
    "created_at": "Wed Sep 19 03:44:32 +0000 2018",
    "is_translator": false,
    "profile_background_image_url_https": "",
    "protected": false,
    "screen_name": "JMCal11",
    "id_str": "1042258110323326976",
    "profile_link_color": "1DA1F2",
    "translator_type": "none",
    "id": 1042258110323326976,
    "geo_enabled": false,
    "profile_background_color": "F5F8FA",
    "lang": null,
    "profile_sidebar_border_color": "C0DEED",
    "profile_text_color": "333333",
    "verified": false,
    "profile_image_url": "http://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png",
    "time_zone": null,
    "url": null,
    "contributors_enabled": false,
    "profile_background_tile": false,
    "statuses_count": 2232,
    "follow_request_sent": null,
    "followers_count": 7,
    "profile_use_background_image": true,
    "default_profile": true,
    "following": null,
    "name": "JayKAy",
    "location": null,
    "profile_sidebar_fill_color": "DDEEF6",
    "notifications": null
  }
}

Same deal with @Pushyanth and @Venya I search for @Pushyanth and get tweets from @Venya
Does Twitter maintain some sort of a group ? they don’t appear to be in a list

No, there is no grouping. Per the documentation for the follow parameter:

follow

A comma-separated list of user IDs, indicating the users whose Tweets should be delivered on the stream. Following protected users is not supported. For each user specified, the stream will contain:
  • Tweets created by the user.
  • Tweets which are retweeted by the user.
  • Replies to any Tweet created by the user.
  • Retweets of any Tweet created by the user.
  • Manual replies, created without pressing a reply button (e.g. “@Nawal I agree”).
The stream will not contain:
  • Tweets mentioning the user (e.g. “Hello @Nawal!”).
  • Manual Retweets created without pressing a Retweet button (e.g. “RT @Nawal The API is great”).
  • Tweets by protected users.

@Animesh thanks again for posting the documentation snippet . Parts of it are no longer correct like mentions do appear in the stream.
Something is going on with linked accounts there , not sure what. If anyone else comes across this oddity, pls drop a line.
good day !!

Are these replies, or mentions? there’s a specific difference here.

@Animesh I’ve observed the stream invoking my handler where my follow ID is in the mention list and nowhere else. Should this not happen and I’m missing something else? Thanks again and I really appreciate your time.

@Animesh what is #5 ?
“Will manual replies created without pressing a reply button” become a mention in Status json ?
or these should be replies?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.