Facebook PHP SDK冲突的自动加载功能

I am trying to implement the FaceBook PHP SDK into a project that uses a __autoload() function already.

The source code for the existing __autoload() function is:

function __autoload($class_name) 
{
    require_once 'class/class.'.$class_name.'.php';
}

It is conflicting somehow with the spl_autoload_register(function ($class)) in the FaceBook's PHP SDK autoload.php, however I seem not to be able to find a workaround.

I know that __autoload() is deprecated and might be removed in the future, so it might be time to change it to spl_autoload_register(), however I don't know how.