Open redbeanbuns opened 6 years ago
I've also tried:
require_once(__DIR__ .'/codebird/codebird.php');
Does the CLI PHP load the same required extensions as the web server one?
I am facing the same problem, during media_upload API call, it always sends "could not authenticate" errors.
@redbeanbuns @RahulRawat1994 You can help us find the problem by posting a self-contained code that will read the image from the same folder and send the media/upload call, and pasting the entire code here (masking your tokens).
When I hit my script in a browser, everything goes fine. When cron runs the script, it builds the tweet, and carries out the database stuff, but the tweet never appears. My logs show error code 32 - "could not authenticate you". Here's the code, sorry for the long code entry, I thought I better post the whole thing since I have no idea what could be causing the problem...