2 months later

I have the same issue but removing still no solve the issue.
Users get stuck with empty page.

    krakmh Make sure you run php flarum cache:clear and then disable/enable the Facebook extension.

      I don't understand why i have this problem knowing that i use Facebook graphApiVersion 2.8.

      The check is for less than 2.8 :

      // backwards compatibility less than 2.8
      if ((float) substr($this->graphApiVersion, 1) < 2.8) {
      $fields[] = 'bio';
      }

      What's do mean "bio" ?

        a month later
        2 months later

        I can confirm the issue. Installed Flarum on a DO droplet running Ubuntu 16.04 64bit and had this issue. Commenting the line fixed the issue. Thanks.

        9 days later

        Commenting out line 111 works for my account (facebook developer account only). But other people get empty page.
        I'm using Flarum with Nginx 1.10 at Vultr.

        Here is the error log:
        2017/04/15 08:28:31 [error] 28997#28997: *179 FastCGI sent in stderr: "PHP message: PHP Deprecated: The third argument to Zend\Stratigility\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /var/www/flarum/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101" while reading response header from upstream, client: 42.116.152.202, server: eggpresso.space, request: "GET /auth/facebook?code=AQBJmiNMZAn3b0_gJ--0GtIHg6ZsBmQ55BdLQgj3l6Xgx_yZMCMQ0FFcarQIgaYKWr9uoM5-V4Ltw4xQ4rA5Q9_sfZVgRoaBVnFjTGzD673THxrvcI58lkTib50txKesWeQu3MzZ5zICRGalAPfGyn3_EEV-hfqJe-W6OMbXbOJGRCvPpuDoD6Q4FZ_k0Q05UvfWgTm2e8auuEB82AdWDd8O3s_DnVeG4qZbr-mA3FRQsp3_1VytNbdWgFn6sWwjFL5XgyMl_WI-XYfV8FUUlW7WxgFC-R2CV7Oev7kUJYS9o_d-uTcYIuCO2ehmUuFyoAW3GTH-JAHD4jhyM8oDLEpnUwnas9HsC4ckRvRULB49CA&state=Wxw3TP9BbEwgsnnriMrtLV8We7NsYdhW HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "www.eggpresso.space", referrer: "http://www.eggpresso.space/"

        Please help me. Thank in advance.

        5 days later

        maruco it's displayed in the phpinfo() data. php --ini in the command line will also give you useful data if you're unable to locate it.

        For example on Ubuntu 16.04 with PHP 7.1 and Apache it's /etc/php/7.1/apache2/php.ini

        jordanjay29 still not fix the problem after comment out line 111 and run php flarum cache:clear

        You need to fix the stratigility issue

        composer require zendframework/zend-stratigility:1.2.*
          11 days later

          LuffyyffuL the "bio" thing is meant to include the user Bio (like in biography, user info) on older Facebook's API versions. It is no longer used from 2.8 and on.

          It seems this piece of code is no longer needed.
          Facebook doc: https://developers.facebook.com/docs/apps/changelog

          this code is till in the source of league/oatuh2-facebook .. it seems flarum just does not handle the error properly

          https://github.com/thephpleague/oauth2-facebook/blob/master/src/Provider/Facebook.php

            2 months later

            deseven Just comment out line 111 in vendor/league/oauth2-facebook/src/Provider/Facebook.php:
            //$fields[] = 'bio';

            But after "composer update" it will fail again?

              riartem It won't. You can comment out or erase that line. I've seen only Bazaar extension tends to make that Facebook.php start over.

                riartem I was asking the same thing ? I believe they are waiting for the stable release to push all the fixes.

                  a month later

                  riartem I did the same but still not working. I have the latest beta version