I'm trying to embed Facebook albums in my website, and I want to include PHP code in my drupal site from this website: http://www.codeofaninja.com/2011/06/display-facebook-photos-to-your-webs...

Although I can get the code working on a test page on my site, when I use thet code from within drupal I get this error:

PHP Fatal error:  Class 'Facebook' not found in /home7/********/public_html/modules/php/php.module(80) : eval()'d code on line 4

So it looks like drupal is thinks the code is referencing a drupal module? When it shouldn't be, as the files are all in a separate folder.

Can someone help me out by telling me what I should do to make the code work in a drupal node?

Comments

=-=

php.module is the php filter that would be in use to use php in drupal nodes.

based on the class that can't be found the node can't find the SDK

nobody click here