Auto post on Twitter with PHP - Twitter API

Twitter provide API which we can use for auto post on twitter wall. So here are the few steps for the use of twitter API. This is very simple process. You will have to follow only few step for using the PHP API.

How to use twitter API for auto posting on twitter wall?

Create twitter APP:-  

First of all we have to create an account on twitter and then we have to go on twitter developer website ( and sign in twitter account. After that we will go to create for twitter app. Press "create new application link on twitter developer website  and create a new twitter app. This is very simple, after filled all required fields your twitter application will be ready for use. After the creation of twitter app, we will get the CONSUMER_KEY, CONSUMER_SECRET, OAUTH_SECRET keys for entering in the index file.

Create twitter access token:-

After successfully creation of twitter app. Now we will have to go twitter access token, that will use for twitter login and posting. This is very simple, there will be a button for create access token press on that button then you get your access token. Copy that code, this code will enter on the place of OAUTH_TOKEN in the index file.

Download PHP library or PHP API from GitHub:-

Now we will go to for download the php library or PHP API from the GitHub website. Here is the link for download PHP library ( where we can download the php library.

Setup of PHP API and Index.php file:-

Finally all these step has been completed. Now we will have to setup of twitter API and create a new index.php file on the outside of the twitter API folders and put  the CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_SECRET in the PHP API code which we got from php app. Now there is one question that is where does we get the code of index file, for the code of index file you can go here ( ), here you will find the index.php file code, copy that code and paste it on index file. Now enter all the keys and twitter access token in index.php file.
After that please run the index.php file and you will get the result on twitter wall.


this is the line of code where you will have to enter the access token and all the secret key. After all setup when you hit the twitter API output then it will work and post automatically on your twitter wall ( which you have loged in ). You can test it also on localhost by using any free local-server like xamp or wamp. There is no other different process for localhost, this is a common process.

Also Read - How to Trend on Twitter Quickly

Post a Comment


  1. I have you bookmarked your site to look at the new stuff you post.
    Buy Bulk Twitter accounts

    1. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it.
      Tangki Panel

  2. Thanks a lot for your positive feedback.

  3. Auto post on twitter with the help of php API explained in very attractive way thanks to share stuff like this hope you share lot of stuffs like this in future.
    Buy Bulk PVA accounts

  4. I am impressed. I don't think Ive met anyone who knows as much about this subject as you do. You are truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. Really, great blog you have got here. auto repair Manalapan NJ

  5. I have gone through your post and I found it very helpful. Looking forward to seeing more post from you.
    Buy gmail accounts

  6. You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. auto message sender

  7. Very nice post here and thanks for it .I always like and such a super contents of these post.
    phone verified gmail accounts

  8. Great article with an excellent idea!Thank you for such a valuable article. I really appreciate for this great information.
    <a href=">Instagram pva accounts </a>

    1. Great article with an excellent idea!Thank you for such a valuable article. I really appreciate for this great information.
      Instagram pva accounts

  9. The keen PHP software engineers keep the web application secure by never believing the information presented by clients. They generally check, channel and sterilize all client data to shield the application from differing security dangers.Why use Laravel

  10. One of the most interesting things about Albania is its history. Visit the house of leaves in Tirana and learn more about the dictatorship era of the country Albania History

  11. Rafting in Osum river in Albania is a wild experience. The beauty of its canyon will make it an unforgettable experience Albanian Art

  12. Solicitation that your staff put themselves on LinkedIn. It may sound insane since numerous individuals see LinkedIn as an occupation board, however it is a decent method for recovering different backlinks to your site which will enable you to rank in web crawlers. go now

  13. Hey,
    thank you for help - your article is very helpful

  14. I discovered your weblog site on google and examine a couple of of your early posts. Proceed to keep up the very good operate. I just additional up your RSS feed to my MSN News Reader. In search of ahead to studying more from you afterward!? I’m typically to running a blog and i actually admire your content. The article has really peaks my interest. I’m going to bookmark your site and hold checking for brand new information.used cars for sale in nigeria

  15. When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. smm panel

  16. YouTube is currently the number 2 web crawler. YouTube videos can be inserted on sites, Facebook pages and can without much of a stretch be shared by means of LinkedIn,Twitter Video Download Foursquare and Twitter.

  17. That is Software licenses allude to licenses that could be allowed on items or procedures (counting strategies) which incorporate or may incorporate software as a huge or if nothing else important piece of their usage, for example the structure wherein they are placed practically speaking (or used) to deliver the impact they mean to give.

  18. Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. automated access