Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-61826

Facebook OAuth2: getting a better-quality profile photo

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4, 3.4.3
    • 3.4.4, 3.5.1
    • Authentication
    • MOODLE_34_STABLE
    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • MDL-61826-master
    • Hide
      1. Turn off Gravatar integration if enabled (disabled by default); because of MDL-61000
      2. Configure Facebook OAuth2 login
      3. Log in to any Facebook account and make sure that the user's photo is uploaded, set and visible at user profile.
      4. Use the button on the Moodle login page to login using Facebook.
      5. Make sure that the Moodle user's photo imported from Facebook has a resolution greater than 50x50 px.
      Show
      Turn off Gravatar integration if enabled (disabled by default); because of MDL-61000 Configure Facebook OAuth2 login Log in to any Facebook account and make sure that the user's photo is uploaded, set and visible at user profile. Use the button on the Moodle login page to login using Facebook. Make sure that the Moodle user's photo imported from Facebook has a resolution greater than 50x50 px.

    Description

      Using the default settings of Facebook OAuth2 in Moodle, during login, the user's photo is downloaded in a very small resolution (50x50 px). Good picture to use in Moodle must have at least 100x100 px. There are several ways to download larger profile picture from Facebook. We can set the preferred dimensions manually or use predefined ones. When we set the photo type to large, the dimensions of the photo are 200 x 200 px. We can even set for example height to 10 000 px. Then we will definitely get the largest possible picture. It seems to me that the standard, predefined setting (large) will be sufficient for us.

      I changed profile picture size to large in the Moodle default Facebook service OAuth2 configuration.

      More about it on Facebook Graph API docs

      Attachments

        Activity

          People

            lukasz Łukasz Szeremeta
            lukasz Łukasz Szeremeta
            Mark Nelson Mark Nelson
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Jake Dallimore, Mathew May, Mihail Geshoski
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9/Jul/18

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 13 minutes
                13m