chore: Facebook/Instagram API version pinned to v19.0 -- should be a constant #239
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
All Facebook and Instagram API calls are hardcoded to Graph API
v19.0across multiple plugins:FacebookService.php-- 6 occurrences ofv19.0InstagramService.php-- 3 occurrences ofv19.0Meta deprecates API versions approximately every 2 years. When v19.0 reaches end-of-life, every URL must be updated across multiple files.
Fix
Define the API version as a class constant or component parameter:
Or make it configurable in the plugin params so users can update without code changes:
Impact
FacebookService.php,InstagramService.phpBranch created:
feature/239-chore-facebook-instagram-api-version-pin