Facebook Like Button

Implementation of Facebook social plugin 'Like' for Android.
Official Facebook SDK does not provide such component for Android.

Screenshots:


Easy integration with ListView.
Various layout available for any of your purposes.
Custom web-page will be shown with <iframe> plugin.
User will be asked to login on official Facebook site.
Original Facebook <iframe> based plugin works inside WebView.
You can set up any of Facebook options.

Gradle dependency:


repositories {
    mavenCentral()
}

dependencies {
    compile 'com.shamanland:facebook-like-button:0.1.8'
}

Sources:


https://github.com/shamanland/facebook-like-button

How to use:

1. Declare FacebookLikeActivity in your AndroidManifest.xml:

<activity
    android:name="com.shamanland.facebook.likebutton.FacebookLikeActivity"
    android:label="@string/facebook"
    android:theme="@style/Theme.Facebook.Like"
    />

2.Insert one of possible buttons in your layout:

Single 'Like' button:

<com.shamanland.facebook.likebutton.FacebookLikeButton
        style="@style/Widget.FacebookLikeButton"
        app:pageUrl="http://blog.shamanland.com/"
        app:pageTitle="Developer's notes"
        app:pageText="This is blog about Android development."
        app:pagePicture="@drawable/ic_launcher"
        />
 
'Like' plugin with box:

<!-- FacebookLikePlugin extends LinearLayout -->
<com.shamanland.facebook.likebutton.FacebookLikePlugin
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        >
    <com.shamanland.facebook.likebutton.FacebookLikeButton
            style="@style/Widget.FacebookLikeButton"
            app:pageUrl="http://blog.shamanland.com/"
            app:pageTitle="Developer's notes"
            app:pageText="This is blog about Android development."
            app:pagePicture="@drawable/ic_launcher"
            />
    <com.shamanland.facebook.likebutton.FacebookLikeBox
            style="@style/Widget.FacebookLikeBox"
            app:calloutMarker="left"
            />
</com.shamanland.facebook.likebutton.FacebookLikePlugin>

'Like' plugin with box above, custom name: 

<com.shamanland.facebook.likebutton.FacebookLikeButton
        style="@style/Widget.FacebookLikeButton"
        app:pageUrl="http://blog.shamanland.com/"
        app:pageTitle="Developer's notes"
        app:pageText="This is blog about Android development."
        app:pagePicture="@drawable/ic_launcher"
        />
 

For more details check our repository: https://github.com/shamanland/facebook-like-button/blob/master/readme.md