2014-06-10 11:47
浏览 49

Facebook PHP SDK错误mb_substr

I am following this code for my fb app . I host this app on Heroku. When I login its shows this error :

Fatal error: Call to undefined function Facebook\mb_substr() in /app/vendor/facebook/php-sdk-v4/src/Facebook/FacebookCurlHttpClient.php on line 253

Any idea how to solve this problem ?

图片转代码服务由CSDN问答提供 功能建议

我正在关注代码适用于我的fb应用。 我在Heroku上主持这个应用程序。 当我登录时显示此错误:

 致命错误:在/ app / vendor / facebook / php-sdk-v4 / src /中调用未定义的函数Facebook \ mb_substr()  Facebook / FacebookCurlHttpClient.php第253行


  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dove2199 2014-06-18 07:07

    You need to enable the mbstring extension: https://devcenter.heroku.com/articles/php-support#extensions

    In your composer.json, the require block needs to contain it, like so:

      "require": {
        "ext-mbstring": "*"
    点赞 打赏 评论
  • drxrgundk062317205 2014-06-10 11:51

    I guess you have to enable the: mbstring extension

    Have a look on the following page: http://en.blog.candycane.jp/2012/04/11/running-php-on-heroku-with-mbstring/

    点赞 打赏 评论