Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Parser for Facebook Pages using the Graph API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.mdown
Octocat-spinner-32 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"
Something went wrong with that request. Please try again.