Chao Lam

Working on the next small things …

Twitter Activity Webhook – Inexplicable error

leave a comment »

I had some code relying on Twitter’s Activity Webhook which I hadn’t touched for a while.

Today, when I started playing around with the project again, I got this inexplicable error that took me a while to figure out:
HTTP Error 348: Client application is not permitted to access this user’s webhook subscriptions

After many other rabbit holes, I finally found the solution. It turns out if you have changed your Twitter apps permissions, your accessToken and accessTokenSecret keys will be changed

But that isn’t the half (or quarter of it :). These changed keys won’t help you create a subscription. You now need to go to your “regular” Twitter account “app and settings” and revoke access to this app. Finally, you need to regenerate the apps access token and access token secret.

Phew! Would never figured this out without this helpful link:

Once again coding by googling ftw!

Written by Pseudonymous

May 2, 2019 at 5:21 pm

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: