Skip to content

mountainpaw/OpenGraph

 
 

Repository files navigation

OpenGraph

Build Status
OpenGraph is a Swift wrapper for the Open Graph protocol. You can fetch OpenGraph, then you can access the attributes with subscript and the key provided by enum type.

OpenGraph.fetch(url) { og, error in
    print(og?[.title]) // => og:title of the web site
    print(og?[.type])  // => og:type of the web site
    print(og?[.image]) // => og:image of the web site
    print(og?[.url])   // => og:url of the web site
}

Installation

CocoaPods

Insert pod 'OpenGraph' to your Podfile and run pod install.

Carthage

Insert github "satoshi-takano/OpenGraph" to your Cartfile and run carthage update.

License

This project and library has been created by Satoshi Takano and is under the MIT License.

About

A Swift wrapper for the Open Graph protocol.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 72.8%
  • Ruby 16.3%
  • Objective-C 7.5%
  • HTML 3.4%