Thanks appreciate the info.
Carl
Printable View
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: 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 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????????
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.
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
is anyone using this now... bit.ly has changed there api to tokesn;and i don't know what to do..
thank you
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..
Then after connection trying to upload and get the media ID inPHP Code:
$urlprod = $storeUrl . '/images/' . $_POST['products_image'];
The upload connection is where the stop is... the error file is..PHP Code:
//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));
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'sCode:[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
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.