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

403 error setting up Twitter #327

Closed
tenorslowworm opened this issue Sep 17, 2018 · 2 comments
Closed

403 error setting up Twitter #327

tenorslowworm opened this issue Sep 17, 2018 · 2 comments
Assignees
Labels

Comments

@tenorslowworm
Copy link

I went through the steps to set up posting updates to Twitter, but instead of a sign-in button appearing after saving my Twitter settings, I got a "403: Forbidden" error.

I'm pretty sure I got my key and secret right, and my Twitter app is set up for read&write permissions with my site's URL (https://www.Trumpbert.com) set as the website and callback URLs.

Could it be that the callback URL needs to be exact? I was suspicious about entering just the site URL there as instructed by the wiki.

Thanks for any light you can shine on this.

@mgsisk mgsisk self-assigned this Sep 17, 2018
@mgsisk
Copy link
Owner

mgsisk commented Sep 17, 2018

Apologies for the trouble @tenorslowworm. The callback URL for your app being just your site URL is correct (technically, it's whatever home_url( '/' ) outputs). For authorization, Webcomic will construct an appropriate callback URL using your sites home_url( '/' ) based on whether pretty permalinks are enabled.

I think the actual issue in your case is whatever's redirecting the homepage to the latest comic URL. My guess is that, when Twitter tries to bounce back to your site, Webcomic isn't able to capture the authorization because an earlier redirect is shunting you off to the latest comic, bypassing the Webcomic's authorization hook. I'll see if I can dig a little deeper, but disabling the latest comic redirect, doing the Twitter authorization, and then re-enabling the redirect may work.

@tenorslowworm
Copy link
Author

Ugh! I forgot about that bit of customization I made. Disabling it did indeed fix things. Thanks!

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

No branches or pull requests

2 participants