Alas, Apple doesn’t provide an API for its iLife applications, but MacOSXHints points out that iPhoto has an Automator action for choosing photos, so it should be possible to do this programmatically without completely rolling your own (via Matthew Binkowski).
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed