Project

fboauth2

0.0
No commit activity in last 3 years
No release in over 3 years
simple facebook auth
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.5.2
= 3.0.0
>= 0
= 2.5.0

Runtime

~> 1.6.0
 Project Readme

Fboauth2¶ ↑

Requirements¶ ↑

  • fbgraph 1.6.0

Installation¶ ↑

1) Just place a link like this on your site: /oauth2_facebook/fb_auth?config=example_config_name&param1=any data

  • config_name: You can see this in the yml file example.

  • param1(optional): You can pass any number of parameters through this url

2) create a yml file on your config folder named “fbconfig.yml” /config/fbconfig.yml

Exaple fbconfig.yml:¶ ↑

credentials:
 production:
  api_key: your_api_key
  api_secret: your_api_secret
  permission: offline_access,email #you can see a full list a permissions on http://developers.facebook.com/docs/reference/api/permissions/

 development:
   api_key: your_api_key
   api_secret: your_api_secret
   permission: offline_access,email #you can see a full list a permissions on http://developers.facebook.com/docs/reference/api/permissions/

  test:
   api_key: your_api_key
   api_secret: your_api_secret
   permission: offline_access,email #you can see a full list a permissions on http://developers.facebook.com/docs/reference/api/permissions/

 example_config_name:
  redirect: /redirect_url
  hmodel: t   #(t or f) t= create a 'model'
  model:
   name: ModelName
   params:
    email: fboauh2@emailexample.com
    phone: 123456
  hsubmodel: t   #(t or f) t= create a 'submodel' into 'model'
  submodel:
   name: SubCateg
   params:
    subcateg:      
     0:      
      firstname: examplename
      lastname: examplelastname
  hfbmsg: t    #(t or f) t= create a message on facebook user wall
  facebook:                                                #optional, only if hfbmsg is "t"
   message: Message Title                                  #optional, only if hfbmsg is "t"
   title: ¡message subtitle!                               #optional, only if hfbmsg is "t" 
   link: http://www.link_on_the_message.com                #optional, only if hfbmsg is "t"
   picture: http://www.link_on_the_message.com/icon.png    #optional, only if hfbmsg is "t"
   description: Message description...                     #optional, only if hfbmsg is "t"

Params on redirect url¶ ↑

you can do:

* redirect: /redirect_url/ pm_name_of_param 
* redirect: /redirect_url?param= pm_name_of_param 
* redirect: /redirect_url/ pm_name_of_param /delete

Contributing ¶ ↑

If you’d like to contribute a feature or bugfix: Thanks! To make sure your fix/feature has a high chance of being included, please read the following guidelines:

  • Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet

  • Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it

  • Fork the project

  • Start a feature/bugfix branch

  • Commit and push until you are happy with your contribution

  • Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright © 2011 Hugo Rincon. See LICENSE.txt for further details.