/FBQuoteWebView

:blue_book: Share the contents in the web view as QUOTE to Facebook.

Primary LanguageObjective-CMIT LicenseMIT

FBQuoteWebView

CocoaPods works badge MIT License

📘 Share the contents in the web view as QUOTE to Facebook.

Overview screenshot

Before Installation

FBQuoteWebView uses the Facebook SDK (FBSDKShareKit).

If your project is not optimized to Facebook yet, you have to follow the Facebook iOS getting start guide.

Installation

Use CocoaPods.

pod 'FBQuoteWebView'

Usage

Just initialize and use FBQuoteWebView same as UIWebView.

NSString *demoURLString = @"https://github.com/KimDarren/FBQuoteWebView";
NSURL *demoURL = [NSURL URLWithString:demoURLString];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:demoURL];

_webView = [[FBQuoteWebView alloc] init];
[_webView loadRequest:request];

// Customizable menu title.
_webView.menuTitle = @"Share Quotes";

So simple, right?

Demo

There is a simple DEMO PROJECT using FBQuoteWebView in Demo directory.

pod install before run the demo project.

Screenshots

  • If users highlight any sentences in the FBQuoteWebView, they can see the Share To Facebook item.

    Demo Screenshot 1

  • By touching the item, users can share the link with the QUOTE that they highlighted.

    Demo screenshot 2

License

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