New module: Twitter

thumb
thumb's picture

Joined: 2004-05-26
Posts: 230
Posted: Mon, 2011-02-14 05:44

Hello. I've just completed a beta release of a Twitter module for Gallery 3. This module allows those with G3 accounts to share Gallery items on Twitter directly from G3. Documentation and download available here:

http://codex.gallery2.org/Gallery3:Modules:twitter.

Please download, install, test, and post feedback here. Thanks!

Support the Gallery project with a donation
--
2tbsp.com

 
thumb
thumb's picture

Joined: 2004-05-26
Posts: 230
Posted: Tue, 2011-02-15 00:47

UPDATE - Problems fixed. Please download and test!

Sorry folks, I didn't test this well enough before posting. I've restored a required user_id column and am in the process of fixing a problem with Twitter OAuth access_token exchange that's cropped up. I'll post an update as soon as I've corrected the issue.

 
thumb
thumb's picture

Joined: 2004-05-26
Posts: 230
Posted: Wed, 2011-03-16 01:43

Beta 2 released with the following improvements.

  • 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.

 
Pher9999

Joined: 2011-09-03
Posts: 1
Posted: Sat, 2011-09-03 07:14

Be sure to have php5-curl extension installed, or it won't work.

 
thumb
thumb's picture

Joined: 2004-05-26
Posts: 230
Posted: Sat, 2011-09-03 15:27

Thank you. Yes, php5-curl extension is required. I'll add a note about this requirement.

--
2tbsp.com
github.com

 
crystalgirl

Joined: 2011-09-27
Posts: 36
Posted: Sun, 2011-10-23 13:38

I have a new twitter account.

I'm getting this error when I try to share: You must Authorize Gallery to send tweets. The prompt to login, appears to be the g3 URL, not a location on twitter to log in.

I don't recall entering my twitter name/password anywhere into g3, but I haven't seen anywhere to enter it.

In twitter, I have created the app with read/write permission. I have entered OAuth information into g3.

Is this a 'php5-curl' issue?

Sorry if I am not providing enough info here, I'll be glad to expand.

Thanks for any help anyone can provide.

CrystalGirl

 
thumb
thumb's picture

Joined: 2004-05-26
Posts: 230
Posted: Mon, 2011-10-24 04:45

The first time any G3 account tries to tweet a photo or album, they'll be asked to authorize this. Judging by the message you're seeing, that site is the Twitter authorize page. The G3 Twitter module does not ask for or store your Twitter user name or password, only OAuth tokens.

Be sure that you're logged into Twitter with the account you want to send Tweets to from G3 before you authorize.

--
2tbsp.com
github.com

 
crystalgirl

Joined: 2011-09-27
Posts: 36
Posted: Mon, 2011-10-24 10:51

I am logged in (in another tabbed window). Other apps recognize that I am logged in, but not G3. I believe G3 thinks I am not logged in as the button below the error msg says "sign in with twitter". However, the actual link for the button does not actually sign me in, but instead redirects the to current G3 page displaying an error: "Could not connect to Twitter. Refresh the page or try again later.". I tried both the consumer fields and access tokens (just in case the prompts changed). Neither worked. I tried revoking and unrevoking app access and that had no effect on the G3 behavior.

Any other suggestions?

 
imneo

Joined: 2011-10-24
Posts: 1
Posted: Sun, 2011-10-30 14:14
crystalgirl wrote:
I am logged in (in another tabbed window). Other apps recognize that I am logged in, but not G3. I believe G3 thinks I am not logged in as the button below the error msg says "sign in with twitter". However, the actual link for the button does not actually sign me in, but instead redirects the to current G3 page displaying an error: "Could not connect to Twitter. Refresh the page or try again later.". I tried both the consumer fields and access tokens (just in case the prompts changed). Neither worked. I tried revoking and unrevoking app access and that had no effect on the G3 behavior.

Any other suggestions?

exactly the same issue here

 
thumb
thumb's picture

Joined: 2004-05-26
Posts: 230
Posted: Sun, 2011-10-30 16:07

Can you confirm that the web server your G3's running on has Curl and the PHP Curl extension installed?
--
2tbsp.com
github.com

 
thumb
thumb's picture

Joined: 2004-05-26
Posts: 230
Posted: Sun, 2011-10-30 16:08

Also, what version of Gallery 3 are you running? The latest?

--
2tbsp.com
github.com

 
thumb
thumb's picture

Joined: 2004-05-26
Posts: 230
Posted: Sun, 2011-10-30 16:45

Okay, I just updated my test environment and am having troubles also. I'll start to look into the issue and get back to you.

--
2tbsp.com
github.com

 
crystalgirl

Joined: 2011-09-27
Posts: 36
Posted: Wed, 2011-11-02 16:29

Just now saw the posts requesting additional information.

I have the latest G3. I'm not sure what CURL is.

I'd be glad to follow up with more details if you need them...sounds like the problems are presently reproducible with other environments, so you may have enough information as is.

Looking forward to resolution. Thanks!
CrystalGirl

 
iankearns

Joined: 2011-12-19
Posts: 6
Posted: Wed, 2011-12-21 13:40

Installation was fine and so was Twitter API / BIT.LY creation but when user tries to click on "Share on Twitter" they get the notification to sign in but then get "Could not connect to Twitter. Refresh the page or try again later."

Running Gallery 3.0.2