I do have a few questions/clarifications though so as not to be confused since there are a few pieces you’ve left out.
For the IndieAuth token, which is created at /wp-admin/users.php?page=indieauth_user_token
one only needs to give it a title and the “create” scope?
For the “then” portion that uses IFTTT.com’s Webhooks service are the following correct?
- The URL is (when used with WordPress) of the form:
https://example.com/wp-json/micropub/1.0/endpoint
- The Method is:
POST
- The Content Type I’m guessing based on the Body field you’ve included is:
application/x-www-form-urlencoded
For your Pocket example, it looks like you’re using the Post Kinds Plugin, so I’m guessing that you could have gotten away without the {{Excerpt}} and {{Title}} portions and just have sent the URL which Post Kinds picks up and parses to give you your context portion with a title and an excerpt anyway?
It looks like part of the trouble of this PESOS set up is that you’re too reliant in the long run of relying on Pocket (or other services) being around in the long term. If Pocket disappears, then really, so does most of your bookmark, which ideally should point to the canonical URL of the content you’re bookmarking. Of course perhaps IFTTT may not give you that URL in many cases. It looks to me like the URL you’re bookmarking would make a more appropriate syndication link URL.
For most of my bookmarks, likes, reads, etc. I use a plugin that scrapes my post and saves a copy of the contents of all the URLs on my page to the Internet Archive so that even in the event of a site death, a copy of the content is saved for me for a later date.
In any case, I do like this method if one can get it working. For some PESOS sources, I’ve used IFTTT before, though typically with RSS feeds if the silo provides them. Even then I’m often saving them directly to WordPress as drafts for later modification if the data that IFTTT is providing is less than ideal. Sometimes worse, using RSS doesn’t allow one to use Post Kinds URL field and parsing functionality the way your webhook method does.
Chris, I was wondering what plugin you use to store copies of the links to Archive.org?
Syndicated copies:
I’m using post-archival, which looks like it’s temporarily disabled in the repository, though I’m not sure exactly why since “Guideline Violation” isn’t very descriptive. I suspect you could find it in SVN for download. I use it in combination with Broken Link Checker to find and fix links when they become broken.
Syndicated copies:
Good questions!
I created a single token with every permission, as I am reusing this token across all of my IFTTT services. The way I created it was to use GimmeAToken much in the same way that Jan-Lukas did. Funny how we both went for that. But I believe that creating a token via the link you provided is probably the way to go in the future.
Yes, this is all correct.
I agree wholeheartedly. I’m going to do a bit more digging to see if I can decouple with pocket a bit more when I have time. I’ll be sure to send you a webmention if I find anything fruitful in that search!
Update on this: It seems that IFTTT does indeed grab the original URL, it just happens that my example bookmark was pointing to an article from Pocket. You can see another example here.