Fix X/Twitter app type: use Native App instead of Web App #213
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The documentation previously instructed users to select "Web App, Automated App or Bot" for the X app type. This causes OAuth 1.0a authentication to fail with Twitter error code 32 ("Could not authenticate you").
Changes
Web App, Automated App or BottoNative AppProblem
When configured as a Web App, the OAuth 1.0a flow fails when Postiz attempts to generate an auth link. Users see a generic
{"err":true}response with no additional details.Solution
Selecting Native App enables proper OAuth 1.0a authentication, which is required for the Twitter v1 API (used for media uploads).
Testing
Verified fix by:
X_API_KEYandX_API_SECRETin PostizThis will close issue #212
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.