Facebook Instant Articles 模块需要 Drupal 中的 facebook-instant-articles-sdk-php 库

The Facebook Instant Articles module requires the facebook-instant-articles-sdk-php library in Drupal

朋友们呢,我在 drupal 7 中安装了 Facebook Instant Articles 模块,但是当我激活它时它给我这个错误:Facebook Instant Articles 模块需要 facebook-instant-articles-sdk-php图书馆。

我从https://github.com/facebook/facebook-instant-articles-sdk-php下载了facebook-instant-articles-sdk文件,解压后上传到我的网站路径:/httpdocs/sites/all/Libraries/facebook-php-sdk / src return 到我的站点激活模块但仍然显示 "The Facebook Instant Articles module requires the facebook-instant-articles-sdk-php library, and composer autoloading"

你能告诉我我是在做坏湖,还是应该做其他事情?

感谢您的帮助。

我还安装了带有 fb_instant_article 模块的 Drupal 7。 此外,我还安装了 Composer_Manager 和 XAutoload。我已经通过 Composer 安装了 SDK。

htdocs/sites/default/files/composer/composer.json

{
    "require": {
        "php": ">=5.3.0",
        "sensiolabs/security-checker": "~2.0",
        "facebook/facebook-instant-articles-sdk-php": "^1.0.0"
    },
    "config": {
        "autoloader-suffix": "ComposerManager",
        "vendor-dir": "../../../all/vendor"
    },
    "prefer-stable": true,
    "autoload": {
        "psr-4": {
            "Drupal\fb_instant_articles\": [
                "../../../all/modules/fb_instant_articles/src"
            ],
            "Drupal\fb_instant_articles_display\": [
                "../../../all/modules/fb_instant_articles/modules/fb_instant_articles_display/src"
            ]
        }
    }
}