Results 1 to 10 of 264

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: AutoTweet [support] Will it Work with eMagicOne Store Manager

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

    PHP Code:
    $urlprod $storeUrl '/images/' $_POST['products_image']; 
    Then after connection trying to upload and get the media ID in
    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)); 
    The upload connection is where the stop is... the error file is..
    Code:
    [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
    Dave
    Always forward thinking... Lost my mind!

  2. #2
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: AutoTweet [support] Will it Work with eMagicOne Store Manager

    Quote Originally Posted by davewest View Post
    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.
    Dave
    Always forward thinking... Lost my mind!

  3. #3
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: AutoTweet [support]

    Update2.. problem solved..

    Switched to CodeBird-PHP for easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library

    Requires PHP7.1 or higher.. This so far was the best one, easy to use, well maintained and documented. Twitter can accept the following media types, all of which are supported by Codebird: PNG, JPEG, BMP, WebP, GIF, Animated GIF, Video. Just did a test run with the new code and it works...
    Dave
    Always forward thinking... Lost my mind!

  4. #4
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: AutoTweet [support]

    Sent in an update.. I did not code in video abilities for auto tweeting or limits on tweet word counts.. I'm assuming you well follow twitter rules.

    I used ZC1.5.5f for the update and Codebird takes the code into PHP7.1 or higher... no idea if this well work with anything less.

    FYI.. Twitter is upgrading and the old api.twitter well end and the new developer.twitter well be the norm...

    If you wont to see what this looks like... @cowboygeek64
    Dave
    Always forward thinking... Lost my mind!

  5. #5
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: AutoTweet [support]

    Sent in another update...

    I ran into issues creating an item, but not activating it until I had more photos... the mod tried to tweet anyway and failed...

    bug.. tweeting disabled product.
    Having switches hard coded was one of the problems.
    Not able to tweet during updates!

    This update removes the need to edit code to turn on/off switches. Auto installer adds admin configures for defaults and keys/tokens. Also added the ability during product creation/update to change some of the defaults per item. Also added the ability to tweet during product update or not.. Added switch for small, large or no image.. Gave quick access to tag lines and the ability to see existing keywords or create new ones per-item tweet!!

    Basically I wanted more control over tweets per-item without changing defaults all the time or coding on/off switches..
    Dave
    Always forward thinking... Lost my mind!

  6. #6
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: AutoTweet [support]

    In case you been wondering whats going on with this mod..

    New version is in the works, its not been uploaded yet... it is working on a ZC156a PHP7.3 site with the codebird library. The next push well have more control and work both on new and updates. Twitter feed is created by admin creating or editing products. I've not had time to clean and transfer files over to github yet, well try later on today or this week..
    Dave
    Always forward thinking... Lost my mind!

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. v151 Autotweet Errors/Not Posting
    By Little Red Crane in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Mar 2014, 04:56 PM
  3. is there any AutoTweet addon or autofacebook addon work well with EasyPopulate?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Dec 2010, 03:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg