skip to Main Content

I need to create line chart for my twitter followers . I have used following code to list the followers details.

$parameters = array('include_user_entities' => true);
$response = $this->api->get('followers/list.json', $parameters);

Its working fine .But its doesn’t probvide following date details. How can I get following date details using twitter api

2

Answers


  1. If you write:

    $parameters = array('include_user_entities' => true);
    $parameters = array();
    

    The second command overwrite the first. Thus $parameters contains an empty array. Try with this:

    $parameters = array('include_user_entities' => true);
    $response = $this->api->get('followers/list.json', $parameters);
    
    Login or Signup to reply.
  2. There is no way in the API to tell when someone followed you.

    Take a look at the API reference – https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-followers-list

    The only date in the returned object is created_at – that refers to when the account was created, not when it followed you.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search