Using this rule condition I get the following error:

Fatal error: Call to undefined method FBAutopost::hasValidAccessToken() in /Applications/MAMP/htdocs/halalfoodreviews.dev/sites/all/modules/fb_autopost/fb_autopost_entity/fb_autopost_entity.rules.inc on line 241

Has the API changed?

Comments

sylv3st3r’s picture

I believe it should be hasActiveAccessToken()

sylv3st3r’s picture

Title: Facebook access token as a rules condition » PHP Fatal error: Call to undefined method FBAutopost::hasValidAccessToken()

PHP will threw fatal error if "Facebook access token presence" as Rules condition present

e0ipso’s picture

Thank you for contributing.

This should be fixed in the dev release now.

  • e0ipso committed af05b8d on 7.x-1.x
    Issue #2279463 by e0ipso: Fix incorrect method call.
    
e0ipso’s picture

Title: PHP Fatal error: Call to undefined method FBAutopost::hasValidAccessToken() » Rules integration - Call to undefined method FBAutopost::hasValidAccessToken()
e0ipso’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.