Customize the twitter timeline


#1

Hello, I’m starting with twitter so please
help me. I have the following code from this site

<a class="twitter-timeline"
href="https://twitter.com/twitterdev"
data-widget-id=“YOUR-WIDGET-ID-HERE”>
Tweets by @twitterdev

This puts a timeline of the user “twitterdev”
on my page. My user “twitterdev” should be able to hide some of his tweets.
So I need to add a button or anything to each of the tweets inside the timeline
that take the Id of the tweet so when the timeline loads again only show the
visible tweets.


#2

A Twitter user timeline is managed by Twitter. You may choose to exclude replies from your user timeline widget but you cannot hide individual Tweets.


#3

Ok, tanks a lot. Now I was trying to do it with
the TwitterAPIExchange but it return’s only a blank page and I don’t know why.
I have my developer account and all my access tokens and keys. Here it’s the
code I’m using, it’s anything wrong???

<?php require_once('TwitterAPIExchange.php'); $settings = array( 'oauth_access_token' =>" My ### ", 'oauth_access_token_secret' =>" My ### ", 'consumer_key' => " My ### ", 'consumer_secret' =>" My ### " ); $url = "https://api.twitter.com/1.1/statuses/user_timeline.json"; $requestMethod = "GET"; $getfield = '?screen_name=RaidelTorres&count=20'; $twitter = new TwitterAPIExchange($settings); echo $twitter->setGetfield($getfield) ->buildOauth($url, $requestMethod) ->performRequest(); ?>

#4

sorry, my bad, I only have to add CURLOPT_SSL_VERIFYPEER => false to the CURL options.


#5

You may create a new Twitter user timeline widget from your Twitter settings page. The widget includes HTML markup enhanced by JavaScript once the page loads.
https://twitter.com/settings/widgets/new/user


#6