Facebook PHP SDK error mb_substr

前端 未结 2 1471
自闭症患者
自闭症患者 2021-01-22 11:32

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_subs         


        
相关标签:
2条回答
  • 2021-01-22 11:36

    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": "*"
      }
    }
    
    0 讨论(0)
  • 2021-01-22 11:36

    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/

    0 讨论(0)
提交回复
热议问题