You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to parse Open Graph information for a website that doesn’t have any Open Graph metadata, the library will try to find other information in the website as the following rules:
25
+
<title> for title
26
+
<meta name="description"> for description
27
+
<link rel="image_src"> or all <img> tags for images
28
+
29
+
You can disable this fallback lookup by passing false to init method:
30
+
og = OpenGraph.new("http://ogp.me", false)
4
31
5
32
== Contributing to opengraph_parser
6
-
33
+
7
34
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
35
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
gem.summary=%Q{TODO: one-line summary of your gem}
21
-
gem.description=%Q{TODO: longer description of your gem}
20
+
gem.summary=%Q{A simple Ruby library for parsing Open Graph Protocol information from a website.}
21
+
gem.description=%Q{A simple Ruby library for parsing Open Graph Protocol information from a website. It also includes a fallback solution when the website has no Open Graph information.}
0 commit comments