Hi,
I am using Twitter API for get an array with my follower ids with the following code:
$consumer_key='d5TKNSeJQQcpWM6ikJ2GbOhH7'; //Provide your application consumer key
$consumer_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; //Provide your application consumer secret
$oauth_token = '104867801-jwV4IsTRZHiRcgtTdXRT8FaWoHw2Sbw3d027qV5L'; //Provide your oAuth Token
$oauth_token_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; //Provide your oAuth Token Secret
require "twitteroauth/autoload.php";
use Abraham\TwitterOAuth\TwitterOAuth;
$connection = new TwitterOAuth($consumer_key, $consumer_secret, $oauth_token, $oauth_token_secret);
$query = 'https://api.twitter.com/1.1/followers/ids.json?screen_name=pmb_com&user_id=104867801'; //Twitter API query
$content = $connection->get($query);
$tab = (array)$content;
var_dump($tab);
When I run this code, I have an error.
array (size=1)
'errors' =>
array (size=1)
0 =>
object(stdClass)[8]
public 'message' => string 'Sorry, that page does not exist' (length=31)
public 'code' => int 34
I have check several times tokens and every steps of the procedure…
Any idea what am I doing wrong?
Thanks.