Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

94 lines (58 sloc) 4.051 kB

Facebook SDK Grails Plugin

Introduction

The Facebook Platform is a set of APIs that make your application more social. Read more about integrating Facebook with your web site on the Facebook developer site.

This project contains the open source Facebook SDK Grails Plugin that allows you to integrate the Facebook Platform on a website/app powered by Grails.

This plugin is a port of the official Facebook PHP SDK V3.1.1 to Grails 2.0.

It supports the latest OAuth2.0 authentication (required since October 1st 2011).

Facebook SDK Grails Plugin provides the following Grails artefacts:

Installation

Declare the plugin dependency in the BuildConfig.groovvy file, as shown here:

grails.project.dependency.resolution = {
        inherits("global") { }
        log "info"
        repositories {
                //your repositories
        }
        dependencies {
                //your regular dependencies
        }
        plugins {
                //here go your plugin dependencies
                runtime ':facebook-sdk:0.3.0'
        }
}

Config

Create a Facebook app on Facebook Developers, in order to get your own app ID and app secret.

Add your Facebook app parameters to your grails-app/conf/Config.groovy:

grails.plugins.facebooksdk.appId = {APP_ID}
grails.plugins.facebooksdk.appPermissions = {APP_PERMISSIONS}
grails.plugins.facebooksdk.appSecret = {APP_SECRET}

Getting started with a demo app

If you want to quickly run the SDK on a demo app, you can download Facebook SDK Grails - Demo.

Integration with Shiro Grails Plugin

To see an example of integration with Shiro Grails Plugin, you can download Facebook SDK Grails - Shiro demo.

Documentation

Project documentation is located here :

Latest releases

  • 2012-06-12 0.3.1 : package grails.plugins.facebook.sdk renamed to grails.plugin.facebooksdk
  • 2012-06-08 0.3.0 : new documentation based on GDoc, FacebookRestClient added + bug fixes

Bugs

To report any bug, please use the project Issues section on GitHub.

Alpha status

This is an alpha release. The underlying APIs are generally stable, however we may make changes to the library in response to developer feedback.

Feedback

The Facebook SDK Grails Plugin is not an official Facebook SDK such as Javascript, PHP, iOS and Android SDKs.

It is developped by AgoraPulse.

The Facebook Grails SDK is licensed under the Apache Licence, Version 2.0.

Jump to Line
Something went wrong with that request. Please try again.