Install
Works with Drupal: ^11.3 || ^12Using dev releases is not recommended, except for testing.
Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
2.1 MB
MD5: ac43821cf00180b4210ba5ea0c55dc36
SHA-1: 3c04f1390c5f821664d27b444e2233fc8850c6d1
SHA-256: a11c79a7bfdbe31780976be6a5de0b0b032fefb6eaa7591ed6a17e9387d4f2b3
Download zip
2.14 MB
MD5: b5a219f8a21df034bbf996148a229799
SHA-1: b61ec835eb49897464140c35e83113dc77d951b1
SHA-256: 829b0b8af279529d3eafaeba637f3175b62ec892f68d09c7a77f4315a0245a7c
Release notes
Development branch for 4.1.x: Drupal 12 support, bug fixes and security hardening. It is a drop-in update from 4.0.x: configuration names, block plugins and templates are unchanged.
Requirements
- Drupal 11.3+ or 12. Drupal 10 is no longer supported; Drupal 10 sites should stay on 4.0.x.
- PHP 8.3+ (8.5+ on Drupal 12).
- No third-party PHP libraries.
facebook/php-business-sdk,noweh/twitter-api-v2-phpandnesbot/carbonare removed; all APIs are called with core's HTTP client.
Changes
- Drupal 12: OOP
#[Hook]implementations,#[Block]attributes, initial preprocess callbacks and PHPUnit attributes. CI also tests against the next major version. - Feed caching: each network has a Refresh interval. If a refresh fails, the last fetched posts keep showing and the error is logged with credentials removed. Saving a network's settings clears its cached posts.
- Instagram: uses Business Login for Instagram (
instagram_business_basic), so enter the Instagram app ID and secret. The login is protected by a state check, the access token is no longer shown on screen, and cron refreshes the token after 50 days. - Blocks: site-wide credentials are no longer copied into block configuration, which is exported with config. A database update removes existing copies from blocks that don't customize their feed. Block cache metadata is fixed.
- X: post HTML is built from the API entities after trimming. Only the Bearer token is used; the OAuth 1.0a keys are marked as legacy.
- Facebook: post text is escaped, the settings test uses the Graph API client, and unused settings are removed.
- Instagram template fixes, and a
logger.channel.socialfeedlogger.
Updating
Run composer require 'drupal/socialfeed:4.1.x-dev@dev', then drush updb.