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

How can I get metatags by property value? #18

Open
pmaojo opened this issue Apr 8, 2017 · 0 comments
Open

How can I get metatags by property value? #18

pmaojo opened this issue Apr 8, 2017 · 0 comments

Comments

@pmaojo
Copy link

pmaojo commented Apr 8, 2017

Hi, not an issue, just a question :)

require 'opengraph_parser'
fb = OpenGraph.new 'https://www.facebook.com/smashmag/')
puts fb.metadata[property="al:ios:url"]# => nothing
require 'opengraph_parser'

fb = OpenGraph.new('https://www.facebook.com/smashmag/')

puts fb.metadata# => {:title=>[{:_value=>"Smashing Magazine"}], :description=>[{:_value=>"Smashing Magazine. 291 378 Me gusta. Smashing Magazine delivers useful and innovative information to Web designers and developers."}], :image=>[{:_value=>"https://scontent-mad1-1.xx.fbcdn.net/v/t1.0-1/p200x200/17352146_10155179903597490_6515514170610847005_n.png?oh=a76c1ec8e8c526aa557545968c5a03ea&oe=598C27D2"}], :url=>[{:_value=>"https://www.facebook.com/smashmag/"}]}

The info I am trying to get is <meta property="al:ios:url" content="fb://page/?id=45576747489" />
Is that possible?

@pmaojo pmaojo changed the title How can I get metatags without name? How can I get metatags by property value? Apr 8, 2017
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

No branches or pull requests

1 participant