Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use p-invitee markup for Facebook event invitations #71

Closed
aaronpk opened this issue Feb 22, 2014 · 3 comments
Closed

Use p-invitee markup for Facebook event invitations #71

aaronpk opened this issue Feb 22, 2014 · 3 comments

Comments

@aaronpk
Copy link
Contributor

aaronpk commented Feb 22, 2014

Facebook event invitations should be updated to use p-invitee markup.

The author of the h-entry should be the person who created the invitation on Facebook (currently the author is the invitee, which is backwards).

The content of the h-entry should include a p-invitee property which is the Facebook URL of the person being invited.

Potential markup:

<article class="h-entry">
  <span class="u-uid">tag:facebook.com,2013:600583236694318_rsvp_3901700</span>
  <a class="u-url" href="http://facebook.com/600583236694318#3901700"><time class="dt-published" datetime="2014-02-20T09:00:00-0800">permalink</time></a>

  <div class="h-card p-author">
    <div class="p-name"><a class="u-url" href="http://facebook.com/aaronpk">Aaron Parecki</a></div>
    <img class="u-photo" src="http://graph.facebook.com/aaronpk/picture?type=large" alt="Aaron Parecki" />
    <span class="u-uid">tag:facebook.com,2013:aaronpk</span>
  </div>

  <div class="p-name">Aaron Parecki invited Davy Stevenson</div>
  <div class="e-content"><a href="http://facebook.com/aaronpk">Aaron Parecki</a> invited <a href="http://facebook.com/3901700">Davy Stevenson</a></div>

  <a href="http://facebook.com/3901700" class="p-invitee h-card">
    <img src="http://graph.facebook.com/3901700/picture?type=large" alt="">
    Davy Stevenson
  </a>

  <a class="u-in-reply-to" href="https://www.facebook.com/events/512367802216703"></a>
  <a class="u-in-reply-to" href="http://caseorganic.com/events/2014/02/12/1/homebrew-website-club"></a>
</article>

See Publish an Invitation for more details.

@aaronpk
Copy link
Contributor Author

aaronpk commented Feb 22, 2014

Taking this one step further, could actually invite multiple people with one h-entry!

<article class="h-entry">
  <span class="u-uid">tag:facebook.com,2013:600583236694318_rsvp_3901700</span>
  <a class="u-url" href="http://facebook.com/600583236694318#3901700"><time class="dt-published" datetime="2014-02-20T09:00:00-0800">permalink</time></a>

  <div class="h-card p-author">
    <div class="p-name"><a class="u-url" href="http://facebook.com/aaronpk">Aaron Parecki</a></div>
    <img class="u-photo" src="http://graph.facebook.com/aaronpk/picture?type=large" alt="Aaron Parecki" />
    <span class="u-uid">tag:facebook.com,2013:aaronpk</span>
  </div>

  <div class="p-name">Aaron Parecki invited 2 people</div>
  <div class="e-content">
    <a href="http://facebook.com/aaronpk">Aaron Parecki</a> invited 2 people to the event
  </div>

  <a href="http://facebook.com/3901700" class="p-invitee h-card">
    <img src="http://graph.facebook.com/3901700/picture?type=large" alt="">
    Davy Stevenson
  </a>

  <a href="http://facebook.com/snarfed.org" class="p-invitee h-card">
    <img src="http://graph.facebook.com/snarfed.org/picture?type=large" alt="">
    Ryan Barrett
  </a>

  <a class="u-in-reply-to" href="https://www.facebook.com/events/512367802216703"></a>
  <a class="u-in-reply-to" href="http://caseorganic.com/events/2014/02/12/1/homebrew-website-club"></a>
</article>
@snarfed
Copy link
Owner

snarfed commented Feb 23, 2014

thanks for all the details! this one should be pretty quick.

@snarfed snarfed added the now label Feb 23, 2014
snarfed added a commit to snarfed/granary that referenced this issue Feb 27, 2014
snarfed added a commit to snarfed/granary that referenced this issue Feb 27, 2014
@snarfed
Copy link
Owner

snarfed commented Feb 27, 2014

done! here's example markup:

https://brid-gy.appspot.com/rsvp/facebook/212038/200590280142030/1216101
http://pin13.net/mf2/?url=https://brid-gy.appspot.com/rsvp/facebook/212038/200590280142030/1216101

<body><article class="h-entry">
  <span class="u-uid">tag:facebook.com,2013:200590280142030_rsvp_1216101</span>
  <div class="p-name"><a class="u-url" href="http://facebook.com/200590280142030#1216101">NAME is invited.</a></div>
  <div class="e-content">
    <div class="h-card p-invitee">
    <div class="p-name"><a class="u-url" href="http://facebook.com/1216101">NAME</a></div>
    <img class="u-photo" src="http://graph.facebook.com/1216101/picture?type=large" alt="NAME">
    <span class="u-uid">tag:facebook.com,2013:1216101</span>
  </div>
  is invited.
  </div>
  <a class="u-in-reply-to" href="http://werd.io/2014/homebrew-website-club"></a>
  <a class="u-in-reply-to" href="http://indiewebcamp.com/events/2014-01-29-homebrew-website-club"></a>
</article>

it usually won't have the inviter, ie the event owner, since that would take an extra API call that i decided not to burn the latency on. it's fully implemented, though, so it may show up in the future or in other silos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants