Öncelikle https://github.com/abraham/twitteroauth adresinden indireceğiniz repo içindeki twitteroauth klasörünü projenize kopyalayın. Daha sonra https://apps.twitter.com/app/new sayfasına girerek yeni bir uygulama oluşturun. Uygulama oluşturduktan sonra Access Token oluşturun. Ve daha sonra uygulama penceresinin sağ üst kısmında yer alan Test Oauth butonuna tıklayın, Consumer ve Access Token bilgilerini aşağıdaki kodlarda ilgili yerlere yazın.

<?php

	header('Content-Type: text/html; charset=utf8');

	require 'twitteroauth/twitteroauth.php';

	$consumer_key = 'vpGpOVflQ9HmUfmC9u3aWMoET';
	$consumer_secret = 'RSnuOYFczc5aRA3WQeYaoLsyreiL9AanMLaXFVtTT5RwACG02N';
	$access_token = '321035063-Hl7wAzNMT19MM81mgxxQZzzIJ1EtmNB8ZuPTEdwC';
	$access_token_secret = 'It8m5K5YoViCpVCjpZwZ3MOE2QNOAu4TRsEub0rQj9E9R';

	$twitter = new TwitterOAuth($consumer_key, $consumer_secret, $access_token, $access_token_secret);

	$username = 'emre_talu';
	$count = '5';

	$tweets = $twitter->get('https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name='.$username.'&count='.$count);

	foreach ($tweets as $tweet) {
		$id = $tweet->id_str;
		$text = $tweet->text;
		$created_at = date("Y-m-d H:i:s", strtotime($tweet->created_at));
		$user = $tweet->user;
		$link = 'https://twitter.com/'.$username.'/statuses/'.$id;
		$profile_image = $user->profile_image_url;

		?>

		<img src="<?php echo $profile_image; ?>" style="float: left; margin-right: 10px;" alt=""/><?php echo nl2br($text); ?> 
		<a href="<?php echo $link; ?>"><?php echo $link; ?></a>
		<br /><?php echo $created_at; ?> - #<?php echo $id; ?>
		<hr />

		<?php
	}

?>

Comments

  1. Türk porno indir cep iyi arkadaşlar film

    Video izle kategori asansör seks kadın porno video 4 Japon Kadın ve bir asansörde
    Bir Adam. Kadın Arayan 33. ⚡ Etiketler: ve, kadınlar,
    bir, Japon, adam, Japon porno filmler, Asyalı Porno Videolar, asansör.
    önizleme. 22:04. İki Siyah Ve Bir Beyaz Kadın Lezbiyen Seks Zevk ⚇ Kullanıcı:
    sexmenu ⇱ Boyutu: 360 x 240 ↔ Kalite.

  2. pharmacie en ligne espagnole vendant du nasobec

    Do you mind if I quote a couple of your articles as long
    as I provide credit and sources back to your webpage?
    My website is in the exact same niche as yours and my
    visitors would certainly benefit from some of the information you provide here.
    Please let me know if this alright with you. Thank you!

  3. prix du dexona au Maroc

    I was wondering if you ever thought of changing the page layout of your site?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could
    connect with it better. Youve got an awful lot of text
    for only having 1 or 2 images. Maybe you could space it out better?

  4. omnipen en pharmacie espagnole

    I just like the helpful info you provide in your articles.
    I will bookmark your blog and test once more right here frequently.
    I’m slightly sure I’ll be informed lots of new stuff right here!
    Best of luck for the following!

  5. farmacia en línea de España para el cycrin

    I’m amazed, I have to admit. Rarely do I come across a blog that’s both
    educative and entertaining, and without a doubt, you have hit the nail
    on the head. The problem is an issue that not enough people are
    speaking intelligently about. I’m very happy that I came across this in my search for something relating to this.

  6. Jeremy

    I’m pretty pleased to uncover this page. I need to to thank you for ones time for
    this particularly fantastic read!! I definitely savored every part of
    it and I have you saved as a favorite to see new stuff
    on your blog.

  7. Sofia

    Hi, i think that i saw you visited my website thus i came to “return the favor”.I’m attempting to
    find things to enhance my site!I suppose its ok to use a few of your ideas!!

  8. Kay

    Hey, I think your site might be having browser compatibility issues.
    When I look at your blog in Safari, it looks fine but when opening in Internet Explorer, it has some
    overlapping. I just wanted to give you a quick heads up!

    Other then that, amazing blog!

  9. Salina

    Magnificent web site. A lot of useful information here.
    I am sending it to a few friends ans also sharing in delicious.
    And obviously, thanks to your effort!

  10. clenbuterol bestellen in België online

    Hey there just wanted to give you a quick heads up.

    The words in your post seem to be running off the screen in Safari.
    I’m not sure if this is a formatting issue or something to do with internet browser compatibility
    but I thought I’d post to let you know. The design and style look great though!
    Hope you get the problem resolved soon. Many thanks

  11. Lynsey

    Howdy just wanted to give you a quick heads up. The text
    in your article seem to be running off the screen in Safari.
    I’m not sure if this is a formatting issue or something to do with internet browser compatibility
    but I figured I’d post to let you know. The style and design look great though!
    Hope you get the issue resolved soon. Many thanks

  12. Jannie

    Quality posts is the key to interest the viewers to pay a quick visit the website, that’s what this web page is providing.

  13. Velencia

    Hello, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam feedback?

    If so how do you protect against it, any plugin or anything you
    can suggest? I get so much lately it’s driving me insane so any support is very much appreciated.

  14. Chandrea

    Link exchange is nothing else but it is just placing the other person’s weblog link on your page at suitable place and other person will also do same in support of
    you.

  15. Giuseppina

    I blog often and I really appreciate your information. This article has
    truly peaked my interest. I will book mark your blog and keep
    checking for new details about once a week.
    I subscribed to your Feed as well.

  16. Jerri

    I was recommended this blog by my cousin. I am not
    sure whether this post is written by him as no one else know such detailed about my difficulty.
    You’re amazing! Thanks!

  17. Jina

    of course like your website but you have to check the spelling on quite a few of your posts.
    Several of them are rife with spelling problems and I in finding it very bothersome to inform the reality then again I will certainly come again again.

  18. Leonard

    Fine way of describing, and pleasant post
    to obtain facts concerning my presentation subject, which i am going to deliver in university.

  19. Chandra

    It’s awesome to visit this site and reading the views of all mates on the topic of this
    article, while I am also keen of getting knowledge.

  20. Randy

    It’s a pity you don’t have a donate button! I’d
    without a doubt donate to this superb blog! I guess for now i’ll settle for bookmarking
    and adding your RSS feed to my Google account.
    I look forward to brand new updates and will share this blog with my
    Facebook group. Talk soon!

  21. Gertrude

    I have been browsing online more than 4 hours today, yet I never found any interesting article
    like yours. It is pretty worth enough for me. In my opinion, if all web owners and
    bloggers made good content as you did, the web will be a lot more useful than ever before.

  22. Daniella

    Woah! I’m really digging the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s challenging to get that “perfect balance” between superb usability
    and visual appeal. I must say you have done a awesome job with this.
    In addition, the blog loads super quick for me on Firefox.
    Excellent Blog!

  23. Teresa

    Hi there! Do you know if they make any plugins to safeguard
    against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any recommendations?

  24. Riley

    Hurrah! At last I got a webpage from where I know how to genuinely obtain useful data concerning my study and knowledge.

harmdeva için bir cevap yazın Cevabı iptal et

E-posta hesabınız yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Şu HTML etiketlerini ve özelliklerini kullanabilirsiniz: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>