satoshi-takano/opengraph
OpenGraph is a Swift wrapper for OGP ([Open Graph protocol](http://ogp.me/)).
Requirements
- Xcode 11.x / Swift 5.x (If you use Xcode 10.x, you can use 1.1.0.)
- iOS 10.0 or later
- macOS 10.9 or later
- tvOS 9.0 or later
- watchOS 2.0 or later
If you use Swift 2.2 or 2.3, use older version of OpenGraph.
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.
How to handle redirections
In most cases, the OpenGraph can handle server-side redirections automatically. But some web pages provoke redirections on their front-end JavaScript. You might be able to handle these kind of redirections by changing the User-Agent as follows. https://github.com/satoshi-takano/OpenGraph/issues/43
License
This library is under the MIT License.
Package Metadata
Repository: satoshi-takano/opengraph
Default branch: main
README: README.md