'Advanced Twitter Followers Widget for Wordpress.Advanced Twitter Followers Widget is an advanced Wordpress Twitter Followers Display widget which allow to customized in lots of way. You can add or remove options as well change color of background. No of Twitter followers to display and lots of. So Hope you will enjoy our this free wordpress widget :)', 'name' => 'Advanced Twitter Followers Widget' ); parent::__construct('advancedTwitterFollowersWidget','',$params); } /** * Register and enqueue style sheet. */ public function register_plugin_styles() { wp_register_style( 'advancedTwitterFollowersWidget', plugins_url( 'assets/style.css' , __FILE__ ) ); wp_enqueue_style( 'advancedTwitterFollowersWidget' ); } public function form($instance) { extract($instance); ?>
" />
" />
" />
" />
" />
" />
" />
" />
" />
" />
" />
" />
" />
" />
" />
" />
" />
trim($accessToken), 'oauth_access_token_secret' => trim($accessTokenSecret), 'consumer_key' => trim($consumerKey), 'consumer_secret' => trim($consumerSecret) ); $urlUserInformation = "https://api.twitter.com/1.1/users/show.json"; $url = "https://api.twitter.com/1.1/followers/list.json"; $requestMethod = "GET"; $getFollowers = "?cursor=-1&screen_name=$tUsername&skip_status=true&include_user_entities=false"; $twitter = new TwitterAPIExchange($settings); $stringUserInfo = json_decode($twitter->setGetfield($getFollowers) ->buildOauth($urlUserInformation, $requestMethod) ->performRequest(),$assoc = TRUE); $string = json_decode($twitter->setGetfield($getFollowers) ->buildOauth($url, $requestMethod) ->performRequest(),$assoc = TRUE); $followers = $stringUserInfo['followers_count']; $data = ""; $data .= "
$followers peoples erare following $userScreenName @twitter
follow us on twitter
"; } $data .= "