dev-master) branch with no dependents, raising long-term viability concerns..env configuration for pixel_id/access_token, which may conflict with Laravel’s dynamic config systems (e.g., environment-based tokens).dev-master implies unstable API compatibility with Facebook’s SDK updates..env setup, which may not fit CI/CD pipelines or multi-tenant apps.| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| SDK Compatibility | High | Pin Facebook SDK version in composer.json; test against latest API. |
| Configuration Rigidity | Medium | Extend FacebookApiServiceProvider to support dynamic config binding. |
| Error Handling | High | Override sendTest()/sendCRM() to log Facebook API errors (e.g., rate limits, invalid tokens). |
| Security | Medium | Validate access_token and pixel_id on startup; avoid hardcoding in .env. |
| Performance | Low | Benchmark against direct SDK calls for latency. |
composer require silici0/facebook-api:dev-master.sendTest() with a dummy event.sendCRM() against a sandbox Facebook Pixel.FacebookApiException).vendor:publish).FacebookApi) to customize behavior.$data array.access_token (long-lived or app token) and pixel_id..env and publish the provider.sendTest() for validation.sendCRM() (e.g., FacebookCRMService)..env simplifies environment management.fbTraceId and eventsReceived for debugging.FacebookApiException in Sentry/Error Tracking.sendCRM() may hit Facebook’s rate limits (~200 calls/minute).FacebookCRMJob).| Failure Scenario | Impact | Mitigation |
|---|---|---|
Invalid access_token |
All API calls fail silently. | Validate token on app startup. |
| Facebook API downtime | CRM syncs/Events blocked. | Implement retry with jitter. |
| Rate limiting | Throttled requests. | Use batching and queue delays. |
| Wrapper code rot | Breaks with SDK updates. | Monitor for deprecations; fork if needed. |
| Data corruption | Invalid CRM event IDs. | Validate deduplication_hash format. |
sendTest().sendCRM() for a single lead type.FacebookApiException.How can I help you explore Laravel packages today?