Gallery3:Modules:twitter - Gallery Codex
Personal tools

Gallery3:Modules:twitter

From Gallery Codex

Description

Share photos, movies, and albums with your Twitter followers, directly from Gallery.

Features

  • Send Tweets directly from Gallery
  • Failed Tweets saved for subsequent attempts
  • Integrates with bit.ly module to shorten item URLs

Support, Bug Reports

Please post problems, questions, and comments to http://galleryproject.org/node/100791

Installation

This module requires the php5-curl extension.

  1. Download and unpack the module to your Gallery 3 modules directory
  2. Enable the module via Admin > Modules
  3. Register your Gallery with Twitter
    1. Application Name: My Awesome Gallery (cannot contain 'Twitter')
    2. Description: Short summary of your Gallery (optional)
    3. Application Website: http://yourgallery.com
    4. Organization: Your name or company
    5. Application Type: Browser
    6. Callback URL: http://yourgallery.com/path
    7. Default Access Type: Read & Write
    8. Application Icon: Use the Gallery or your site logo
  4. Configure the module at Admin > Settings > Twitter
    1. Enter the Twitter Consumer Key and Secret provided by Twitter
    2. Edit the Default Tweet. The following replacement tokens are available:
      1.  %type: photo, movie, album
      2.  %title: The item's title
      3.  %description The item's description
      4. The full item link or bit.ly shortened URL is then appended to this.

User OAuth Verification Process

Registered Gallery users will be prompted to allow Gallery to send Tweets on their behalf the first time they select "Share on Twitter." This is a one-time verification valid until the user revokes access for Gallery.

Also available via Git in gallery3-contrib

Roadmap

version 2

  • Display Twitter profile/follow links on Gallery user profile pages.
  • Provide "Share on Twitter" for anonymous users.
  • Display item (re)tweets.

History

2013-06-22

  • Updated twitteroauth's URL to Twitter 1.1 API.
  • Fixed download link.

2011-05-19 - 1

  • Final version 1 release.

2011-03-15 - 1 beta2

  • Allow users to change from one Twitter account to another from their profile page.
  • Compose Tweet JavaScript widget fixes to read default options, accept custom widget options.
  • Disable the "Tweet" button if the message is over 140 characters.
  • Truncate default tweet values longer than 140.

2011-02-15 - 1 beta1

Credits

Twitter OAuth support courtesy of Abraham Williams' awesome TwitterOAuth PHP library.