{"id":18492197,"url":"https://github.com/makevoid/rfb","last_synced_at":"2025-08-22T20:09:27.280Z","repository":{"id":807889,"uuid":"513812","full_name":"makevoid/RFb","owner":"makevoid","description":"RubyFacebook  - interact with Facebook REST API (json) - rails3 enabled","archived":false,"fork":false,"pushed_at":"2011-10-19T18:45:01.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T07:17:57.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/makevoid/RFb","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makevoid.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-02-11T20:44:22.000Z","updated_at":"2018-10-18T16:04:49.000Z","dependencies_parsed_at":"2022-08-16T11:00:11.161Z","dependency_job_id":null,"html_url":"https://github.com/makevoid/RFb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2FRFb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2FRFb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2FRFb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2FRFb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makevoid","download_url":"https://codeload.github.com/makevoid/RFb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254046576,"owners_count":22005623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T13:06:31.217Z","updated_at":"2025-05-14T00:32:46.579Z","avatar_url":"https://github.com/makevoid.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RFb\n\n**RubyFacebook** - interact with Facebook REST API (json) - rails3 enabled\n\nShare datas with Facebook via JSON with RFb! No XML to deal with, no parsers needed, reduced verbosity, increased happiness. Ruby1.9 required.\n\n\n## Installation\n\n    gem install RFb\n\n\n## Bundling\n\nto bundle RFb, in your Gemfile:\n  \n    gem 'RFb', :require =\u003e 'r_fb'\n\n\n## Configuration\n\nconfigurations in yml file soon will come...\n\n\n### Rails 3\n\n- add RFb to your Gemfile\n- install it (bundle install)\n- create a new initializer file (say 'facebook.rb') and add some configurations:\n\nconfig/initializers/facebook.rb :\n\n    require 'r_fb'\n    \n    RFb.app_name = \"your_app_name\"\n    RFb.environment = Rails.env\n    RFb.api_key = { \n      development: \"your_facebook_api_key_here\",\n      test: \"\",\n      production: \"\"\n    }\n    RFb.secret_key = { \n      development: \"your_facebook_secret_here\",\n      test: \"\",\n      production: \"\"\n    }\n    RFb.debug = true # displays \n\n\n\nand you're done!\n\n\n\n## Basic Usage\n\nSee the facebook REST API ( http://wiki.developers.facebook.com/index.php/API ) so you can see what methods are available and how to call them. \n\n\n*Example:*\n\nTo get some user information:\n  \n    fields = %w(username name first_name has_added_app locale pic profile_url status timezone)\n    RFb.request({\n      method: \"facebook.Users.getInfo\", \n      uids: [1218562195].to_s, \n      fields: [fields].to_s\n    })\n  \nresult:\n\n    [{\"first_name\":\"Francesco\",\"name\":\"Francesco Canessa\",\"pic\":\"http:\\/\\/profile.ak.fbcdn.net\\/v22940\\/158\\/98\\/s1218562195_9493.jpg\",\"status\":{\"message\":\"\",\"time\":0,\"status_id\":0},\"timezone\":1,\"uid\":1218562195,\"has_added_app\":true,\"locale\":\"en_US\",\"profile_url\":\"http:\\/\\/www.facebook.com\\/makevoid\",\"username\":\"makevoid\"}]\n\n\na shorter version:\n\n    User.new(fb_id: 1218562195)\n  \n  \n  \n# Setup sessions\n\nbuild better rails3 controllers-model api and document... I'll create an example project\n\n## Getting friends\n\n    RFb::User.new(fb_id: @current_user.fb_id).friends\n\nresult (an array of users properties):\n\n    [{\"current_location\"=\u003e{\"city\"=\u003e\"Buffalo\", \"state\"=\u003e\"New York\", \"country\"=\u003e\"United States\", \"zip\"=\u003e\"14623\"}, \"first_name\"=\u003e\"Ali\", \"name\"=\u003e\"Ali Babloo\", \"pic\"=\u003e\"http://profile.ak.fbcdn.net/v230/1615/8/s1027654249_4327.jpg\", \"status\"=\u003e{\"message\"=\u003e\"\", \"time\"=\u003e0, \"status_id\"=\u003e0}, \"timezone\"=\u003e-8, \"has_added_app\"=\u003etrue, \"locale\"=\u003e\"en_US\", \"profile_url\"=\u003e\"http://www.facebook.com/dark14horse\", \"username\"=\u003e\"dark14horse\"}, {..........}, {...}]\n\nmore docs will come when session handling API will be solid enough!\n  \n  \n\nLook at the source code and see that is pretty simple stuff, so fork it, change it, get inspired and roll your own... simply do whatever you want!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakevoid%2Frfb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakevoid%2Frfb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakevoid%2Frfb/lists"}