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

Flickr and Twitter filters using oEmbed and JSON #33

Merged
merged 5 commits into from
Jul 28, 2012
Merged

Flickr and Twitter filters using oEmbed and JSON #33

merged 5 commits into from
Jul 28, 2012

Conversation

jbhannah
Copy link
Contributor

Added a filter using Flickr's oEmbed service and JSON response to embed images from supported pasted Flickr URLs (http://www.flickr.com/photos/* or http://flickr.com/photos/*). Maximum width and height arguments and link options (target, rel, &c.) can be passed to the filter:

auto_html_for :body do
  flickr(:maxwidth => 300, :maxheight => 300, :link_options => { :target => "_blank" })
end

Likewise, added a filter using Twitter's oEmbed API that uses the pasted URL of a single tweet and accepts any options that can be passed to the API (this fixes issue #6):

auto_html_for :body do
  twitter(:align => :center)
end

@jbhannah
Copy link
Contributor Author

Updated with Twitter filter.

dejan added a commit that referenced this pull request Jul 28, 2012
Flickr and Twitter filters using oEmbed and JSON
@dejan dejan merged commit b170d54 into dejan:master Jul 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants