Latest 0.4.1
Homepage https://github.com/kompozer/LinkPreviewKit
License MIT
Platforms ios 7.0, requires ARC
Dependencies HTMLReader
Authors

Build Status
Version
License
Platform

┬ÁLibrary to fetch the social media meta tag information from a website URL.

Supports Meta Tags for Standard Template (title and description), TwitterCard (twitter:) and OpenGraph (og:).

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.


#import "LKLinkPreviewKit.h"

[LKLinkPreviewReader linkPreviewFromURL:URL completionHandler:^(NSArray *previews, NSError *error) {
    if (previews.count > 0  && ! error) {
        for (LKLinkPreview *preview in previews) {
            NSLog(@"title: %@", preview.title);
            NSLog(@"type: %@", preview.type);
            NSLog(@"URL: %@", preview.URL);
            NSLog(@"imageURL: %@", preview.imageURL);
            NSLog(@"linkDescription: %@", preview.linkDescription);
        }
    }
}];

Requirements

Installation

LinkPreviewKit is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "LinkPreviewKit"

Author

Andreas Kompanez, @kompozer

License

LinkPreviewKit is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "LinkPreviewKit",
    "version": "0.4.1",
    "summary": "Link preview kit",
    "description": "Library to fetch the social media meta tag information from a website URL. See [http://moz.com/blog/meta-data-templates-123](http://moz.com/blog/meta-data-templates-123)",
    "homepage": "https://github.com/kompozer/LinkPreviewKit",
    "license": "MIT",
    "authors": {
        "Andreas Kompanez": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kompozer/LinkPreviewKit.git",
        "tag": "0.4.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "LinkPreviewKit": [
            "Pod/Assets/*.png"
        ]
    },
    "dependencies": {
        "HTMLReader": []
    }
}

Pin It on Pinterest

Share This