10up / autoshare-for-twitter

Automatically shares the post title or custom message and a link to the post to X/Twitter.
https://wordpress.org/plugins/autoshare-for-twitter/
GNU General Public License v2.0
117 stars 18 forks source link

Error When Authorizing X Account - Something went wrong. Please try again. #313

Open marketingcounts opened 6 months ago

marketingcounts commented 6 months ago

Describe the bug

Whenever we authorize an X.com account to use this plugin we get the error "Something went wrong. Please try again.". Everything is setup exactly in the Twitter developer portal. Thank you!

Steps to Reproduce

  1. Go to Connect X/Twitter Account
  2. Click Authorize App on Next Screen
  3. Redirects To WordPress Error Page "Something went wrong. Please try again." End of URL for error page is as follows: ?action=authoshare_authorize_callback&oauth_token=aWm0tQAAAAABsw1CAAABjjOa9tw&oauth_verifier=jsdpRKu8sHSWviXqEWGlU57BCrcH5bdr

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

guzel commented 1 month ago

Experienced the same issue on one of the websites. For some reason autoshare_oauth_token and autoshare_oauth_token_secret are not saved to $_COOKIE. An alternative solution is using transients instead of cookies.