I am working on twitter api, and I am successfully posting the tweets on twitter with following code.
<?php $config['CONSUMER_KEY'] = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX'; $config['CONSUMER_SECRET'] = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX'; $config['ACCESS_TOKEN'] = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX'; $config['ACCESS_TOKEN_SECRET'] = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX'; $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $OAUTH_TOKEN, $OAUTH_TOKEN_SECRET); $content = $connection->get('account/verify_credentials'); $my_tweets_post = $connection->post('statuses/update', array( 'status' => 'This is my tweet text' )); ?>
but now i want to show the tweets which I have posted for specific country’s users like Canada. I have also seen the following link to post tweets for specific countries (Geo Targeting), but I am not getting that how to use parameters to tweet delivery by country.
Here is the link: https://dev.twitter.com/ads/campaigns/geo-casting
Please help me.
Thanks in advance.