朋友们,我在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返回我的网站激活模块但仍然显示" Facebook Instant Articles模块需要facebook-instant-articles-sdk-php库和作曲家自动加载"
你能告诉我,如果我做坏湖,或者我应该做别的事吗?
感谢您的帮助。
答案 0 :(得分:0)
我还使用fb_instant_article模块安装了Drupal 7。 另外,我安装了Composer_Manager和XAutoload。我已经通过Composer安装了SDK。
的htdocs /位点/默认/文件/作曲家/ 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"
]
}
}
}