Hello X Developer Community,
We’re excited to announce that Account Activity API v2 now fully supports OAuth2! This update provides more flexibility and security for your applications, allowing for fine-grained control over user permissions.
Key Changes:
- OAuth2 Scope Support: Developers can now create subscriptions using OAuth2 and request specific scopes tailored to your app’s needs. For example, if your app only requires access to a user’s follow events, you can request just the follow.read scope—and that’s all you’ll get. This moves away from the all-or-nothing model of OAuth1, giving users more confidence in granting access and helping you build more targeted integrations.
Backwards Compatibility:
To ensure a smooth transition and prevent any disruptions to your existing apps:
- OAuth1 permissions will fully override OAuth2 scopes. If a user has already granted access to your app via OAuth1, they’ll continue to have full access to their Account Activity events, regardless of any OAuth2 scopes.
- OAuth2 scopes will only be enforced when OAuth1 permissions are not present.
This means existing OAuth1-based setups will continue to work as-is.
If you’re ready to migrate to using OAuth2 scopes for Account Activity API v2, check out our API Documentation.
Best,
The X Developer Platform Team
9 Likes