Support Center

Integrating Fotomoto into an image gallery

Last Updated: Dec 03, 2017 07:24PM PST


This document is intended for developers who are trying to build Fotomoto compatibility into their lightbox, gallery, or other photo library.


Image galleries are diverse in their appearance and implementation. It's not possible for Fotomoto to support every implementation automatically, so we have provided some API hooks that any developer can use to add Fotomoto Buy Buttons to their gallery.


Three simple steps:

  1. Decide where you'll put the Buy Buttons. Add an HTML element having class "FotomotoToolbarPosition" anywhere in the page. For example, <span class="FotomotoToolbarPosition"></span>.
  2. Call our API every time an image loads. Whenever an image is loaded in the gallery, call FOTOMOTO.API.setBoxImage(url) with the URL of the image.
  3. Call the API to remove the Buy Buttons. Whenever you are done with the view and want to remove the Buy Button toolbar, call FOTOMOTO.API.removeBoxToolbar() (only if the buy buttons are found outside the lightbox).

For more on our API, see Getting Started with the Fotomoto API.

Don't find what you are looking for? Try our community discussions.

Announcements View Discussions

Have A Question?

Recent Discussions

Go to Discussion Forums ​​

Track Your Package

Track your FedEx package
Track Your UPS package

powered by