Skip to content

Allow facebook/php-business-sdk ^26.0 (Graph API v26.0) - #12

Merged
loevgaard merged 1 commit into
masterfrom
widen-facebook-sdk
Aug 31, 2026
Merged

Allow facebook/php-business-sdk ^26.0 (Graph API v26.0)#12
loevgaard merged 1 commit into
masterfrom
widen-facebook-sdk

Conversation

@loevgaard

@loevgaard loevgaard commented Aug 31, 2026

Copy link
Copy Markdown
Member

Summary

Closes #10.

  • composer.json: facebook/php-business-sdk widened from ^25.0 to ^25.0 || ^26.0, so consumers can move to Graph API v26.0 (26.0.1 requires PHP >= 8.0, guzzlehttp/guzzle ^6.5 || ^7.0, facebook/capi-param-builder-php ^1.3.1).
  • No src/ changes: the package is only used for ApiConfig::APIVersion, Normalizer::normalize and Util::hash, all present and unchanged in 26.x — the existing tests that pin the hashed/normalized payloads pass unchanged against 26.0.1.
  • ClientTest::it_sends_event asserted a hardcoded v25.0 endpoint, which would fail on highest; it now derives the version from ApiConfig::APIVersion (same approach as the new tests in Improve test coverage to 100% and raise Infection thresholds #11).

Test plan

  • composer update facebook/php-business-sdk --with-all-dependencies → 26.0.1; ApiConfig::APIVersion = 26.0
  • vendor/bin/phpunit, vendor/bin/phpstan analyse, vendor/bin/ecs check, vendor/bin/composer-dependency-analyser, composer normalize --dry-run — all green on 26.0.1
  • vendor/bin/phpunit on PHP 8.1 against 26.0.1
  • Lowest (25.0.0) is unchanged and remains covered by the CI lowest matrix
  • LiveClientTest against 26.x — run 2026-08-31 after merge (SDK 26.0.1, PHP 8.4): Meta returned 200 for the ViewContent test event.

The aside in #10 (dropping the dependency in favour of an explicit API-version constant) is intentionally left for a separate discussion.

Widen the constraint to "^25.0 || ^26.0" so consumers can pick up Graph
API v26.0. The package is only used for ApiConfig::APIVersion,
Normalizer::normalize and Util::hash, all of which are unchanged in 26.x.

ClientTest::it_sends_event asserted a hardcoded v25.0 endpoint; it now
derives the version from ApiConfig::APIVersion so it passes with either
major.

Closes #10
@loevgaard
loevgaard merged commit 852fc4d into master Aug 31, 2026
28 checks passed
@loevgaard
loevgaard deleted the widen-facebook-sdk branch August 31, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow facebook/php-business-sdk ^26.0 (Graph API v26.0)

1 participant