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.
Comment | File | Size | Author |
---|---|---|---|
#2 | fb_autopost-hash_equals_compat-2763517-1-7.x.patch | 1.85 KB | GuyPaddock |
Comments
Comment #2
GuyPaddock CreditAttribution: GuyPaddock at RedBottle Design, LLC for Inveniem commentedThe attached patch back-ports the function from Drupal 8, into a new "fb_autopost.compat.inc" include file.