evan,
@evan@cosocial.ca avatar

I'm interested in hearing from #ActivityPub developers who've successfully mapped #OpenGraph properties from <meta> tags in Web pages onto the Page type and its properties in AS2.

trwnh,
@trwnh@mastodon.social avatar

@evan hot take, why not just use the opengraph namespace/iris directly?

if the goal is to reduce duplication of data, i'd probably recommend the following

  • og:title = as:name
  • og:type = og:type (no way to map this one)
  • og:url = as:url
  • og:image = as:image

for optional ones:

  • og:description = as:summary

all the other ones i'd just use ogp.me iris directly

evan,
@evan@cosocial.ca avatar

@trwnh that's about what I'd expect as a mapping. Have you seen it used to create Page objects, for link previews?

trwnh,
@trwnh@mastodon.social avatar

@evan i have only ever seen link previews implemented out-of-band due to trust issues :/

evan,
@evan@cosocial.ca avatar

@trwnh you mean, on the receiving servers?

trwnh,
@trwnh@mastodon.social avatar

@evan yes, and it creates a sort of "thundering herd" unintentional ddos for web sites on underpowered providers. there have been ideas on how to solve the trust issue, like randomly verifying some small subset and tracking reputation, or like deferring to a semi-centralized pre-trusted "link preview provider" that is shared between several instances, or even simply ignoring the issue and depending on people to report misleading links. (i prefer the provider approach)

evan,
@evan@cosocial.ca avatar

@trwnh another option is accepting the sender-provided metadata to start, and then verifying on a schedule that recognizes that thundering herd problem -- say, a randomized delay between 1 and 300 seconds, with an exponential backoff. And I definitely think having a trusted shared caching server can help immensely.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • meta
  • Macbeth
  • All magazines