DigiDev
Back to plugins

One Folder Gallery for OneDrive

Put your photos in one OneDrive folder, get albums and a lightbox on your WordPress site. The plugin cannot open anything else in your OneDrive, because Microsoft never gives it a key to the rest.

Status
On WordPress.org
Price
Free
Licence
GPLv2 or later
Account needed
Your own Microsoft account

What it asks for

Asks Microsoft for
Files.ReadWrite.AppFolder
offline_access
It can reach
  • Its own app folder in your OneDrive
  • The albums and photos you put there
  • A refresh token, stored encrypted on your site
It can never reach
  • The rest of your OneDrive
  • Your mail, calendar or contacts
  • Anything belonging to other people in your organisation
  • Any server of mine, because there isn't one

Refused by Microsoft's API, not by the plugin's own code.

01

The whole point is what it can't do

Most gallery plugins that connect to a cloud drive ask to read your entire account. This one asks for an app folder: a single directory that Microsoft creates for it and walls off. Requests for anything outside that folder are refused by Microsoft's API, not by the plugin's own code, so a bug in the plugin cannot widen the hole.

02

Set up in five minutes, once

  1. Install and open the settings

    Settings → One Folder Gallery for OneDrive in your WordPress admin.

  2. Connect your Microsoft account

    You sign in at Microsoft. Your password never touches your website.

  3. Check or create the app folder

    One button. This is the only folder the plugin will ever see.

  4. Add photos in OneDrive

    Every subfolder of the app folder becomes an album. Rename a folder, rename an album.

  5. Put a shortcode on a page

    Publish, and the gallery is live.

03

Three shortcodes, that's the whole API

[one_folder_gallery]
Lists every album in the app folder.
[one_folder_gallery folder_id="…"]
Shows the photos in one album.
[one_folder_gallery folder_id="…" cols="4"]
Sets the number of columns, from 1 to 6.

Thumbnail size

Settings offers 400 px thumbnails by default. Larger ones look better and load more slowly; the images themselves are served by Microsoft, not by your host.

04

If your IT department says no

Some organisations block third-party applications by default. In that case you can register the application yourself in your own tenant, enable public client flows, grant it Files.ReadWrite.AppFolder and offline_access, and paste the application ID into the plugin's advanced setting. No client secret is needed.

Everything else stays the same, and the access stays just as narrow. Changing this setting disconnects the account that is currently connected.

05

Issues in writing, answered when I can

Bug reports and questions belong on the support forum, where everyone can read the answer. Email works too. There is no support desk and no phone number, so an answer takes as long as it takes.

If the plugin saves you a job, a one-off tip is welcome. It buys you nothing extra: no priority, no hidden features, no tiers.