-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add facebook feed since they stopped supporting their own.
- Loading branch information
1 parent
23d2aa6
commit d641bb1
Showing
6 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<feed xmlns="http://www.w3.org/2005/Atom"> | ||
<id>facebook:<%= @id %></id> | ||
<title><%= @user %> on Facebook</title> | ||
<icon>https://www.facebook.com/favicon.ico</icon> | ||
<link href="<%= request.url %>" rel="self" /> | ||
<updated><%= @data[0]["updated_time"] if @data[0] %></updated> | ||
<%- @data.each do |post| -%> | ||
|
||
<entry> | ||
<id>facebook:post:<%= post["id"] %>:<%= post["updated_time"] %><%= ":#{params[:cachebuster]}" if params[:cachebuster] %></id> | ||
<title><%= post["message"] ? post["message"].truncate(120) : post["type"] %></title> | ||
<link href="<%= post["link"] || "https://www.facebook.com/#{post["id"]}" %>" /> | ||
<updated><%= post["updated_time"] %></updated> | ||
<author><name><%= post["from"]["name"] %></name></author> | ||
<content><%= post["message"] %></content> | ||
</entry> | ||
<%- end -%> | ||
</feed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters