Scheduled posting of photos
PHP JavaScript CSS Shell ApacheConf
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public_html
.gitignore
.htaccess
README.md
Vagrantfile
bootstrap.sh
example.php
images.php
license.txt
postbot-config-wp.php
postbot-local-wp.php
postbot.sql

README.md

Postbot

Scheduled posting of photos using the WordPress.com REST API.

Photos are stored locally before being scheduled on a blog. All scheduling and blog authorization is done via the REST API. Once scheduled, photos are shown in a pending list and can be deleted (through the API) before they are posted.

Scheduling involves picking a start date and the number of days between each post. Weekends can be avoided.

Nothing is sent to a blog without explicit instructions.

It is possible to connect multiple blogs.

Postbot is responsive and mobile ready. It is fully localized, although no languages files are provided.

API Usage

The following API commands are used:

Requirements

  • PHP 5 with GD or ImageMagick
  • A working WordPress with connection to MySQL
  • An upload directory writeable to by the web server

Installation

  • Get WordPress installed and connected to your database. You don't need to have WordPress available to anyone, but the database functions are used by Postbot
  • Edit postbot-local.php and changed the WordPress include to refer to your WordPress installation
  • Create the Postbot tables
  • Create a new oAuth app for the WordPress.com Connect signin. Set the redirect_uri to be the wpcc.php file in Postbot.
  • Edit postbot-config.php and set the OAUTH_WPCC_KEY, OAUTH_WPCC_SECRET, and OAUTH_WPCC_REDIRECT to the details in the oAuth app
  • Create another oAuth app for the WordPress.com blog authorisation. Set the redirect_uri to be the index.php file in Postbot.
  • Edit postbot-config.php and set the OAUTH_KEY, OAUTH_SECRET, and OAUTH_REDIRECT to the details in this oAuth app
  • Edit other settings in postbot-config.php as appropriate

Vagrant

Postbot comes with a Vagrantfile that will create a working Postbot environment. To use:

  1. Install Vagrant
  2. Install VirtualBox
  3. Install HostsUpdater plugin
  4. Go to the Postbot root directory and run vagrant up
  5. Make sure that the public_html/uploads/ folder is writeable. You can run chmod 777 public_html/uploads/ from the host machine.

Postbot is available from local.postbot.dev