Title: Pay with a tweet
Author: Rolando Caldas
Published: <strong>May 24, 2013</strong>
Last modified: September 8, 2014

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/pay-with-a-tweet.svg)

# Pay with a tweet

 By [Rolando Caldas](https://profiles.wordpress.org/rolandocaldas/)

[Download](https://downloads.wordpress.org/plugin/pay-with-a-tweet.1.0.5.zip)

 * [Details](https://wordpress.org/plugins/pay-with-a-tweet/#description)
 * [Reviews](https://wordpress.org/plugins/pay-with-a-tweet/#reviews)
 *  [Installation](https://wordpress.org/plugins/pay-with-a-tweet/#installation)
 * [Development](https://wordpress.org/plugins/pay-with-a-tweet/#developers)

 [Support](https://wordpress.org/support/plugin/pay-with-a-tweet/)

## Description

This plugin does not need services of others, unless of course Twitter.

Create buttons so that your visitors can download files after posting on his twitter
the message you choose. You can display different buttons using shortcodes or the
widget included.

#### Some Features

 * Manage downloads
    - Files for use on “Pay with a Tweet” will be uploaded from the [upload files screen](http://www.example.com/wp-admin/admin.php?page=pay-with-a-tweet/admin/pwt-upload.php).
    - For uploading files using the file upload system WordPress.
    - The uploaded files are not part of the WordPress media manager.
    - Files are not accessible via web.
    - When you delete a file removes all the buttons that use it.
    - Access to the creation of a button from the file upload.
 * Manage buttons
    - Each button created is linked to a file. There can be multiple buttons linked
      to the same file.
    - Each button can set a title, the button image to use as button and the text
      to publish as tweet.
    - The buttons can be deleted or permanently delete. This second option will 
      delete the image and file.
 * Multiple languages support
    *The plugin includes English and Spanish. Furthermore,
   in pay-with-a-tweet-wp-plugin/tree/master/pay-with-a-tweet/languages ​​directory
   the .po is available for translation in other languages
 * Shortcodes
    - The plugin includes the shortcode `[pwt id ='']` to add the button anywhere
      in a post or page.
 * Widget
    - The plugin includes a widget to place the button on the sidebars. The widget
      allows you to enter a title, a text to display before the button and a dropdown
      to select the desired button.

[See all features](https://wordpress.org/plugins/pay-with-a-tweet/other_notes/)

### Features

#### Configuration

To use the plugin you must create a Twitter application and add the `key consumer`
and `consumer secret`.

When creating the Twitter application is necessary to properly set the `callback
URL`. This address is in the plugin [Configuration screen](http://www.example.com/wp-admin/admin.php?page=pay-with-a-tweet/admin/pwt-config.php).

#### Manage downloads

 * Files for use on “Pay with a Tweet” will be uploaded from the [upload files screen](http://www.example.com/wp-admin/admin.php?page=pay-with-a-tweet/admin/pwt-upload.php).
 * For uploading files using the file upload system WordPress.
 * The uploaded files are not part of the WordPress media manager.
 * Files are not accessible via web.
 * When you delete a file removes all the buttons that use it.
 * Access to the creation of a button from the file upload.

#### Manage buttons

 * Each button created is linked to a file. There can be multiple buttons linked
   to the same file.
 * Each button can set a title, the button image to use as button and the text to
   publish as tweet.
 * The buttons can be deleted or permanently delete. This second option will delete
   the image and file.

#### Multiple languages support

The plugin includes English and Spanish. Furthermore, in pay-with-a-tweet-wp-plugin/
tree/master/pay-with-a-tweet/languages ​​directory the .po is available for translation
in other languages

#### Shortcodes

The plugin includes the shortcode `[pwt id ='']` to add the button anywhere in a
post or page.

#### Widget

The plugin includes a widget to place the button on the sidebars. The widget allows
you to enter a title, a text to display before the button and a dropdown to select
the desired button.

#### Download process

When a user click on the button/link to download the file, he must accept to access
the website to post the tweet associated with the button, once properly released,
the download is automatically launched.

    ```
    The plugin does not store the user's access_token so the plugin may not post tweets in the user's account at any time unless the user expressly click on download file.
    ```

#### Stats

 * When somebody download a file via a button pay with a tweet, reference is stored(
   in your WP database) for statistical purposes.

## Screenshots

[⌊Configuration screen⌉⌊Configuration screen⌉[

Configuration screen

[⌊Manage files⌉⌊Manage files⌉[

Manage files

[⌊Upload files⌉⌊Upload files⌉[

Upload files

[⌊Upload files 2⌉⌊Upload files 2⌉[

Upload files 2

[⌊Manage buttons⌉⌊Manage buttons⌉[

Manage buttons

[⌊New button⌉⌊New button⌉[

New button

[⌊Widget⌉⌊Widget⌉[

Widget

## Installation

 1. Upload `pay-with-a-tweet` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to pay-with-a-tweet configuration page and fill the fields. Video tutorial:

## FAQ

  Is the code documented?

Yes, all the code is documented with phpDoc.
 In the doc folder you can see the 
HTML version.

  I click in the download button and HTTP error returned

Make sure you have correctly configured the plugin. See this video:

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Pay with a tweet” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Rolando Caldas ](https://profiles.wordpress.org/rolandocaldas/)

[Translate “Pay with a tweet” into your language.](https://translate.wordpress.org/projects/wp-plugins/pay-with-a-tweet)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/pay-with-a-tweet/),
check out the [SVN repository](https://plugins.svn.wordpress.org/pay-with-a-tweet/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/pay-with-a-tweet/)
by [RSS](https://plugins.trac.wordpress.org/log/pay-with-a-tweet/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.5

Fix issue “Cannot redeclare class TwitterOAuth in
 (…)/wp-content/plugins/pay-with-
a-tweet/lib/twitteroauth.php on line 15”

#### 1.0.4

Fix issue “Fatal error: Cannot redeclare class OAuthException” when OAuth PECL
 
package is installed or another plugin load the same library.

Add a new callback page before publish the tweet and start the download.

#### 1.0.3

Fix issue with the download when wordpress is installed in a subfolder

#### 1.0.2

Create a button admin page: hide image and index.html in downloads list
 Changed
twitter api version to 1.1

#### 1.0.1

Fix issue with folder name of plugin.
 Fix issue $_SESSION, changed to $_COOKIE

#### 1.0

Initial version

## Meta

 *  Version **1.0.5**
 *  Last updated **12 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.3 or higher **
 *  Tested up to **4.0.38**
 * Tags
 * [social](https://wordpress.org/plugins/tags/social/)[Social Marketing](https://wordpress.org/plugins/tags/social-marketing/)
   [twitter](https://wordpress.org/plugins/tags/twitter/)[Viral](https://wordpress.org/plugins/tags/viral/)
   [Viral marketing](https://wordpress.org/plugins/tags/viral-marketing/)
 *  [Advanced View](https://wordpress.org/plugins/pay-with-a-tweet/advanced/)

## Ratings

 3 out of 5 stars.

 *  [  0 5-star reviews     ](https://wordpress.org/support/plugin/pay-with-a-tweet/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/pay-with-a-tweet/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/pay-with-a-tweet/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/pay-with-a-tweet/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/pay-with-a-tweet/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/pay-with-a-tweet/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/pay-with-a-tweet/reviews/)

## Contributors

 *   [ Rolando Caldas ](https://profiles.wordpress.org/rolandocaldas/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/pay-with-a-tweet/)