Zen Cart Logo
Forums / All Other Contributions/Addons / AutoTweet [support]

AutoTweet [support]

Views: 51,022

Results 241 to 260 of 264
13 Dec 2013, 4:57 PM
#241
ttmb33 avatar

ttmb33

Zen Follower

Join Date:
May 2009
Posts:
201
Plugin Contributions:
0

AutoTweet [support]

jamielife:

Figured I'd go head and start a thread for the AutoTweet mod I uploaded that was recently made available at http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1523.

This simply auto updates your twitter followers everytime you add a product. The product name and shortened (bit.ly) link to the product are automatically tweeted without you ever having to leave the zencart admin. It also offers link tracking stats as well (through bit.ly).

*Note: you will need to have Curl installed.
*You will also need a free bit.ly api key (though this is optional).
*More info available in readme.
*Also I forgot to mention it in the readme, but this mod is shared under GPL licensing terms. Do whatever you want with it. :smile:

***Remember always backup your files before installing anything.

I just installed Autotweet 3.0, and I filled in all information for update_product.php. But there is no way that I get products uploaded to Twiter. The error message I received as followings:

Twitter could not be updated: :
To paste the code into twitter yourself use:
New product available: Full/Queen Bed Modern Bedding Sports Duvet Cover Set Le Vele LE132Q! Only $148.95. Check it out now at http://bit.ly/1b2CvZh

On the instruction page, step number 6 tells me to fill in username and password of twitter, but I do not see any places to fill in username and password.

  1. Now edit lines 96 through 100 like so:

a. $twitUsername = your twitter user name.

b. $twitPassword = your twitter password.

Please help me out with this. Thanks so much for your help and support.

ttmb33

13 Dec 2013, 5:00 PM
#242
joannem avatar

joannem

Zen Follower

Join Date:
Jul 2009
Posts:
110
Plugin Contributions:
0

Re: AutoTweet [support]

ttmb33:

I just installed Autotweet 3.0, and I filled in all information for update_product.php. But there is no way that I get products uploaded to Twiter. The error message I received as followings:

Twitter could not be updated: :
To paste the code into twitter yourself use:
New product available: Full/Queen Bed Modern Bedding Sports Duvet Cover Set Le Vele LE132Q! Only $148.95. Check it out now at http://bit.ly/1b2CvZh

On the instruction page, step number 6 tells me to fill in username and password of twitter, but I do not see any places to fill in username and password.

  1. Now edit lines 96 through 100 like so:

a. $twitUsername = your twitter user name.

b. $twitPassword = your twitter password.

Please help me out with this. Thanks so much for your help and support.

ttmb33

This hasn't worked for me for a long time now, and neither does the AutoFaceBook!

13 Dec 2013, 5:04 PM
#243
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: AutoTweet [support]

Twitter api addresses changed..

rbarbour:

did you update the twitter api addresses? Post #235

ttmb33:

i just installed autotweet 3.0, and i filled in all information for update_product.php. But there is no way that i get products uploaded to twiter. The error message i received as followings:

Twitter could not be updated: :
To paste the code into twitter yourself use:
New product available: Full/queen bed modern bedding sports duvet cover set le vele le132q! Only $148.95. Check it out now at http://bit.ly/1b2cvzh

on the instruction page, step number 6 tells me to fill in username and password of twitter, but i do not see any places to fill in username and password.

  1. Now edit lines 96 through 100 like so:

A. $twitusername = your twitter user name.

B. $twitpassword = your twitter password.

Please help me out with this. Thanks so much for your help and support.

Ttmb33

joannem:

this hasn't worked for me for a long time now, and neither does the autofacebook!

13 Dec 2013, 5:25 PM
#244
ttmb33 avatar

ttmb33

Zen Follower

Join Date:
May 2009
Posts:
201
Plugin Contributions:
0

Re: AutoTweet [support]

rbarbour:

Twitter api addresses changed..

I did follow Post #35 to change to https://api.twitter.com/1.1/ , but I still get the error as followings:

Twitter could not be updated: 403 Forbidden:
To paste the code into twitter yourself use:
New product available: Full/Queen Modern Bedding Floral Duvet Cover Set, Dophia DO138Q! Only $134.95. Check it out now at http://bit.ly/1gvG1U5

Please helps. Thanks!

13 Dec 2013, 5:32 PM
#245
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: AutoTweet [support]

Did you change the following also:

function authenticateURL() { return 'https://api.twitter.com/oauth/authenticate'; }
function authorizeURL() { return 'https://api.twitter.com/oauth/authorize'; }

13 Dec 2013, 5:41 PM
#246
ttmb33 avatar

ttmb33

Zen Follower

Join Date:
May 2009
Posts:
201
Plugin Contributions:
0

Re: AutoTweet [support]

Yes, I did.> rbarbour:

Did you change the following also:

function authenticateURL() { return 'https://api.twitter.com/oauth/authenticate'; }
function authorizeURL() { return 'https://api.twitter.com/oauth/authorize'; }

17 Jan 2014, 11:36 PM
#247
purecarsound avatar

purecarsound

New Zenner

Join Date:
May 2006
Location:
Chester, UK
Posts:
99
Plugin Contributions:
0

Re: AutoTweet [support]

Hi

Can't believe I didn't see this Plugin Before Now! Got it working great on 1.5.1 with picaflor-azul Sheffield Blue Responsive Template on the site I manage. https://www.johnwoodsmotorcare.net

I've been through the whole thread twice and although I don't think I've missed it, can someone point me in the right direction with the code for setting the plugin to give the option to re-tweet the listing if a product is updated (along with the code and where to put it)?

Thanks

Mark

8 Mar 2014, 5:03 PM
#248
little_red_crane avatar

little_red_crane

New Zenner

Join Date:
Mar 2009
Posts:
20
Plugin Contributions:
0

Re: AutoTweet [support]

rbarbour:

Twitter api addresses changed..

I Have tried & Done All The Changes ((address, AIP's, ect...), & Have Had The Same Issue... I Also Use AutoFacbook (Great Mod BTW... WORKS GREAT!!!) But I Still Get An Error Telling Me To Manually Enter My Tweet.....

Twitter could not be updated: :
To paste the code into twitter yourself use:
blah, blah, blah.....

Please HELP!!!!!
:frusty:

17 May 2014, 11:05 PM
#249
carlc avatar

carlc

New Zenner

Join Date:
Feb 2014
Location:
Oklahoma
Posts:
22
Plugin Contributions:
0

Re: AutoTweet [support]

I was wondering if anyone has used this with Zen 1.51 and eMagicOne Store Manager or do you have to add products thru admin ?

Thanks in advance
Carl

18 May 2014, 5:37 AM
#250
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: AutoTweet [support]

CarlC:

I was wondering if anyone has used this with Zen 1.51 and eMagicOne Store Manager or do you have to add products thru admin ?

Thanks in advance
Carl
It won't work using Store Manager. It doesn't work neither when you copy a product to create from it a new product with some editions. It will only work if you create the product on admin as a "new item".

19 May 2014, 12:51 AM
#251
carlc avatar

carlc

New Zenner

Join Date:
Feb 2014
Location:
Oklahoma
Posts:
22
Plugin Contributions:
0

Re: AutoTweet [support]

ideasgirl:

It won't work using Store Manager. It doesn't work neither when you copy a product to create from it a new product with some editions. It will only work if you create the product on admin as a "new item".

Thanks appreciate the info.

Carl

24 May 2014, 2:36 AM
#252
chattunnel avatar

chattunnel

New Zenner

Join Date:
Aug 2012
Posts:
45
Plugin Contributions:
0

Re: AutoTweet [support]

I know this is a dumb question but why isn't there $twitUsername or $twitPassword? I completed all directions but entering my twitter username and password in update_product.php because I can't find those lines. Did I get a bad download?

24 May 2014, 3:27 AM
#253
chattunnel avatar

chattunnel

New Zenner

Join Date:
Aug 2012
Posts:
45
Plugin Contributions:
0

Re: AutoTweet [support]

chattunnel:

I know this is a dumb question but why isn't there $twitUsername or $twitPassword? I completed all directions but entering my twitter username and password in update_product.php because I can't find those lines. Did I get a bad download?
okay I sorted out my twitname and twitpass issue out by linking my bitly account to twitter.
Im having this error now: Warning URL was not shortened for Twitter: https://www.mydomain.com was used instead. Reason: INVALID_APIKEY
Error Twitter could not be updated: :
To paste the code into twitter yourself use:
New product available: testing! Only $23. Check it out now at https://www.mydomain.com
what's causing this? I have my twitter api settings as read and write and generated new keys&tokens after the change and updated my update_product.php??? I also updated twitters api addresses????????

24 May 2014, 3:50 AM
#254
chattunnel avatar

chattunnel

New Zenner

Join Date:
Aug 2012
Posts:
45
Plugin Contributions:
0

Re: AutoTweet [support]

Okay It;'s working, I had to update my keys> chattunnel:

okay I sorted out my twitname and twitpass issue out by linking my bitly account to twitter.
Im having this error now: Warning URL was not shortened for Twitter: https://www.mydomain.com was used instead. Reason: INVALID_APIKEY
Error Twitter could not be updated: :
To paste the code into twitter yourself use:
New product available: testing! Only $23. Check it out now at https://www.mydomain.com
what's causing this? I have my twitter api settings as read and write and generated new keys&tokens after the change and updated my update_product.php??? I also updated twitters api addresses????????

8 Jul 2014, 11:11 PM
#255
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: AutoTweet [support]

ZC1.5.3.
When creating product and click on insert it shows blank page
timeout was 10, changed to 0 but still blank page

$timeout = 0; //seconds to wait for twitter & bit.ly. This can be left alone.

15 Jul 2014, 10:24 PM
#256
dsimon avatar

dsimon

New Zenner

Join Date:
Mar 2012
Posts:
82
Plugin Contributions:
0

Re: AutoTweet [support]

New question I think
when you replace your existing update_product.php do you know what lines are added?
I belive my update file has been changed some already and don't want to loose what I have
so just want to edit and add missing lines

thanks

Dave

15 Jul 2014, 11:36 PM
#257
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: AutoTweet [support]

dsimon:

New question I think
when you replace your existing update_product.php do you know what lines are added?
I belive my update file has been changed some already and don't want to loose what I have
so just want to edit and add missing lines

thanks

Dave

There are few. If you don't have back up you can download fresh ZC1.5 and compare using winmerge.

I have installed this module and it does not execute cron job. Let me know if work for you.

24 Jan 2018, 8:31 AM
#258
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: AutoTweet [support]

is anyone using this now... bit.ly has changed there api to tokesn;and i don't know what to do..
thank you

22 Sep 2018, 4:15 AM
#259
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: AutoTweet [support]

Was wondering if anyone has upgraded twitteroauth.php to include media uploads yet?

I'm getting close, but just rain into a 'Uncaught InvalidArgumentException: You must supply a readable file in' using the url to the image as..

$urlprod = $storeUrl . '/images/' . $_POST['products_image']; 

Then after connection trying to upload and get the media ID in

//upload the image and get an MediaID
$media = $connection->upload('media/upload', ['media' => $urlprod]);
$parameters = [
     'status' => $message, 
     'media_ids' => $media->media_id_string
];

//send message
$tweet = $connection->post('statuses/update', array('status' => $parameters));

The upload connection is where the stop is... the error file is..

[21-Sep-2018 21:03:18 America/Los_Angeles] PHP Fatal error: Uncaught InvalidArgumentException: You must supply a readable file in /****************************/includes/modules/twitteroauth/twitteroauth.php:239
Stack trace:
#0 /****************************/includes/modules/twitteroauth/twitteroauth.php(208): TwitterOAuth->uploadMediaNotChunked('media/upload', Array)
#1 /****************************/includes/modules/product/update_product.php(146): TwitterOAuth->upload('media/upload', Array)
#2 /****************************/product.php(61): require('/home/.../...')
#3 {main}
thrown in /****************************/includes/modules/twitteroauth/twitteroauth.php on line 239

Think I need to start back tracing twitteroauth.php for the issue.. The image patch id https://www-siteURL-/image/product/1234.jpg and it's under the max 5MB's

24 Sep 2018, 5:21 PM
#260
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: AutoTweet [support]

davewest:

Was wondering if anyone has upgraded twitteroauth.php to include media uploads yet?

Think I need to start back tracing twitteroauth.php for the issue..

Update...

Found that one needs to first upload a media file before adding to a tweet.. the process is different when posting then from URL, this part I was able to create. However, I found issues with twitterOauth, which apparently was a fork version and never updated to match the current master of twitterOauth..

Having to go back and learn twitter API.. was working on creating a developer sandbox to play in. Something to think about for anyone using twitter web app, they are changing locations and access. If you find autotweet stops working, you may need to reapply to keep your web app alive.