Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 status, despite following documentation #331

Open
SavedByZero opened this issue Nov 26, 2019 · 1 comment
Open

400 status, despite following documentation #331

SavedByZero opened this issue Nov 26, 2019 · 1 comment

Comments

@SavedByZero
Copy link

I'm getting error 400 from twitter every time I try to post. I've verified that:
-every key and secret is correct
-my app status allows reading and posting
-my app url matches my deploy url
Here is my code:

` var twitterClient = new Twitter({
consumer_key: " ",
consumer_secret: " ",
access_token_key: this.props.globalState.user.twitter.token,
access_token_secret: this.props.globalState.user.twitter.secret,
});
var message = this.props.message;
twitterClient.post('statuses/update', {status:message}, function(error, tweet, response) {
if (!error) {
console.log("yeah");

            }else{  console.log("hey problem:" + error); }
         
          });`

Is something under the hood deprecated?

@FrancescoSaverioZuppichini

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants