Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15162

Oauth Facebook Social Login

    XMLWordPrintable

Details

    Description

      I have been using the oauth Facebook social login on my website for a long time, last night I noticed it doesn't work anymore

      If I enter the following Valid OAuth redirect URIs: https://www.mydomain.com/ucp.php?i=ucp_auth_link&mode=auth_link&link=1&oauth_service=facebook

      I get the following error: Fatal error: Uncaught OAuth\Common\Http\Exception\TokenResponseException: Methods with the same name as their class will not be constructors in a future version of PHP; bitfield has a deprecated constructor in /var/sites/u/mydomain.com/public_html/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/StreamClient.php:73 Stack trace: #0 /var/sites/u/mydomain.com/public_html/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(183): OAuth\Common\Http\Client\StreamClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), NULL, Array, 'GET') #1 /var/sites/u/mydomain.com/public_html/phpbb/auth/provider/oauth/service/facebook.php(72): OAuth\OAuth2\Service\AbstractService->request('/me') #2 /var/sites/u/mydomain.com/public_html/phpbb/auth/provider/oauth/oauth.php(557): phpbb\auth\provider\oauth\service\facebook->perform_auth_login() #3 /var/sites/u/mydomain.com/public_html/phpbb/auth/provider/oauth/oauth.php(487): phpbb\auth\provider\oauth\oauth->link_account_auth_link(Array, 'auth.provider.o in /var/sites/u/mydomain.com/public_html/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/StreamClient.php on line 73

      If I don't enter anything in the Valid OAuth redirect URIs field (which is how I had it configured and working for a very long time), I am forwarded to the Facebook site where I get the following error: URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web OAuth logins are on and add all your app domains as valid OAuth redirect URIs.

      Using phpBB 3.2 and php 7.1, I get the same results using phpBB 3.2 with php 5.6 too.

      https://www.phpbb.com/community/viewtopic.php?f=556&t=2417296

      Attachments

        Activity

          People

            Unassigned Unassigned
            WelshPaul WelshPaul [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: