Facebook PHP SDK error mb_substr

前端 未结 2 1470
自闭症患者
自闭症患者 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": "*"
      }
    }
    

提交回复
热议问题