Facebook Like for Android

This is simple and easy to use Facebook Like widget for Android.

Quickstart

First setup Facebook Android SDK and Change path to it in project.properties file. More information about it you can find in Facebook Android SDK page .

Setup Facebook Like view:

  1. Add Facebook Like view to layout(see res/layout/facebooklike.xml):
    <com.esminis.facebook.Like
      android:id="@+id/webview"
      android:layout_width="wrap_content" android:layout_height="wrap_content"
    />
  2. Configure Like view(see com.esminis.activity.FacebookLike):
    ((com.esminis.facebook.Like)findViewById(R.id.webview))
      .setApplicationKey("[your facebook application key]")
      .setUriToLike("[uri you want to like]")
      .load();

Downloads

You can download built sample apk here: http://esminis.com/facebooklike/facebooklike.apk

You can download whole Mercurial repository here: http://esminis.com/facebooklike/

You can clone it with this command:
hg clone static-http://esminis.com/facebooklike/

There is also repository mirror: https://bitbucket.org/esminis/facebook-like-for-android/

License

Whole project is licensed under the Apache License, Version 2.0; You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0