dqy1265 2014-06-10 11:47
浏览 60
已采纳

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 ?

  • 写回答

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": "*"
      }
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?