Parser for Facebook Pages using the Graph API
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
README.mdown
facebook_page_parser.gemspec

README.mdown

Description

This is a very simple parser for Facebook Pages (a.k.a fan pages), using the Graph API. This gem was made in 2 hours for an experimental project, so many small fixes need to be made. You're welcome to make a pull request :)

Installing

Include the gem on your Gemfile:

	gem 'facebook_page_parser'

Install it

	bundle install

Usage

Simple example:

	page = "http://www.facebook.com/pages/CAIXA-DE-IDEIAS/89888524723"
	fb = FacebookPageParser::Parser.new(page)
	fb.get["description"] #or any attribute you want from the API

Following the same example, to require a picture in a given type you could use:

	thumbnail = fb.page + "/picture&type=small"