I was able to get it to work. I’ve put my importer class on GitHub.
I copied some of it from the yahoo code, but there were some tweaks that I had to do. I’m able to call the maybe_reresh_token() function before any data access calls from my other importer plugin.
Either way, it works; feel free to include it (or my other services from that github repo) into future releases of Keyring. Great plugin!
Embedding photo albums would be awesome
I think I solved my problem.
I had successfully imported all my tweets at one time. I was testing some import hooks, and ended up deleting all of them so I could re-import them. For some reason, there was some stale data in the post_meta table. I wiped out all the posts and post_meta records and it worked fine the next time.
Unfortunately, I have been unable to duplicate it to see where exactly it happens.