After applying the patch from #2602478: Compatibility with Facebook PHP SDK v5 and Graph API 2.5, and downloading the latest Facebook SDK for PHP, you will undoubtedly run into the error that the function hash_equals() is not defined. This security-related function is only available starting in PHP 5.6; we need to back-port it into FB Autopost, probably using the implementation from Drupal 8, to enable users to user more modern versions of the Facebook SDK.

As a workaround, according to #2699113: New node does not post on fb, version 5.1.2 of the Facebook SDK for PHP is the last version that did not have this requirement.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GuyPaddock created an issue. See original summary.

GuyPaddock’s picture

Status: Active » Needs review
FileSize
1.85 KB

The attached patch back-ports the function from Drupal 8, into a new "fb_autopost.compat.inc" include file.