Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.13 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.13 KB

OpenGraph-Net

AppVeyor Nuget Nuget License

A simple .net assembly to use to parse Open Graph information from either a URL or an HTML snippet.

Usage

OpenGraph graph = OpenGraph.ParseUrl("http://www.amazon.com/Spaced-Complete-Simon-Pegg/dp/B0019MFY3Q");

You can access each open graph value by passing in arguments to the results. For example: graph["Description"] will return the description.

The required Open Graph properties are available view properties on the OpenGraph object as a convenience.

  • graph.Type
  • graph.Title
  • graph.Image
  • graph.Url

The original url used to generate the OpenGraph data is available from the OriginalUrl property graph.OriginalUrl