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 ?

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": "*"
  }
}

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/