Sha256: f0f935d490ce38e85b13663641f8f853162aa53400a99e683f039999a3f2b3d1
Contents?: true
Size: 461 Bytes
Versions: 2
Compression:
Stored size: 461 Bytes
Contents
module OEmbed class Providers # Provider for Facebook videos class FacebookVideo < OEmbed::Provider def initialize(access_token:) super("https://graph.facebook.com/v8.0/oembed_video?access_token=#{access_token}", :json) register_urls! end private def register_urls! ['https://www.facebook.com/*/videos/*', 'https://www.facebook.com/video*'].each { |u| self << u } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-oembed-0.14.1 | lib/oembed/providers/facebook_video.rb |
ruby-oembed-0.14.0 | lib/oembed/providers/facebook_video.rb |