http://jypsie.com/RFacebook/posts
Last checked 2 months ago.
3 people have subscribed to this feed.
post frequency (last month)
PostRank™
From Recent Posts | Pages, 8 months ago,
0 comments
I’m trying to setup RFacebook on a project on my local machine.
I’m using the “20-Minute Quick Start Guide for RFacebook” (http://rfacebook.wordpress.com/2007/12/28/quick…).
This tutorial shows the field “Callback URL” on Facebook with the value “http://localhost:3000”.
I used that, and followed the rest of the instructions. But when I run my application, I get some loop on the browser. It keeps alternating between connecting to facebook and to localhost, and the page is alway blank.
Actually, the first time I ran it, a got a page where I selected the application, but this page doesn’t show anymore.
I’m not sure if I need to use a tunnel and also what I should put in “callback_path” inside facebook.yml.
I’d be grateful if someone can shed some light here…
From Recent Posts | Pages, 8 months ago,
0 comments
Hi folks,
I spend the past few days learning a bunch of new technologies, and picked rfracebook and rails among them; I just released the test app (http://apps.facebook.com/cozyforcarbon/score) and thought I’d share my experiences.
I posted extensive notes on the facebook forum, but by and large the only major problem I ran into was the use of sessions. I had a good solid day of debugging why users were getting each other’s sessions and why sessions weren’t cleared. Part of this was the fact that I was mixing (1) standard FBML requests (proxied through Facebook) with (2) Ajax.useLocalProxy calls with (3) URLRequest invocations issued by ActionScript in Flash. Well, none of those three approaches shared the same session, as you might predict; worse, it became possible for me to get access to the wrong session instead of no session at all.
I ended up moving to a nearly stateless approach in which I pass the uid around on every invocation and then add a bunch of checksums to verify the identity of the user who sent the uid in the query.
Full explanation of my experiences are on the Facebook forums:
http://forum.developers.facebook.com/viewtopic….
Altogether, it was an interesting experience; I was new to ruby, rails, and facebook, but the fact that I could pull together a small app like this to learn things in only a week or so of after hours part-time effort is really a testament to you and the rails and facebook communities at large. Good on ya! And thanks for being kind to a newb like myself.
Cheers,
Sean
From Recent Posts | Pages, 8 months ago,
0 comments
I’ve updated to the latest RFacebook – both the gem, as well as deleting my old rfacebook_on_rails plugin in my Rails app, and installing the latest plugin. However, while my app actually runs, the presence of the Rails plugin breaks Rake in my Rails app:
$ rake -T (in /Users/chris/Code/myfbapp) rake aborted! uninitialized constant ActionView /Users/chris/Code/myfbapp/rakefile:10 (See full trace by running task with --trace)
I’m using Rails 2.0.2, Ruby 1.8.6, on MacOS X 10.5. I’ve tried with Rake 0.7.3 as well as 0.8.1.
I found that the loading of init.rb (from the all.rake file) causes the problem, as it doesn’t like the line(s):
ActionView::Base.send(:include, RFacebook::Rails::ViewExtensions) ActionController::Base.send(:include, RFacebook::Rails::ControllerExtensions) ActiveRecord::Base.send(:include, RFacebook::Rails::ModelExtensions)
For the time being, the simplest fix, which seems to not hurt anything (including the rake tunnel tasks), is for me to comment out line 92 in all.rake, where it does the include of init.rb.
Anyway, maybe someone else has already run into this and has a solution (please post), but in the mean time, I’m looking into it…
From Recent Posts | Pages, 8 months ago,
0 comments
I do step by step of the tutorial: http://rfacebook.wordpress.com/2007/12/28/quick…
When i generate controller like below command on step 6:
ruby script/generate controller workshop index debug
But it generates error like this:
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’: no such file to load—rfacebook_on_rails/view_extensions (MissingSourceFile) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’ from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require’ from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in’ from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require’ from E:/Projects/Facebook/Resource/Funstatus/workspace/myrfacebook/vendor/plugins/rfacebook_on_rails/init.rb:33:in `evaluate_init_rb’ from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/rails/plugin.rb:79:in `evaluate_init_rb’ from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings’ from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/rails/plugin.rb:75:in `evaluate_init_rb’ … 14 levels… from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/generate.rb:1 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require’ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require’ from script/generate:3
This error happens after i install rfacebook and install plugin to my application.
Does any one know this error?
Appreciate any help :)
Thanks,
Minh
From Recent Posts | Pages, 9 months ago,
0 comments
Yes, remove that line. That usage was deprecated in September :) I don’t think the liverails tutorial was ever updated.
From Recent Posts | Pages, 9 months ago,
0 comments
Hey all, I have just written a post on my blog regarding maintenance of RFacebook. Unfortunately, I haven’t had the proper time to maintain the library, and I’m looking for new maintainers and opinions on whether RFacebook should simply defer to Facebooker (once there is an official Facebooker release).
Please let me know your thoughts, leave them on the blog post if possible.
From Recent Posts | Pages, 9 months ago,
0 comments
Blog post here:
http://www.livelearncode.com/archives/28
Update your gem:
gem update rfacebook
and you need to reinstall your plugin since it was separated out completely from the Gem:
script/plugin install svn://rubyforge.org/var/svn/rfacebook/plugins/rfacebook
From Recent Posts | Pages, 9 months ago,
0 comments
Hey guys,
I’m doing a facebook version of one existing Rails app. And in this app the User model already have first_name and last_name attributes, so when I do acts_as_facebook_user the methods to get those attributes are replaced by rfacebook. Anyone ever run into this problem?
I think the best way to fix this is to allow the user to configure rfacebook so the attributes get a prefix. like, acts_as_facebook_user :use_fb_prefix. And then the facebook attributes would be available in user.fb_first_name, user.fb_last_name and so on.
What do you guys think? I’ll do a patch so if you have any suggestion please reply.
From Recent Posts | Pages, 9 months ago,
0 comments
thanks a bunch. I appreciate the hard work you have done on this. I would be incapable of writing my application without your hard work.
From Recent Posts | Pages, 9 months ago,
0 comments
Sorry if this is a dumb question, but I would like to do “require_facebook_login” but only if they are coming from the facebook canvass, I want my application to work normally if they are coming direct.
thanks
Joel
From Recent Posts | Pages, 9 months ago,
0 comments
Hello,
I’ve published a new 20-Minute Quick Start Guide for RFacebook that shows you how to create a Facebook application from scratch using Ruby on Rails in 10 easy steps:
o Install the rfacebook gem
o Create a Rails application
o Install the rfacebook Rails plugin
o Log on to Facebook and set up a new application
o Create facebook.yml configuration file and add API key and secret
o Configure Rails root URL
o Create Rails workshop controller and configure default route
o Add rfacebook login code to your controller
o Use the Facebook API to get your name, profile pic and status
o That’s it!
More @ http://rfacebook.wordpress.com/2007/12/28/quick…
Cheers.
PS: Please send any comments, corrections or additions about the RFacebook Quick Start Guide to the rfacebook Mailing List/Forum @ http://groups.google.com/group/rfacebook Thanks!
From Recent Posts | Pages, 9 months ago,
0 comments
Are there any examples, tips and/or tricks I can be provided with regarding RoR use of FBJS? I’ve looked in this forum and I can’t find much. BTW, is there a search feature for this forum?
Thanks!
Rich
From Recent Posts | Pages, 9 months ago,
0 comments
Hello,
Thanks to Chad Rosen – the Rubyist behind the IThinker Facebook app – the 1st rfacebook Sightings posting is now online.
On tips, tricks or advice for developers getting started with Facebook development and rfacebook Chad Rosen writes:
o Configuring a facebook app is kind of a pain. Expect the first app to take a while to setup.
o The one drawback of facebook development is that you need an external server. I have my own but there may be services out there you can pay for.
o Figure out ssh tunneling as soon as you can. It makes development a much better experience.
o Make sure you read up on configuring rfacebook. I had a lot of issues with configuration that really confused me.
Full story @ http://rfacebook.wordpress.com/2007/12/19/ithinker
Using the rfacebook gem? Tell us about your Facebook app on the rfacebook Mailing List/Forum and get short-listed for the rfacebook Sightings series. More @ http://groups.google.com/group/rfacebook
Cheers.
____________
Gerald Bauer – Rails & Internet Professional – http://geraldbauer.wordpress.com
From Recent Posts | Pages, 9 months ago,
0 comments
Hello,
I published a first draft on “What’s the difference between rfacebook and Facebooker?” on the rfacebook questions & answers site @ http://rfacebook.wordpress.com
If you have any comments, corrections or additions about rfacebook vs Facebooker I invite you to send them along to the rfacebook Mailing List/Forum @ http://groups.google.com/group/rfacebook
Cheers.
From Recent Posts | Pages, 9 months ago,
0 comments
I have an RFacebook/Facebook application. I am having trouble getting redirect_to to work elegantly.
In controller canvas_controller, I have def store_date ... redirect_to :action => :inputform end
When that action is executed from inside facebook, e.g. http://apps.facebook.com/myapp/inputform the redirect ends up in my ‘external app’, i.e. at http://fb.mydomain.com/inputform, and not within the Facebook frame. I presume that’s because redirect_to doesn’t know that the original, intended url is and redirects relative to the external app.
(I have gotten it to work with redirect_to(“http://apps.facebook.com/myapp/inputform”) but that’s ugly.
Any ideas?