Facebook Instant文章模块需要Drupal中的Facebook-Instant-Articles-SDK-



朋友,我在drupal 7中安装了模块Facebook Instant文章,但是当我激活它时,这给我带来了这个错误:Facebook Instant文章模块需要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返回我的网站以激活模块,但仍显示" Facebook Instant文章模块需要Facebook-Instant-instant-Articles-SDK-PHP库和作曲家自动加载"

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

感谢您的帮助。

我还使用fb_instant_article模块安装了Drupal 7。此外,我安装了Composer_Manager和Xautoload。我已经通过作曲家安装了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"
            ]
        }
    }
}

相关内容

  • 没有找到相关文章

最新更新