Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

How to Add Pay With a Tweet Button for File Downloads in WordPress

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Add Pay With a Tweet Button for File Downloads in WordPress

Have you come across sites that require you to tweet before you can download the freebie? If you offer file downloads on your WordPress site, then you too can add this pay with tweet feature to your site. It allows users to get the freebie and spread the word at the same time. A win win solution for all. In this article, we will show you how to add pay with a tweet button for file downloads in WordPress.

Pay with a Tweet preview

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

First thing you need to do is download and install the Pay With a Tweet plugin. Upon activation, you will need to go to Pay with a Tweet » Configuration and configure the plugin.

Pay with a Tweet - Configuration

To use Pay with a Tweet plugin, you will need to create a Twitter App and then add your consumer key and secret key on this configuration screen. Don’t worry we will show you how to create a Twitter App and obtain these keys.

Creating a Twitter App

To create a Twitter App for Pay with a Tweet plugin, visit Twitter Developers website. Sign in with your Twitter username and password, and then click on your account name on the top right corner of the screen. A flydown menu will appear, and you need to click on My Applications to proceed.

Click on My Applications

On the next screen, you need to click on create new app button.

Click on Create New App button

Twitter will now display new application form. You need to provide an application name and description. In the website URL field, enter the URL of your website where you will be using this app. In the callback URL, you need to enter the callback URL shown in Pay with a Tweet plugin’s configuration screen. Lastly, you need to agree with the terms of service and click on Create your Twitter application button.

fill out the new app form

Twitter will now create the application and redirect you to the app dashboard. There you need to click on the Permissions tab to change the application permission. By default, newly created apps have read-only access, you need to change it change it to Read and Write.

Change your App Permission to Read and Write

After saving your new application settings, you need to click on the Test OAuth button. You will find your consumer key and consumer secret keys which you need to copy and paste in Pay with a Tweet’s configuration screen.

Adding File Downloads

Now that you have configured Pay with a Tweet plugin. The next step is to upload the file users will be able to download after the tweet. To do that, you need to go to Pay with a Tweet » Upload Files and select the files you want to upload.

Pay with a Tweet - Upload files

Once you have uploaded your files, they can be managed from Pay with a Tweet » Manage Files screen.

Creating Your Pay With a Tweet Button

To create your Pay With a Tweet Button, you need to click on Pay with a Tweet » New Payment Button. Enter a title for your payment and then add the tweet you want users to send when they click on the payment button.

Creating your first pay with a tweet button

The third option on the screen is to add a button image. This button image will be used to display your button. Click on the choose file button to add the image to upload.

After adding the button image, you need to select the download which users will receive once they send out the tweet. The file you uploaded earlier will appear here and you can select it. Lastly, you need to click on Create Payment Button to make this button live.

Adding a tweet button and selecting file download

Adding the Pay With a Tweet Button To a Post or Page

After you create your button, you can see and manage all your buttons on Pay with a Tweet » Manage Buttons screen. You will see a shortcode next to the button you just created.

To display your Pay with a Tweet button in a WordPress post or page, you need to copy this shortcode and paste it into your post/page. Once you publish your post, your users will be able to pay with a tweet to access the file download.

Since this will likely bring a lot of new users to your site, it’s time for you to prepare yourself and convert those visitors into subscribers and customers. If you have not already done so, then start building your email list, ask your users to sign up (see how we grew our email list by 600%). Make sure users can follow you on Twitter and promote your content to their other social networks (we use floating social bar for that).

We hope that this article helped you add a pay with a tweet button for file downloads in WordPress. If you found this article useful, then join us on Twitter or Google+.


Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »

Comments

  1. John says:

    Its a very good Article

  2. Anthony Franck says:

    I am a bit concerned that it has not been updated in two years. Does anyone have any issues with it? Thanks in Advance

  3. kksilvery says:

    Hi Syed,
    I’ve been looking for this for a while, finally solved it. Thank you wpbeginner.

  4. hamidul1 says:

    Great , Can You Please Give me tutorial for facebook , How to Do with this with Facebook like button?

  5. WPBeginner Staff says:

    Depends on how you use it, we don’t think that users would mind too much if you are offering something really good, and the tweet you are sending is reasonable.

    • Daniel Ortiz says:

      I always mind it, it’s definitely a sign of bad UI, how can you know something is really good, and even share it to your friends as something you’d recommend and trust if you didn’t download it yet? Maybe if you’re a 14-years-old boy it’s ok to share anything you want, but if you mind a little on your reputation as, let’s say, a developer (who probably have other developers following you), recommending something on your twitter is a big deal. Even paid stuff (whenever possible) usually offer a trial period simply because it’s not nice to charge (money or tweets) for something if the user doesn’t know if it’s worth it.
      Honestly, every time I see this I have the impression of being in a very unprofessional page, like those with surveys that take you nowhere.
      What COULD be nice (and even that must be done with caution) is to offer it as an option, or, if it’s a WordPress theme for example, display the option to tweet about it in the dashboard.

    • Daniel Ortiz says:

      it’s more like “I just downloaded this awesome video that I didn’t watch from…”
      EDIT:
      I just want to say that even though I find it extremely bad practice, I understand perfectly that you provide a tutorial for that. It’s a tool, and maybe, in a very very very very specific place, it can be used properly

  6. Kevin McKernan says:

    aka “things that absolutely every user hates”

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.