From adeel at proletariandesign.com Sun Mar 1 02:56:06 2009 From: adeel at proletariandesign.com (Adeel Ahmad) Date: Sat, 28 Feb 2009 23:56:06 -0800 Subject: [Facebooker-talk] Facebook connect and One-line stories In-Reply-To: <168ef1510902272349g6275ee29g74b02e67c7611007@mail.gmail.com> References: <168ef1510902262355u14309db9qe299154f04519c72@mail.gmail.com> <168ef1510902271335h72f47b33je961d02abc631b1d@mail.gmail.com> <83D54185-CD28-48DF-89BF-EC0B504B165E@elevatedrails.com> <168ef1510902272349g6275ee29g74b02e67c7611007@mail.gmail.com> Message-ID: <168ef1510902282356i74643f30ib6730cdd1b75d4e1@mail.gmail.com> Ok the new changes seem to only like Rails 2.2.2.All works now after I upgraded mine from 2.1.1... now to make sure my tests are all ok... - Adeel Founder/President Proletarian Design LLC 1066 47th Ave., Suite 19 Oakland, CA 94601 t: 415.205.0274 f: 415.871.2200 skype: a2ahmad twitter: _adeel www.proletariandesign.com On Fri, Feb 27, 2009 at 11:49 PM, Adeel Ahmad wrote: > Unfortunately I haven't been able to get very far integrating this into my > app. I get the "wrong number of arguments (1 for 2)" error on the line: <% > init_fb_connect "XFBML","Api" do %> > in the application layout file and can't seem to get away from it so my app > never gets to the its main page. I am able to get Mike's example app > somewhat working. I'm on Rails 2.1.1 and the example app is 2.2.2. Don't > know if there is a dependency there. > However even with Mike's app, while I'm able to see the login button and > click it to get the Connect prompt, it always tells me I'm unable to login. > I did update the facebooker.yml file with my dev app keys. > Any ideas? > > > - Adeel > > Founder/President > Proletarian Design LLC > 1066 47th Ave., Suite 19 > Oakland, CA 94601 > t: 415.205.0274 > f: 415.871.2200 > skype: a2ahmad > twitter: _adeel > www.proletariandesign.com > > > On Fri, Feb 27, 2009 at 1:43 PM, Mike Mangino wrote: > >> Yep! >> The code pops up a window that lets the user pick what size story to show. >> It defaults to short story. >> >> Mike >> >> On Feb 27, 2009, at 4:35 PM, Adeel Ahmad wrote: >> >> Thanks, I'll dig into this tonight. This will be very useful.At the end, >> when you list code to prompt the user if they want to allow the >> notification, will this work for one-line stories as well? Since FB doesn't >> let us send these automatically I'm hoping a simple confirmation prompt will >> work. >> >> >> - Adeel >> >> Founder/President >> Proletarian Design LLC >> 1066 47th Ave., Suite 19 >> Oakland, CA 94601 >> t: 415.205.0274 >> f: 415.871.2200 >> skype: a2ahmad >> twitter: _adeel >> www.proletariandesign.com >> >> >> On Fri, Feb 27, 2009 at 1:27 PM, Mike Mangino > > wrote: >> >>> I just updated facebooker and my sample application. >>> >>> To get a facebook session for the current user, you can use: >>> >>> before_filter :create_facebook_session >>> >>> This is like the old :set_facebook_session, but it doesn't store the >>> session in a cookie. >>> >>> To actually publish notifications, I use the following code in my >>> controller: >>> def create >>> @note = current_user.sent_notes.create!(params[:note]) >>> flash[:notice] = "Note sent to #{@note.recipient.email<%23%7B at note.recipient.email> >>> }" >>> if facebook_session >>> flash[:user_action_to_publish] = >>> UserPublisher.create_note_sent(@note,facebook_session) >>> end >>> redirect_to notes_path >>> end >>> >>> That stores a new user action in the flash. If I wasn't redirecting, I >>> could assign it to @ user_action_to_publish >>> >>> Then, in my controller, I grab the object from the flash after a >>> redirect: >>> >>> before_filter :load_actions_to_publish >>> def load_actions_to_publish >>> @user_action_to_publish = flash[:user_action_to_publish] >>> flash[:user_action_to_publish]=nil >>> end >>> >>> Finally, I have a bit in my view that calls these. This means that on the >>> page after an action would create a notification, the user is prompted to >>> allow the notification >>> >>> >>> in application.html.erb >>> >>> <% init_fb_connect "XFBML","Api" do %> >>> <%= fb_user_action(@user_action_to_publish) if >>> @user_action_to_publish%> >>> <%= yield :fb_connect%> >>> <% end %> >>> >>> >>> Mike >>> >>> >>> >>> On Feb 27, 2009, at 2:55 AM, Adeel Ahmad wrote: >>> >>> This is going to be great... I'm looking for feed publishing for my FB >>>> Connect app as well. >>>> I ran into the issue that FB's policy for Connect apps is that they >>>> don't let one-line stories get published automatically unless they are >>>> whitelisted by Facebook first. And that policy is still under review. >>>> The only other option is generating a feed dialog but I don't see feed >>>> dialog's in Facebooker? >>>> >>>> -- >>>> - Adeel >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Sun Mar 1 10:50:17 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Sun, 1 Mar 2009 10:50:17 -0500 Subject: [Facebooker-talk] Facebook connect and One-line stories In-Reply-To: <4F4BB692-9D41-40A9-B2A9-0BED38953400@gmail.com> References: <168ef1510902262355u14309db9qe299154f04519c72@mail.gmail.com> <4F4BB692-9D41-40A9-B2A9-0BED38953400@gmail.com> Message-ID: <620B66D4-4A7D-4103-AFB5-D0259B8E4692@elevatedrails.com> On Feb 27, 2009, at 10:23 PM, kevin lochner wrote: > hey mike - > > Can you explain what you're doing here:? > >> <%= yield :fb_connect%> > Sure, that's just an extension point for me to provide extra js that I want to run in the context of the api initialization. I'm not using it yet, but I think I will when I start doing friend invitations. Mike > - kevin > > On Feb 27, 2009, at 4:27 PM, Mike Mangino wrote: > >> I just updated facebooker and my sample application. >> >> To get a facebook session for the current user, you can use: >> >> before_filter :create_facebook_session >> >> This is like the old :set_facebook_session, but it doesn't store >> the session in a cookie. >> >> To actually publish notifications, I use the following code in my >> controller: >> def create >> @note = current_user.sent_notes.create!(params[:note]) >> flash[:notice] = "Note sent to #{@note.recipient.email}" >> if facebook_session >> flash[:user_action_to_publish] = >> UserPublisher.create_note_sent(@note,facebook_session) >> end >> redirect_to notes_path >> end >> >> That stores a new user action in the flash. If I wasn't >> redirecting, I could assign it to @ user_action_to_publish >> >> Then, in my controller, I grab the object from the flash after a >> redirect: >> >> before_filter :load_actions_to_publish >> def load_actions_to_publish >> @user_action_to_publish = flash[:user_action_to_publish] >> flash[:user_action_to_publish]=nil >> end >> >> Finally, I have a bit in my view that calls these. This means that >> on the page after an action would create a notification, the user >> is prompted to allow the notification >> >> >> in application.html.erb >> >> <% init_fb_connect "XFBML","Api" do %> >> <%= fb_user_action(@user_action_to_publish) if >> @user_action_to_publish%> >> <%= yield :fb_connect%> >> <% end %> >> >> >> Mike >> >> >> >> On Feb 27, 2009, at 2:55 AM, Adeel Ahmad wrote: >> >>> This is going to be great... I'm looking for feed publishing for >>> my FB Connect app as well. >>> I ran into the issue that FB's policy for Connect apps is that >>> they don't let one-line stories get published automatically unless >>> they are whitelisted by Facebook first. And that policy is still >>> under review. >>> The only other option is generating a feed dialog but I don't see >>> feed dialog's in Facebooker? >>> >>> -- >>> - Adeel >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > -- Mike Mangino http://www.elevatedrails.com From klochner at gmail.com Mon Mar 2 12:09:40 2009 From: klochner at gmail.com (kevin lochner) Date: Mon, 2 Mar 2009 12:09:40 -0500 Subject: [Facebooker-talk] Facebook connect and One-line stories In-Reply-To: <620B66D4-4A7D-4103-AFB5-D0259B8E4692@elevatedrails.com> References: <168ef1510902262355u14309db9qe299154f04519c72@mail.gmail.com> <4F4BB692-9D41-40A9-B2A9-0BED38953400@gmail.com> <620B66D4-4A7D-4103-AFB5-D0259B8E4692@elevatedrails.com> Message-ID: <1FDF31CA-551A-4DB5-9718-EC2397FA9D81@gmail.com> thanks mike - At the risk of revealing how new I am to RoR, I hadn't yet come across content_for, this will be really helpful - I've been having problems with multiple window.onload calls and didn't have a good solution. Regarding the rest of your demo site - I think you could smooth out the account creation and login system to take better advantage of fb connect. First off, your app requires a page refresh to pick up the fb connect login status, because the cookies get set when the page is rendered. The facebook demo app (therunaround) uses a window.onload call to refresh the page if the server hasn't picked up the user login status (that's one of my window.onload calls). You may also want to tweak how you handle login status: > def current_user > if session[:user_id] > @current_user ||= User.find(session[:user_id]) > elsif facebook_session and @current_user.nil? > user = User.find_by_facebook_id(facebook_session.user.id) > if user > session[:user_id] = user.id > @current_user = user > end > end > end If the user logs out of facebook they should also be logged out of your site, so you shouldn't store the userid in the session if they're logged in via fb connect - just pull it from the cookies every time. One other suggestion - I use the post-authorize url to handle account creation, so users aren't forced to create a native account and subsequently link their fb account (although it's good to offer the option if they go the native account route). -kevin On Mar 1, 2009, at 10:50 AM, Mike Mangino wrote: > > On Feb 27, 2009, at 10:23 PM, kevin lochner wrote: > >> hey mike - >> >> Can you explain what you're doing here:? >> >>> <%= yield :fb_connect%> >> > > Sure, that's just an extension point for me to provide extra js that > I want to run in the context of the api initialization. I'm not > using it yet, but I think I will when I start doing friend > invitations. > > Mike > > >> - kevin >> >> On Feb 27, 2009, at 4:27 PM, Mike Mangino wrote: >> >>> I just updated facebooker and my sample application. >>> >>> To get a facebook session for the current user, you can use: >>> >>> before_filter :create_facebook_session >>> >>> This is like the old :set_facebook_session, but it doesn't store >>> the session in a cookie. >>> >>> To actually publish notifications, I use the following code in my >>> controller: >>> def create >>> @note = current_user.sent_notes.create!(params[:note]) >>> flash[:notice] = "Note sent to #{@note.recipient.email}" >>> if facebook_session >>> flash[:user_action_to_publish] = >>> UserPublisher.create_note_sent(@note,facebook_session) >>> end >>> redirect_to notes_path >>> end >>> >>> That stores a new user action in the flash. If I wasn't >>> redirecting, I could assign it to @ user_action_to_publish >>> >>> Then, in my controller, I grab the object from the flash after a >>> redirect: >>> >>> before_filter :load_actions_to_publish >>> def load_actions_to_publish >>> @user_action_to_publish = flash[:user_action_to_publish] >>> flash[:user_action_to_publish]=nil >>> end >>> >>> Finally, I have a bit in my view that calls these. This means that >>> on the page after an action would create a notification, the user >>> is prompted to allow the notification >>> >>> >>> in application.html.erb >>> >>> <% init_fb_connect "XFBML","Api" do %> >>> <%= fb_user_action(@user_action_to_publish) if >>> @user_action_to_publish%> >>> <%= yield :fb_connect%> >>> <% end %> >>> >>> >>> Mike >>> >>> >>> >>> On Feb 27, 2009, at 2:55 AM, Adeel Ahmad wrote: >>> >>>> This is going to be great... I'm looking for feed publishing for >>>> my FB Connect app as well. >>>> I ran into the issue that FB's policy for Connect apps is that >>>> they don't let one-line stories get published automatically >>>> unless they are whitelisted by Facebook first. And that policy is >>>> still under review. >>>> The only other option is generating a feed dialog but I don't see >>>> feed dialog's in Facebooker? >>>> >>>> -- >>>> - Adeel >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > From ralxz.productions at gmail.com Mon Mar 2 12:18:33 2009 From: ralxz.productions at gmail.com (Ryan Ghods) Date: Mon, 2 Mar 2009 09:18:33 -0800 Subject: [Facebooker-talk] Facebook connect and One-line stories Message-ID: <963d83440903020918u3d06a0b5t220a416ffc8a3c1e@mail.gmail.com> Hey Mike, Thanks for the sample/template app, it really helped since documentation on FB connect is close to nil at this point. It would have otherwise taken me days to figure out, instead of now only a few short hours. Would you be able to add a few examples on how to invite friends to the app through facebook, and then how to see other friends that already have the app connected? It would also be important to remove all the friends from the invitation list that already have the app connected. Thanks again, Ryan G From mmangino at elevatedrails.com Mon Mar 2 13:15:43 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Mon, 2 Mar 2009 13:15:43 -0500 Subject: [Facebooker-talk] Facebook connect and One-line stories In-Reply-To: <963d83440903020918u3d06a0b5t220a416ffc8a3c1e@mail.gmail.com> References: <963d83440903020918u3d06a0b5t220a416ffc8a3c1e@mail.gmail.com> Message-ID: <681E4F6C-0022-4C71-BDF4-6D11EA47B6C1@elevatedrails.com> That's the next thing on my list. I put the app on github to allow others to help out too. If anyone wants to improve the app, feel free to fork it and send me pull requests. Mike On Mar 2, 2009, at 12:18 PM, Ryan Ghods wrote: > Hey Mike, > > Thanks for the sample/template app, it really helped since > documentation on FB connect is close to nil at this point. It would > have otherwise taken me days to figure out, instead of now only a few > short hours. > Would you be able to add a few examples on how to invite friends to > the app through facebook, and then how to see other friends that > already have the app connected? It would also be important to remove > all the friends from the invitation list that already have the app > connected. > > Thanks again, > Ryan G > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From brandon at opensoul.org Mon Mar 2 23:07:24 2009 From: brandon at opensoul.org (Brandon Keepers) Date: Mon, 2 Mar 2009 23:07:24 -0500 Subject: [Facebooker-talk] shoulda tested better Message-ID: We've made quite a few contributions in our facebooker fork (http://github.com/collectiveidea/facebooker ), but unfortunately, one thing some of our contributions have in common with many others is the lack of testing. I want to change that. I'd like to help lead an effort to make the facebooker tests better. One thing that I think would help is a little better organization and cleanup of the existing test suite. Part of it is just baggage from lots of copying and pasting, but some of it is just inherent to Test::Unit. Would anyone be opposed to moving towards using Shoulda or RSpec for the tests? I think they would allow us to clean up the test suite and make it more accessible to contributors. I've personally been a long time fan of RSpec, but I think Shoulda would be a better fit here. Thoughts? Brandon -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From kalpakliev at googlemail.com Tue Mar 3 04:12:39 2009 From: kalpakliev at googlemail.com (Petar Kalpakliev) Date: Tue, 3 Mar 2009 10:12:39 +0100 Subject: [Facebooker-talk] Checking number of notifications/e-mails left per day Message-ID: <380578110903030112t5cea051cycba5e827f4fb156b@mail.gmail.com> Hello, Is there a way to check how many notifications are left for the user for the current day? When testing my applications I ran out of notifications, and I don't know how to let the user know that. I found out about the @facebook_session.admin.get_allocation(:notifications_per_day), but this gives only the limit. How do I check if I have reached this limit? Thank you :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Tue Mar 3 08:10:26 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 3 Mar 2009 08:10:26 -0500 Subject: [Facebooker-talk] shoulda tested better In-Reply-To: References: Message-ID: I think this is a fantastic idea. Even I have a tough time adding tests at times. I'd really like to clean that up. I'm fine with either shoulda or rspec. Mike On Mar 2, 2009, at 11:07 PM, Brandon Keepers wrote: > We've made quite a few contributions in our facebooker fork (http://github.com/collectiveidea/facebooker > ), but unfortunately, one thing some of our contributions have in > common with many others is the lack of testing. I want to change > that. I'd like to help lead an effort to make the facebooker tests > better. > > One thing that I think would help is a little better organization > and cleanup of the existing test suite. Part of it is just baggage > from lots of copying and pasting, but some of it is just inherent to > Test::Unit. Would anyone be opposed to moving towards using Shoulda > or RSpec for the tests? I think they would allow us to clean up the > test suite and make it more accessible to contributors. > > I've personally been a long time fan of RSpec, but I think Shoulda > would be a better fit here. > > Thoughts? > > Brandon > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Tue Mar 3 08:14:39 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 3 Mar 2009 08:14:39 -0500 Subject: [Facebooker-talk] Checking number of notifications/e-mails left per day In-Reply-To: <380578110903030112t5cea051cycba5e827f4fb156b@mail.gmail.com> References: <380578110903030112t5cea051cycba5e827f4fb156b@mail.gmail.com> Message-ID: You have to keep track of the number you send. Mike On Mar 3, 2009, at 4:12 AM, Petar Kalpakliev wrote: > Hello, > > Is there a way to check how many notifications are left for the user > for the current day? > When testing my applications I ran out of notifications, and I don't > know how to let the user know that. > I found out about the > @facebook_session.admin.get_allocation(:notifications_per_day), but > this gives only the limit. How do I check if I have reached this > limit? > > Thank you :) > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From brandon at opensoul.org Tue Mar 3 10:10:29 2009 From: brandon at opensoul.org (Brandon Keepers) Date: Tue, 3 Mar 2009 10:10:29 -0500 Subject: [Facebooker-talk] Rails 2.3 Message-ID: How would you like to handle Rails 2.3 compatibility? We've got a branch where we have all but 1 test passing: http://github.com/collectiveidea/facebooker/commits/rails-2.3 . The problem is that it is incompatible with anything less than 2.3. I know this isn't realistic, so I'm curious what everyone has ideas going forward. What versions of Rails should be supported? Is it easier to maintain inline conditionals for Rails 2.3, or a separate branch? Thoughts? Brandon -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From adeel at proletariandesign.com Tue Mar 3 13:02:42 2009 From: adeel at proletariandesign.com (Adeel Ahmad) Date: Tue, 3 Mar 2009 10:02:42 -0800 Subject: [Facebooker-talk] images in Short news feeed stories Message-ID: <168ef1510903031002i52a785cdscb448b3f6952cc5f@mail.gmail.com> Does anyone know the deal with including images in the Short version of news feed stories? I did end up getting my FB Connect working with news feed submissions using the FeedDialog. The short story is the default in the dialog box, which is fine but I can't for the life of me get an image in there. The Full story template has no problem. Facebook policy says that the short stories can be up to 100px high. Even when I just try a 50px square image I don't see the image, just the text. - Adeel -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.akkaoui at imeuble.info Tue Mar 3 19:15:42 2009 From: stephane.akkaoui at imeuble.info (=?ISO-8859-1?Q?St=E9phane_Akkaoui?=) Date: Wed, 4 Mar 2009 01:15:42 +0100 Subject: [Facebooker-talk] images in Short news feeed stories In-Reply-To: <168ef1510903031002i52a785cdscb448b3f6952cc5f@mail.gmail.com> References: <168ef1510903031002i52a785cdscb448b3f6952cc5f@mail.gmail.com> Message-ID: <66304CCC-F34C-4E32-8969-9BE3D20352CE@imeuble.info> Hi, I had problems too with images in short feed. I find a turn around, but nothing to make a good patch, since it's all crappy hard coding. The thing is that facebook waits for the json for image in feeds to be like : {"message":"blablabla", "images":[{"src":"http://base_url/ image.png/", "href":"http://base_url/controller/action"}]} Not the order of the parameters. In the image array, src has to come first, and href has to come last. It's mandatory for the image feed to work. Now, in facebooker you can give your args in a hash, something like : def profil_feed(card, current_user, host) send_as :user_action from current_user.facebooker_user data({ :message => "blablabla", :images => [{:src => "http://base_url/image.png/", :href => "http://base _url/controller/action"}] }) end This is correct, if only the hash was keeping the order of its key/ value pairs. In the facebooker feed workflow, this hash will be converted into json, rendering something like : {"message":"blablabla", "images":[{"href":"http://base_url/controller/ action", "src":"http://base_url/image.png/"}]} And that fails to render a correct image feed in facebook. What I did was to call the feeds method by hand, without all the publisher ease of use. For instance, when I was needing this in the profile_publisher, I did : def render_publisher_response(user_action, card) response.content_type = Mime::JSON text = card.full_message(current_user).to_s.dup.gsub("\n \r","
").gsub("\r", "").gsub("\n", "
") render_for_text('{"content": {"feed": {"template_id":' + user_action.template_id.to_s + ', "template_data": {"message":"blablabla", "images":[{"src":"http://base_url/image.png/", "href":"http://base _url/controller/action"}] }, }, "method":"publisher_getFeedStory" }') end I have not tested this under ruby 1.9, but it should be ok the old way, because in this new version of ruby, hashes keep the position of their key/value pairs. HTH, -- St?phane Akkaoui Le 3 mars 09 ? 19:02, Adeel Ahmad a ?crit : > Does anyone know the deal with including images in the Short version > of news feed stories? > I did end up getting my FB Connect working with news feed > submissions using the FeedDialog. The short story is the default in > the dialog box, which is fine but I can't for the life of me get an > image in there. The Full story template has no problem. Facebook > policy says that the short stories can be up to 100px high. Even > when I just try a 50px square image I don't see the image, just the > text. > > > - Adeel > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From joe at pinkpucker.net Tue Mar 3 21:31:28 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Tue, 3 Mar 2009 18:31:28 -0800 Subject: [Facebooker-talk] Rails 2.3 In-Reply-To: References: Message-ID: I vote for making 2.3 facebooker its own branch. Joe On Tue, Mar 3, 2009 at 7:10 AM, Brandon Keepers wrote: > How would you like to handle Rails 2.3 compatibility? ?We've got a branch > where we have all but 1 test passing: > http://github.com/collectiveidea/facebooker/commits/rails-2.3. ?The problem > is that it is incompatible with anything less than 2.3. ?I know this isn't > realistic, so I'm curious what everyone has ideas going forward. > > What versions of Rails should be supported? Is it easier to maintain inline > conditionals for Rails 2.3, or a separate branch? > > Thoughts? > > Brandon > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From cjohnson at socialvibe.com Wed Mar 4 03:02:44 2009 From: cjohnson at socialvibe.com (Chris Johnson) Date: Wed, 4 Mar 2009 00:02:44 -0800 Subject: [Facebooker-talk] Calling "Users.getInfo" without a session key In-Reply-To: <168ef1510903031002i52a785cdscb448b3f6952cc5f@mail.gmail.com> References: <168ef1510903031002i52a785cdscb448b3f6952cc5f@mail.gmail.com> Message-ID: Hi all. The API method Users.getInfo does not require a session key to be called. See here: http://wiki.developers.facebook.com/index.php/Users.getInfo I want to the current user's name without creating a Facebooker session or having the user authorize my app. It's late and I'm tired, so maybe I'm overlooking something obvious, but any guidance is appreciated! Cheers, Chris From mba.piyushgupta at gmail.com Wed Mar 4 07:10:22 2009 From: mba.piyushgupta at gmail.com (Piyush Gupta) Date: Wed, 4 Mar 2009 17:40:22 +0530 Subject: [Facebooker-talk] Link to remote not working with Facebooker Message-ID: I tried facebooker , but when I do a "link to remote" it didnt work, I didnt get any error eventhough nothing was rendered from the render :update do block, not even render :text=>"samp". Piyush 9999752862 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Wed Mar 4 07:16:18 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 4 Mar 2009 07:16:18 -0500 Subject: [Facebooker-talk] images in Short news feeed stories In-Reply-To: <66304CCC-F34C-4E32-8969-9BE3D20352CE@imeuble.info> References: <168ef1510903031002i52a785cdscb448b3f6952cc5f@mail.gmail.com> <66304CCC-F34C-4E32-8969-9BE3D20352CE@imeuble.info> Message-ID: <41030DF3-897B-49C8-9CC2-9E19CADA3E3D@elevatedrails.com> Have you guys filed a bug on this with Facebook? That's a bit of a pain for us to have to deal with. Mike On Mar 3, 2009, at 7:15 PM, St?phane Akkaoui wrote: > Hi, > > I had problems too with images in short feed. > I find a turn around, but nothing to make a good patch, since it's > all crappy hard coding. > > The thing is that facebook waits for the json for image in feeds to > be like : > > {"message":"blablabla", "images":[{"src":"http://base_url/ > image.png/", "href":"http://base_url/controller/action"}]} > > Not the order of the parameters. In the image array, src has to come > first, and href has to come last. It's mandatory for the image feed > to work. > > Now, in facebooker you can give your args in a hash, something like : > > def profil_feed(card, current_user, host) > send_as :user_action > from current_user.facebooker_user > data({ > :message => "blablabla", > :images => [{:src => "http://base_url/image.png/", :href => "http://base > _url/controller/action"}] > }) > end > > This is correct, if only the hash was keeping the order of its key/ > value pairs. In the facebooker feed workflow, this hash will be > converted into json, rendering something like : > > {"message":"blablabla", "images":[{"href":"http://base_url/ > controller/action", "src":"http://base_url/image.png/"}]} > > And that fails to render a correct image feed in facebook. > > What I did was to call the feeds method by hand, without all the > publisher ease of use. For instance, when I was needing this in the > profile_publisher, I did : > > def render_publisher_response(user_action, card) > response.content_type = Mime::JSON > > text = card.full_message(current_user).to_s.dup.gsub("\n > \r","
").gsub("\r", "").gsub("\n", "
") > > render_for_text('{"content": > {"feed": > {"template_id":' + user_action.template_id.to_s + ', > "template_data": > {"message":"blablabla", > "images":[{"src":"http://base_url/image.png/", "href":"http://base > _url/controller/action"}] > }, > }, > "method":"publisher_getFeedStory" }') > end > > I have not tested this under ruby 1.9, but it should be ok the old > way, because in this new version of ruby, hashes keep the position > of their key/value pairs. > > HTH, > > -- > St?phane Akkaoui > > Le 3 mars 09 ? 19:02, Adeel Ahmad a ?crit : > >> Does anyone know the deal with including images in the Short >> version of news feed stories? >> I did end up getting my FB Connect working with news feed >> submissions using the FeedDialog. The short story is the default in >> the dialog box, which is fine but I can't for the life of me get an >> image in there. The Full story template has no problem. Facebook >> policy says that the short stories can be up to 100px high. Even >> when I just try a 50px square image I don't see the image, just the >> text. >> >> >> - Adeel >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From stephane.akkaoui at imeuble.info Wed Mar 4 09:22:21 2009 From: stephane.akkaoui at imeuble.info (=?ISO-8859-1?Q?St=E9phane_Akkaoui?=) Date: Wed, 4 Mar 2009 15:22:21 +0100 Subject: [Facebooker-talk] images in Short news feeed stories In-Reply-To: <41030DF3-897B-49C8-9CC2-9E19CADA3E3D@elevatedrails.com> References: <168ef1510903031002i52a785cdscb448b3f6952cc5f@mail.gmail.com> <66304CCC-F34C-4E32-8969-9BE3D20352CE@imeuble.info> <41030DF3-897B-49C8-9CC2-9E19CADA3E3D@elevatedrails.com> Message-ID: No, I didn't. But now, it's done : http://bugs.developers.facebook.com/show_bug.cgi?id=4545 (hope that I correctly explain the probleme...) -- St?phane Akkaoui Le 4 mars 09 ? 13:16, Mike Mangino a ?crit : > Have you guys filed a bug on this with Facebook? That's a bit of a > pain for us to have to deal with. > > Mike > > On Mar 3, 2009, at 7:15 PM, St?phane Akkaoui wrote: > >> Hi, >> >> I had problems too with images in short feed. >> I find a turn around, but nothing to make a good patch, since it's >> all crappy hard coding. >> >> The thing is that facebook waits for the json for image in feeds to >> be like : >> >> {"message":"blablabla", "images":[{"src":"http://base_url/ >> image.png/", "href":"http://base_url/controller/action"}]} >> >> Not the order of the parameters. In the image array, src has to >> come first, and href has to come last. It's mandatory for the image >> feed to work. >> >> Now, in facebooker you can give your args in a hash, something like : >> >> def profil_feed(card, current_user, host) >> send_as :user_action >> from current_user.facebooker_user >> data({ >> :message => "blablabla", >> :images => [{:src => "http://base_url/image.png/", :href => "http://base >> _url/controller/action"}] >> }) >> end >> >> This is correct, if only the hash was keeping the order of its key/ >> value pairs. In the facebooker feed workflow, this hash will be >> converted into json, rendering something like : >> >> {"message":"blablabla", "images":[{"href":"http://base_url/ >> controller/action", "src":"http://base_url/image.png/"}]} >> >> And that fails to render a correct image feed in facebook. >> >> What I did was to call the feeds method by hand, without all the >> publisher ease of use. For instance, when I was needing this in the >> profile_publisher, I did : >> >> def render_publisher_response(user_action, card) >> response.content_type = Mime::JSON >> >> text = card.full_message(current_user).to_s.dup.gsub("\n >> \r","
").gsub("\r", "").gsub("\n", "
") >> >> render_for_text('{"content": >> {"feed": >> {"template_id":' + user_action.template_id.to_s + ', >> "template_data": >> {"message":"blablabla", >> "images":[{"src":"http://base_url/image.png/", "href":"http://base >> _url/controller/action"}] >> }, >> }, >> "method":"publisher_getFeedStory" }') >> end >> >> I have not tested this under ruby 1.9, but it should be ok the old >> way, because in this new version of ruby, hashes keep the position >> of their key/value pairs. >> >> HTH, >> >> -- >> St?phane Akkaoui >> >> Le 3 mars 09 ? 19:02, Adeel Ahmad a ?crit : >> >>> Does anyone know the deal with including images in the Short >>> version of news feed stories? >>> I did end up getting my FB Connect working with news feed >>> submissions using the FeedDialog. The short story is the default >>> in the dialog box, which is fine but I can't for the life of me >>> get an image in there. The Full story template has no problem. >>> Facebook policy says that the short stories can be up to 100px >>> high. Even when I just try a 50px square image I don't see the >>> image, just the text. >>> >>> >>> - Adeel >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > From mmangino at elevatedrails.com Wed Mar 4 09:22:23 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 4 Mar 2009 09:22:23 -0500 Subject: [Facebooker-talk] Link to remote not working with Facebooker In-Reply-To: References: Message-ID: Did the request hit your server? Mike On Mar 4, 2009, at 7:10 AM, Piyush Gupta wrote: > I tried facebooker , but when I do a "link to remote" it didnt work, > > I didnt get any error eventhough nothing was rendered from the > render :update do > > block, not even render :text=>"samp". > > Piyush > 9999752862 > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From adeel at proletariandesign.com Wed Mar 4 09:24:09 2009 From: adeel at proletariandesign.com (Adeel Ahmad) Date: Wed, 4 Mar 2009 06:24:09 -0800 Subject: [Facebooker-talk] images in Short news feeed stories In-Reply-To: References: <168ef1510903031002i52a785cdscb448b3f6952cc5f@mail.gmail.com> <66304CCC-F34C-4E32-8969-9BE3D20352CE@imeuble.info> <41030DF3-897B-49C8-9CC2-9E19CADA3E3D@elevatedrails.com> Message-ID: <0BE22872-ACED-4924-8465-4E2FC68484C0@proletariandesign.com> I will do the same. Strength in numbers... - Adeel Sent from iPhone On Mar 4, 2009, at 6:22 AM, St?phane Akkaoui wrote: > No, I didn't. But now, it's done : > http://bugs.developers.facebook.com/show_bug.cgi?id=4545 (hope that > I correctly explain the probleme...) > > -- > St?phane Akkaoui > > > Le 4 mars 09 ? 13:16, Mike Mangino a ?crit : > >> Have you guys filed a bug on this with Facebook? That's a bit of a >> pain for us to have to deal with. >> >> Mike >> >> On Mar 3, 2009, at 7:15 PM, St?phane Akkaoui wrote: >> >>> Hi, >>> >>> I had problems too with images in short feed. >>> I find a turn around, but nothing to make a good patch, since it's >>> all crappy hard coding. >>> >>> The thing is that facebook waits for the json for image in feeds >>> to be like : >>> >>> {"message":"blablabla", "images":[{"src":"http://base_url/ >>> image.png/", "href":"http://base_url/controller/action"}]} >>> >>> Not the order of the parameters. In the image array, src has to >>> come first, and href has to come last. It's mandatory for the >>> image feed to work. >>> >>> Now, in facebooker you can give your args in a hash, something >>> like : >>> >>> def profil_feed(card, current_user, host) >>> send_as :user_action >>> from current_user.facebooker_user >>> data({ >>> :message => "blablabla", >>> :images => [{:src => "http://base_url/ >>> image.png/", :href => "http://base_url/controller/action"}] >>> }) >>> end >>> >>> This is correct, if only the hash was keeping the order of its key/ >>> value pairs. In the facebooker feed workflow, this hash will be >>> converted into json, rendering something like : >>> >>> {"message":"blablabla", "images":[{"href":"http://base_url/ >>> controller/action", "src":"http://base_url/image.png/"}]} >>> >>> And that fails to render a correct image feed in facebook. >>> >>> What I did was to call the feeds method by hand, without all the >>> publisher ease of use. For instance, when I was needing this in >>> the profile_publisher, I did : >>> >>> def render_publisher_response(user_action, card) >>> response.content_type = Mime::JSON >>> >>> text = card.full_message(current_user).to_s.dup.gsub("\n >>> \r","
").gsub("\r", "").gsub("\n", "
") >>> >>> render_for_text('{"content": >>> {"feed": >>> {"template_id":' + user_action.template_id.to_s >>> + ', >>> "template_data": >>> {"message":"blablabla", >>> "images":[{"src":"http://base_url/ >>> image.png/", "href":"http://base_url/controller/action"}] >>> }, >>> }, >>> "method":"publisher_getFeedStory" }') >>> end >>> >>> I have not tested this under ruby 1.9, but it should be ok the old >>> way, because in this new version of ruby, hashes keep the position >>> of their key/value pairs. >>> >>> HTH, >>> >>> -- >>> St?phane Akkaoui >>> >>> Le 3 mars 09 ? 19:02, Adeel Ahmad a ?crit : >>> >>>> Does anyone know the deal with including images in the Short >>>> version of news feed stories? >>>> I did end up getting my FB Connect working with news feed >>>> submissions using the FeedDialog. The short story is the default >>>> in the dialog box, which is fine but I can't for the life of me >>>> get an image in there. The Full story template has no problem. >>>> Facebook policy says that the short stories can be up to 100px >>>> high. Even when I just try a 50px square image I don't see the >>>> image, just the text. >>>> >>>> >>>> - Adeel >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> > From mixonic at synitech.com Wed Mar 4 09:38:06 2009 From: mixonic at synitech.com (Matthew Beale) Date: Wed, 04 Mar 2009 09:38:06 -0500 Subject: [Facebooker-talk] images in Short news feeed stories In-Reply-To: <0BE22872-ACED-4924-8465-4E2FC68484C0@proletariandesign.com> References: <168ef1510903031002i52a785cdscb448b3f6952cc5f@mail.gmail.com> <66304CCC-F34C-4E32-8969-9BE3D20352CE@imeuble.info> <41030DF3-897B-49C8-9CC2-9E19CADA3E3D@elevatedrails.com> <0BE22872-ACED-4924-8465-4E2FC68484C0@proletariandesign.com> Message-ID: <1236177486.9359.1.camel@localhost> Or: ------- mixonic at pandora ~/Projects/givereal $ script/console Loading development environment (Rails 2.1.2) >> h = ActiveSupport::OrderedHash.new => [] >> ------- That's in ActiveSupport, we could just use it in facebooker. Not so much of a pain... -- Matthew Beale :: 607 227 0871 Resume & Portfolio @ http://madhatted.com On Wed, 2009-03-04 at 06:24 -0800, Adeel Ahmad wrote: > I will do the same. Strength in numbers... > > > - Adeel > > Sent from iPhone > > > On Mar 4, 2009, at 6:22 AM, St?phane Akkaoui o> wrote: > > > No, I didn't. But now, it's done : > > http://bugs.developers.facebook.com/show_bug.cgi?id=4545 (hope that > > I correctly explain the probleme...) > > > > -- > > St?phane Akkaoui > > > > > > Le 4 mars 09 ? 13:16, Mike Mangino a ?crit : > > > >> Have you guys filed a bug on this with Facebook? That's a bit of a > >> pain for us to have to deal with. > >> > >> Mike > >> > >> On Mar 3, 2009, at 7:15 PM, St?phane Akkaoui wrote: > >> > >>> Hi, > >>> > >>> I had problems too with images in short feed. > >>> I find a turn around, but nothing to make a good patch, since it's > >>> all crappy hard coding. > >>> > >>> The thing is that facebook waits for the json for image in feeds > >>> to be like : > >>> > >>> {"message":"blablabla", "images":[{"src":"http://base_url/ > >>> image.png/", "href":"http://base_url/controller/action"}]} > >>> > >>> Not the order of the parameters. In the image array, src has to > >>> come first, and href has to come last. It's mandatory for the > >>> image feed to work. > >>> > >>> Now, in facebooker you can give your args in a hash, something > >>> like : > >>> > >>> def profil_feed(card, current_user, host) > >>> send_as :user_action > >>> from current_user.facebooker_user > >>> data({ > >>> :message => "blablabla", > >>> :images => [{:src => "http://base_url/ > >>> image.png/", :href => "http://base_url/controller/action"}] > >>> }) > >>> end > >>> > >>> This is correct, if only the hash was keeping the order of its key/ > >>> value pairs. In the facebooker feed workflow, this hash will be > >>> converted into json, rendering something like : > >>> > >>> {"message":"blablabla", "images":[{"href":"http://base_url/ > >>> controller/action", "src":"http://base_url/image.png/"}]} > >>> > >>> And that fails to render a correct image feed in facebook. > >>> > >>> What I did was to call the feeds method by hand, without all the > >>> publisher ease of use. For instance, when I was needing this in > >>> the profile_publisher, I did : > >>> > >>> def render_publisher_response(user_action, card) > >>> response.content_type = Mime::JSON > >>> > >>> text = card.full_message(current_user).to_s.dup.gsub("\n > >>> \r","
").gsub("\r", "").gsub("\n", "
") > >>> > >>> render_for_text('{"content": > >>> {"feed": > >>> {"template_id":' + user_action.template_id.to_s > >>> + ', > >>> "template_data": > >>> {"message":"blablabla", > >>> "images":[{"src":"http://base_url/ > >>> image.png/", "href":"http://base_url/controller/action"}] > >>> }, > >>> }, > >>> "method":"publisher_getFeedStory" }') > >>> end > >>> > >>> I have not tested this under ruby 1.9, but it should be ok the old > >>> way, because in this new version of ruby, hashes keep the position > >>> of their key/value pairs. > >>> > >>> HTH, > >>> > >>> -- > >>> St?phane Akkaoui > >>> > >>> Le 3 mars 09 ? 19:02, Adeel Ahmad a ?crit : > >>> > >>>> Does anyone know the deal with including images in the Short > >>>> version of news feed stories? > >>>> I did end up getting my FB Connect working with news feed > >>>> submissions using the FeedDialog. The short story is the default > >>>> in the dialog box, which is fine but I can't for the life of me > >>>> get an image in there. The Full story template has no problem. > >>>> Facebook policy says that the short stories can be up to 100px > >>>> high. Even when I just try a 50px square image I don't see the > >>>> image, just the text. > >>>> > >>>> > >>>> - Adeel > >>>> _______________________________________________ > >>>> Facebooker-talk mailing list > >>>> Facebooker-talk at rubyforge.org > >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk > >>> > >>> _______________________________________________ > >>> Facebooker-talk mailing list > >>> Facebooker-talk at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/facebooker-talk > >> > >> -- > >> Mike Mangino > >> http://www.elevatedrails.com > >> > >> > >> > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From mmangino at elevatedrails.com Wed Mar 4 12:37:08 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 4 Mar 2009 12:37:08 -0500 Subject: [Facebooker-talk] images in Short news feeed stories In-Reply-To: <1236177486.9359.1.camel@localhost> References: <168ef1510903031002i52a785cdscb448b3f6952cc5f@mail.gmail.com> <66304CCC-F34C-4E32-8969-9BE3D20352CE@imeuble.info> <41030DF3-897B-49C8-9CC2-9E19CADA3E3D@elevatedrails.com> <0BE22872-ACED-4924-8465-4E2FC68484C0@proletariandesign.com> <1236177486.9359.1.camel@localhost> Message-ID: On Mar 4, 2009, at 9:38 AM, Matthew Beale wrote: > Or: > > ------- > mixonic at pandora ~/Projects/givereal $ script/console > Loading development environment (Rails 2.1.2) >>> h = ActiveSupport::OrderedHash.new > => [] >>> > ------- > > That's in ActiveSupport, we could just use it in facebooker. Not so > much of a pain... Only it doesn't output JSON correctly I just wrapped this in a class which should handle things. If Facebook fixes the bug, we can remove that class. Mike -- Mike Mangino http://www.elevatedrails.com From adeel at proletariandesign.com Thu Mar 5 03:59:07 2009 From: adeel at proletariandesign.com (Adeel Ahmad) Date: Thu, 5 Mar 2009 00:59:07 -0800 Subject: [Facebooker-talk] images in Short news feeed stories In-Reply-To: References: <168ef1510903031002i52a785cdscb448b3f6952cc5f@mail.gmail.com> <66304CCC-F34C-4E32-8969-9BE3D20352CE@imeuble.info> <41030DF3-897B-49C8-9CC2-9E19CADA3E3D@elevatedrails.com> <0BE22872-ACED-4924-8465-4E2FC68484C0@proletariandesign.com> <1236177486.9359.1.camel@localhost> Message-ID: <168ef1510903050059s60a2a671v4d067729cb6f1ebc@mail.gmail.com> Hmmm, we're still having problems publishing images in short stories. Has anyone been successful with the new commit? There is a facebook engineer working on it already on bugzilla. Hope they can take care of it. - Adeel On Wed, Mar 4, 2009 at 9:37 AM, Mike Mangino wrote: > > On Mar 4, 2009, at 9:38 AM, Matthew Beale wrote: > > Or: >> >> ------- >> mixonic at pandora ~/Projects/givereal $ script/console >> Loading development environment (Rails 2.1.2) >> >>> h = ActiveSupport::OrderedHash.new >>>> >>> => [] >> >>> >>>> ------- >> >> That's in ActiveSupport, we could just use it in facebooker. Not so >> much of a pain... >> > > Only it doesn't output JSON correctly > > I just wrapped this in a class which should handle things. If Facebook > fixes the bug, we can remove that class. > > Mike > > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at pinkpucker.net Thu Mar 5 12:12:58 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Thu, 5 Mar 2009 09:12:58 -0800 Subject: [Facebooker-talk] anyone use cucumber? Message-ID: Anyone use cucumber to do integration tests of a facebooker app? How'd that work out? Any other advice on integration testing a facebooker app would be appreciated. Joe From brandon at opensoul.org Thu Mar 5 12:34:02 2009 From: brandon at opensoul.org (Brandon Keepers) Date: Thu, 5 Mar 2009 12:34:02 -0500 Subject: [Facebooker-talk] anyone use cucumber? In-Reply-To: References: Message-ID: <5C47C0EC-E040-4132-A816-A6958598E841@opensoul.org> Hey Joe, I extracted code we were using for cucumber testing in this commit: http://github.com/mmangino/facebooker/commit/cad4ef415f297bfd0ed6ab67bf9d11f4d7ce5150 I'm working on putting together a blog post for how to use it. I'll try to get that wrapped up today. Brandon On Mar 5, 2009, at 12:12 PM, Joe Van Dyk wrote: > Anyone use cucumber to do integration tests of a facebooker app? > How'd that work out? > > Any other advice on integration testing a facebooker app would be > appreciated. > > Joe > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From joe at pinkpucker.net Thu Mar 5 13:00:15 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Thu, 5 Mar 2009 10:00:15 -0800 Subject: [Facebooker-talk] anyone use cucumber? In-Reply-To: <5C47C0EC-E040-4132-A816-A6958598E841@opensoul.org> References: <5C47C0EC-E040-4132-A816-A6958598E841@opensoul.org> Message-ID: awesome, dude. thanks! On Thu, Mar 5, 2009 at 9:34 AM, Brandon Keepers wrote: > Hey Joe, > I extracted code we were using for cucumber testing in this commit: > http://github.com/mmangino/facebooker/commit/cad4ef415f297bfd0ed6ab67bf9d11f4d7ce5150 > I'm working on putting together a blog post for how to use it. ?I'll try to > get that wrapped up today. > Brandon > - Show quoted text - > On Mar 5, 2009, at 12:12 PM, Joe Van Dyk wrote: > > - Show quoted text - > Anyone use cucumber to do integration tests of a facebooker app? > How'd that work out? > > Any other advice on integration testing a facebooker app would be > appreciated. > > Joe > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From kalpakliev at googlemail.com Thu Mar 5 14:09:02 2009 From: kalpakliev at googlemail.com (Petar Kalpakliev) Date: Thu, 5 Mar 2009 20:09:02 +0100 Subject: [Facebooker-talk] problem with facebooker API methods Message-ID: <380578110903051109q66be2e0fkd471c6e903683752@mail.gmail.com> Hi all, I am having troubles with the Facebooker user methods. When I try to access an attribute of a facebook user, I get an error. For example when I try: print facebook_session.user.id.to_s I get the following error: undefined method `status_id=' for # ----------------------------- I suppose the problem might be in a changed facebooker API, but I am only guessing... I am running Windows xpl; rails 2.2.2, ruby 1.8.6 My current facebooker gem version is 0.9.5 / 2008-02-13, and I tried updating the gem, but I get the following error messages :( ----------------------------- >gem update facebooker Updating installed gems Updating facebooker Building native extensions. This could take a while... ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension. c:/ruby/bin/ruby.exe extconf.rb update facebooker creating Makefile nmake 'nmake' is not recognized as an internal or external command, operable program or batch file. Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3 for inspection. Results logged to c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3/ext/json/ext/parser/gem_make.out I would be very very grateful if you help me out with this issue!!! Thanks, Petar -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Thu Mar 5 15:06:15 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 5 Mar 2009 15:06:15 -0500 Subject: [Facebooker-talk] problem with facebooker API methods In-Reply-To: <380578110903051109q66be2e0fkd471c6e903683752@mail.gmail.com> References: <380578110903051109q66be2e0fkd471c6e903683752@mail.gmail.com> Message-ID: You should install the json_pure gem. That will let you install the newest facebooker. Mike On Mar 5, 2009, at 2:09 PM, Petar Kalpakliev wrote: > Hi all, > > I am having troubles with the Facebooker user methods. > When I try to access an attribute of a facebook user, I get an error. > > For example when I try: > print facebook_session.user.id.to_s > > I get the following error: > undefined method `status_id=' for # 0x46559ec @time="0", @message={}> > > ----------------------------- > I suppose the problem might be in a changed facebooker API, but I am > only guessing... > I am running Windows xpl; rails 2.2.2, ruby 1.8.6 > My current facebooker gem version is 0.9.5 / 2008-02-13, > and I tried updating the gem, but I get the following error > messages :( > ----------------------------- > > >gem update facebooker > Updating installed gems > Updating facebooker > Building native extensions. This could take a while... > ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) > ERROR: Failed to build gem native extension. > > c:/ruby/bin/ruby.exe extconf.rb update facebooker > creating Makefile > > nmake > 'nmake' is not recognized as an internal or external command, > operable program or batch file. > > Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/ > json-1.1.3 for inspection. > Results logged to c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3/ext/json/ > ext/parser/gem_make.out > > > > I would be very very grateful if you help me out with this issue!!! > > Thanks, > Petar > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From joe at pinkpucker.net Thu Mar 5 19:54:55 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Thu, 5 Mar 2009 16:54:55 -0800 Subject: [Facebooker-talk] make_resourceful Message-ID: Anyone have any luck using make_resourceful in facebooker? Seems like when facebook sends a post (i.e. the create action), make_resourceful interprets that as loading the index action. From brandon at opensoul.org Thu Mar 5 22:02:39 2009 From: brandon at opensoul.org (Brandon Keepers) Date: Thu, 5 Mar 2009 22:02:39 -0500 Subject: [Facebooker-talk] anyone use cucumber? In-Reply-To: References: Message-ID: Here's some info on how we used Cucumber with Facebooker: http://opensoul.org/2009/3/6/testing-facebook-with-cucumber I'd love feedback on how it works for you, or if you have any other ideas. Brandon On Mar 5, 2009, at 12:12 PM, Joe Van Dyk wrote: > Anyone use cucumber to do integration tests of a facebooker app? > How'd that work out? > > Any other advice on integration testing a facebooker app would be > appreciated. > > Joe > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From joe at pinkpucker.net Thu Mar 5 23:56:37 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Thu, 5 Mar 2009 20:56:37 -0800 Subject: [Facebooker-talk] facebooker cucumber questions Message-ID: So I'm playing around with cucumber + facebooker. Get this error: ActionView::TemplateError (No such file or directory - /home/joe/projects/wdyt/features/support/facebook/facebook.users.getInfo/fields=status,political,pic_small,name,quotes,is_app_user,tv,profile_update_time,meeting_sex,hs_info,timezone,relationship_status,hometown_location,about_me,wall_count,significant_other_id,pic_big,music,uid,work_history,sex,religion,notes_count,activities,pic_square,movies,has_added_app,education_history,birthday,first_name,meeting_for,last_name,interests,current_location,pic,books,affiliations,locale,profile_url,proxied_email,email_hashes,allowed_restrictions&uids=1.xml Facebook API Reference: http://wiki.developers.facebook.com/index.php/users.getInfo#Example_Return_XML) on line #10 of app/views/welcome/index.fbml.haml: I can't make a file with a name that long, I don't think. From joe at pinkpucker.net Fri Mar 6 00:20:08 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Thu, 5 Mar 2009 21:20:08 -0800 Subject: [Facebooker-talk] storage format of facebook uids Message-ID: Hi, I'm using postgresql, using the numeric datatype to store facebook uid's. Rails converts them to BigDecimal. BigDecimal.new('3.99').kind_of?(Integer) returns false. That's used in a few places in the code. Should I not use that datatype to store facebook uid's? From brandon at opensoul.org Fri Mar 6 00:24:38 2009 From: brandon at opensoul.org (Brandon Keepers) Date: Fri, 6 Mar 2009 00:24:38 -0500 Subject: [Facebooker-talk] facebooker cucumber questions In-Reply-To: References: Message-ID: <9419F9B8-77FF-4C03-A12E-2EA724B7D86C@opensoul.org> Joe, Yeah, that's gross. I'm not really happy with how that works. I borrowed the implementation from someone on the IRC channel. http://github.com/mmangino/facebooker/blob/cad4ef415f297bfd0ed6ab67bf9d11f4d7ce5150/lib/facebooker/mock/service.rb It *should* try to use a shorter filename if the name is too long. I'm not sure why that's not working. Try just naming the file 'default.xml'. It'll look for that file last if the long filename doesn't exist. Do you have any ideas for a different way to implement it? One option would be to use the current implementation, but have the filename always be a hash of the params. The only other idea I have at this point is to use an idea like FakeWeb (http://fakeweb.rubyforge.org/) where you register the response before you make the API call. For example: Facebooker::MockService.register('facebook.users.getInfo', 'fixture_file_name') puts facebook_user.name Thoughts? Brandon On Mar 5, 2009, at 11:56 PM, Joe Van Dyk wrote: > So I'm playing around with cucumber + facebooker. > > Get this error: > > ActionView::TemplateError (No such file or directory - > /home/joe/projects/wdyt/features/support/facebook/ > facebook.users.getInfo/ > fields=status,political,pic_small,name,quotes,is_app_user,tv,profile_update_time,meeting_sex,hs_info,timezone,relationship_status,hometown_location,about_me,wall_count,significant_other_id,pic_big,music,uid,work_history,sex,religion,notes_count,activities,pic_square,movies,has_added_app,education_history,birthday,first_name,meeting_for,last_name,interests,current_location,pic,books,affiliations,locale,profile_url,proxied_email,email_hashes,allowed_restrictions&uids=1.xml > Facebook API Reference: > http://wiki.developers.facebook.com/index.php/users.getInfo#Example_Return_XML) > on line #10 of app/views/welcome/index.fbml.haml: > > > I can't make a file with a name that long, I don't think. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From joe at pinkpucker.net Fri Mar 6 01:27:17 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Thu, 5 Mar 2009 22:27:17 -0800 Subject: [Facebooker-talk] facebooker cucumber questions In-Reply-To: <9419F9B8-77FF-4C03-A12E-2EA724B7D86C@opensoul.org> References: <9419F9B8-77FF-4C03-A12E-2EA724B7D86C@opensoul.org> Message-ID: I vote for having the filename be the hash of the params. Maybe the error message could include the hash? What's the best way of getting the content that goes in the file? On Thu, Mar 5, 2009 at 9:24 PM, Brandon Keepers wrote: > Joe, > Yeah, that's gross. ?I'm not really happy with how that works. ?I borrowed > the implementation from someone on the IRC channel. > http://github.com/mmangino/facebooker/blob/cad4ef415f297bfd0ed6ab67bf9d11f4d7ce5150/lib/facebooker/mock/service.rb > It *should* try to use a shorter filename if the name is too long. ?I'm not > sure why that's not working. ?Try just naming the file 'default.xml'. ?It'll > look for that file last if the long filename doesn't exist. > Do you have any ideas for a different way to implement it? > One option would be to use the current implementation, but have the filename > always be a hash of the params. > The only other idea I have at this point is to use an idea like FakeWeb > (http://fakeweb.rubyforge.org/) where you register the response before you > make the API call. ?For example: > ?? ?Facebooker::MockService.register('facebook.users.getInfo', > 'fixture_file_name') > ?? ?puts facebook_user.name > Thoughts? > Brandon > On Mar 5, 2009, at 11:56 PM, Joe Van Dyk wrote: > > So I'm playing around with cucumber + facebooker. > > Get this error: > > ActionView::TemplateError (No such file or directory - > /home/joe/projects/wdyt/features/support/facebook/facebook.users.getInfo/fields=status,political,pic_small,name,quotes,is_app_user,tv,profile_update_time,meeting_sex,hs_info,timezone,relationship_status,hometown_location,about_me,wall_count,significant_other_id,pic_big,music,uid,work_history,sex,religion,notes_count,activities,pic_square,movies,has_added_app,education_history,birthday,first_name,meeting_for,last_name,interests,current_location,pic,books,affiliations,locale,profile_url,proxied_email,email_hashes,allowed_restrictions&uids=1.xml > Facebook API Reference: > http://wiki.developers.facebook.com/index.php/users.getInfo#Example_Return_XML) > on line #10 of app/views/welcome/index.fbml.haml: > > > I can't make a file with a name that long, I don't think. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From brandon at opensoul.org Fri Mar 6 07:11:42 2009 From: brandon at opensoul.org (Brandon Keepers) Date: Fri, 6 Mar 2009 07:11:42 -0500 Subject: [Facebooker-talk] facebooker cucumber questions In-Reply-To: References: <9419F9B8-77FF-4C03-A12E-2EA724B7D86C@opensoul.org> Message-ID: <39A59EF2-07D1-46EC-8292-B2B2FDD027E9@opensoul.org> Joe, On Mar 6, 2009, at 1:27 AM, Joe Van Dyk wrote: > I vote for having the filename be the hash of the params. Maybe the > error message could include the hash? The only issue with this is that if the params ever change (e.g. a field gets added, which happens often), then you'd have to rename the file. > What's the best way of getting the content that goes in the file? See the URL that the error printed out. It has sample XML at the bottom of the page: http://wiki.developers.facebook.com/index.php/users.getInfo#Example_Return_XML Brandon > On Thu, Mar 5, 2009 at 9:24 PM, Brandon Keepers > wrote: >> Joe, >> Yeah, that's gross. I'm not really happy with how that works. I >> borrowed >> the implementation from someone on the IRC channel. >> http://github.com/mmangino/facebooker/blob/cad4ef415f297bfd0ed6ab67bf9d11f4d7ce5150/lib/facebooker/mock/service.rb >> It *should* try to use a shorter filename if the name is too long. >> I'm not >> sure why that's not working. Try just naming the file >> 'default.xml'. It'll >> look for that file last if the long filename doesn't exist. >> Do you have any ideas for a different way to implement it? >> One option would be to use the current implementation, but have the >> filename >> always be a hash of the params. >> The only other idea I have at this point is to use an idea like >> FakeWeb >> (http://fakeweb.rubyforge.org/) where you register the response >> before you >> make the API call. For example: >> Facebooker::MockService.register('facebook.users.getInfo', >> 'fixture_file_name') >> puts facebook_user.name >> Thoughts? >> Brandon >> On Mar 5, 2009, at 11:56 PM, Joe Van Dyk wrote: >> >> So I'm playing around with cucumber + facebooker. >> >> Get this error: >> >> ActionView::TemplateError (No such file or directory - >> /home/joe/projects/wdyt/features/support/facebook/ >> facebook.users.getInfo/ >> fields=status,political,pic_small,name,quotes,is_app_user,tv,profile_update_time,meeting_sex,hs_info,timezone,relationship_status,hometown_location,about_me,wall_count,significant_other_id,pic_big,music,uid,work_history,sex,religion,notes_count,activities,pic_square,movies,has_added_app,education_history,birthday,first_name,meeting_for,last_name,interests,current_location,pic,books,affiliations,locale,profile_url,proxied_email,email_hashes,allowed_restrictions&uids=1.xml >> Facebook API Reference: >> http://wiki.developers.facebook.com/index.php/users.getInfo#Example_Return_XML) >> on line #10 of app/views/welcome/index.fbml.haml: >> >> >> I can't make a file with a name that long, I don't think. >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From brandon at opensoul.org Fri Mar 6 09:33:53 2009 From: brandon at opensoul.org (Brandon Keepers) Date: Fri, 6 Mar 2009 09:33:53 -0500 Subject: [Facebooker-talk] storage format of facebook uids In-Reply-To: References: Message-ID: decimal is meant for Floats. You'll want to use 'bigint'. In a Rails migration, you can use :integer with :limit => 8 Brandon On Mar 6, 2009, at 12:20 AM, Joe Van Dyk wrote: > Hi, > > I'm using postgresql, using the numeric datatype to store facebook > uid's. Rails converts them to BigDecimal. > > BigDecimal.new('3.99').kind_of?(Integer) returns false. That's used > in a few places in the code. > > Should I not use that datatype to store facebook uid's? > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From rubymeetup at boscoso.com Fri Mar 6 13:12:09 2009 From: rubymeetup at boscoso.com (Bosco So) Date: Fri, 6 Mar 2009 10:12:09 -0800 Subject: [Facebooker-talk] storage format of facebook uids In-Reply-To: References: Message-ID: <8d992eff0903061012x5eab8594n53ba0ff9fc3f64c8@mail.gmail.com> You may want to increase your integer size to 20 - i.e., :integer, :limit=>20 When I dropped my Facebook app into Bebo, I kept losing one of my users - his ID was 8xxxyyyzzz but the database was always recording it as 2147483647. Took me a while to figure out that number is 2**31 - 1 and that my user ID was rolling over silently. And this was with the default MySQL integer size of 11. The app worked fine before in Facebook because none of the FB ID's were long enough and didn't cause a silent overflow. -- Bosco On Fri, Mar 6, 2009 at 6:33 AM, Brandon Keepers wrote: > decimal is meant for Floats. You'll want to use 'bigint'. In a Rails > migration, you can use :integer with :limit => 8 > Brandon > > > > On Mar 6, 2009, at 12:20 AM, Joe Van Dyk wrote: > > Hi, > > I'm using postgresql, using the numeric datatype to store facebook > uid's. Rails converts them to BigDecimal. > > BigDecimal.new('3.99').kind_of?(Integer) returns false. That's used > in a few places in the code. > > Should I not use that datatype to store facebook uid's? > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at pinkpucker.net Fri Mar 6 13:21:20 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Fri, 6 Mar 2009 10:21:20 -0800 Subject: [Facebooker-talk] facebooker cucumber questions In-Reply-To: <39A59EF2-07D1-46EC-8292-B2B2FDD027E9@opensoul.org> References: <9419F9B8-77FF-4C03-A12E-2EA724B7D86C@opensoul.org> <39A59EF2-07D1-46EC-8292-B2B2FDD027E9@opensoul.org> Message-ID: In the current version, you'd need to rename the file anyways, right? On Fri, Mar 6, 2009 at 4:11 AM, Brandon Keepers wrote: > Joe, > On Mar 6, 2009, at 1:27 AM, Joe Van Dyk wrote: > > I vote for having the filename be the hash of the params. ?Maybe the > error message could include the hash? > > The only issue with this is that if the params ever change (e.g. a field > gets added, which happens often), then you'd have to rename the file. > > What's the best way of getting the content that goes in the file? > > See the URL that the error printed out. ?It has sample XML at the bottom of > the page: > http://wiki.developers.facebook.com/index.php/users.getInfo#Example_Return_XML > > Brandon > > On Thu, Mar 5, 2009 at 9:24 PM, Brandon Keepers > wrote: > > Joe, > > Yeah, that's gross. ?I'm not really happy with how that works. ?I borrowed > > the implementation from someone on the IRC channel. > > http://github.com/mmangino/facebooker/blob/cad4ef415f297bfd0ed6ab67bf9d11f4d7ce5150/lib/facebooker/mock/service.rb > > It *should* try to use a shorter filename if the name is too long. ?I'm not > > sure why that's not working. ?Try just naming the file 'default.xml'. ?It'll > > look for that file last if the long filename doesn't exist. > > Do you have any ideas for a different way to implement it? > > One option would be to use the current implementation, but have the filename > > always be a hash of the params. > > The only other idea I have at this point is to use an idea like FakeWeb > > (http://fakeweb.rubyforge.org/) where you register the response before you > > make the API call. ?For example: > > ?? ?Facebooker::MockService.register('facebook.users.getInfo', > > 'fixture_file_name') > > ?? ?puts facebook_user.name > > Thoughts? > > Brandon > > On Mar 5, 2009, at 11:56 PM, Joe Van Dyk wrote: > > So I'm playing around with cucumber + facebooker. > > Get this error: > > ActionView::TemplateError (No such file or directory - > > /home/joe/projects/wdyt/features/support/facebook/facebook.users.getInfo/fields=status,political,pic_small,name,quotes,is_app_user,tv,profile_update_time,meeting_sex,hs_info,timezone,relationship_status,hometown_location,about_me,wall_count,significant_other_id,pic_big,music,uid,work_history,sex,religion,notes_count,activities,pic_square,movies,has_added_app,education_history,birthday,first_name,meeting_for,last_name,interests,current_location,pic,books,affiliations,locale,profile_url,proxied_email,email_hashes,allowed_restrictions&uids=1.xml > > Facebook API Reference: > > http://wiki.developers.facebook.com/index.php/users.getInfo#Example_Return_XML) > > on line #10 of app/views/welcome/index.fbml.haml: > > > I can't make a file with a name that long, I don't think. > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From joe at pinkpucker.net Fri Mar 6 13:22:30 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Fri, 6 Mar 2009 10:22:30 -0800 Subject: [Facebooker-talk] storage format of facebook uids In-Reply-To: References: Message-ID: That makes sense, thanks. On Fri, Mar 6, 2009 at 6:33 AM, Brandon Keepers wrote: > decimal is meant for Floats. ?You'll want to use 'bigint'. ?In a Rails > migration, you can use :integer with :limit => 8 > Brandon > > > On Mar 6, 2009, at 12:20 AM, Joe Van Dyk wrote: > > Hi, > > I'm using postgresql, using the numeric datatype to store facebook > uid's. ?Rails converts them to BigDecimal. > > BigDecimal.new('3.99').kind_of?(Integer) returns false. ?That's used > in a few places in the code. > > Should I not use that datatype to store facebook uid's? > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From joe at pinkpucker.net Fri Mar 6 13:21:56 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Fri, 6 Mar 2009 10:21:56 -0800 Subject: [Facebooker-talk] make_resourceful In-Reply-To: References: Message-ID: I fixed it -- had to modify make_resourceful to have a default response of fbml (and not html). On Thu, Mar 5, 2009 at 4:54 PM, Joe Van Dyk wrote: > Anyone have any luck using make_resourceful in facebooker? ?Seems like > when facebook sends a post (i.e. the create action), make_resourceful > interprets that as loading the index action. > From brandon at opensoul.org Fri Mar 6 14:21:00 2009 From: brandon at opensoul.org (Brandon Keepers) Date: Fri, 6 Mar 2009 14:21:00 -0500 Subject: [Facebooker-talk] storage format of facebook uids In-Reply-To: <8d992eff0903061012x5eab8594n53ba0ff9fc3f64c8@mail.gmail.com> References: <8d992eff0903061012x5eab8594n53ba0ff9fc3f64c8@mail.gmail.com> Message-ID: <090E02D9-6DA6-4E84-9C25-D607F9F69063@opensoul.org> 8 is actually the max. Active Record maps 8 to "bigint", which is an 8 byte integer, (up to 9223372036854775807 signed). Brandon On Mar 6, 2009, at 1:12 PM, Bosco So wrote: > You may want to increase your integer size to 20 - > i.e., :integer, :limit=>20 > > When I dropped my Facebook app into Bebo, I kept losing one of my > users - his ID was 8xxxyyyzzz but the database was always recording > it as 2147483647. Took me a while to figure out that number is 2**31 > - 1 and that my user ID was rolling over silently. And this was with > the default MySQL integer size of 11. > > The app worked fine before in Facebook because none of the FB ID's > were long enough and didn't cause a silent overflow. > > -- Bosco > > > On Fri, Mar 6, 2009 at 6:33 AM, Brandon Keepers > wrote: > decimal is meant for Floats. You'll want to use 'bigint'. In a > Rails migration, you can use :integer with :limit => 8 > > Brandon > > > > On Mar 6, 2009, at 12:20 AM, Joe Van Dyk wrote: > >> Hi, >> >> I'm using postgresql, using the numeric datatype to store facebook >> uid's. Rails converts them to BigDecimal. >> >> BigDecimal.new('3.99').kind_of?(Integer) returns false. That's used >> in a few places in the code. >> >> Should I not use that datatype to store facebook uid's? > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From rubymeetup at boscoso.com Fri Mar 6 14:33:53 2009 From: rubymeetup at boscoso.com (Bosco So) Date: Fri, 6 Mar 2009 11:33:53 -0800 Subject: [Facebooker-talk] storage format of facebook uids In-Reply-To: <090E02D9-6DA6-4E84-9C25-D607F9F69063@opensoul.org> References: <8d992eff0903061012x5eab8594n53ba0ff9fc3f64c8@mail.gmail.com> <090E02D9-6DA6-4E84-9C25-D607F9F69063@opensoul.org> Message-ID: <8d992eff0903061133v1e23bf41jc91a96c7801f55d1@mail.gmail.com> The :limit argument in the SQL world is the number of decimal digits (including sign) you want the DB to allocate to your field. 8 bytes require, as you point out, 20 decimal digits to represent fully. -- B On Fri, Mar 6, 2009 at 11:21 AM, Brandon Keepers wrote: > 8 is actually the max. Active Record maps 8 to "bigint", which is an 8 > byte integer, (up to 9223372036854775807 signed). > > Brandon > > On Mar 6, 2009, at 1:12 PM, Bosco So wrote: > > You may want to increase your integer size to 20 - i.e., :integer, > :limit=>20 > > When I dropped my Facebook app into Bebo, I kept losing one of my users - > his ID was 8xxxyyyzzz but the database was always recording it as > 2147483647. Took me a while to figure out that number is 2**31 - 1 and that > my user ID was rolling over silently. And this was with the default MySQL > integer size of 11. > > The app worked fine before in Facebook because none of the FB ID's were > long enough and didn't cause a silent overflow. > > -- Bosco > > > On Fri, Mar 6, 2009 at 6:33 AM, Brandon Keepers wrote: > >> decimal is meant for Floats. You'll want to use 'bigint'. In a Rails >> migration, you can use :integer with :limit => 8 >> Brandon >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at pinkpucker.net Fri Mar 6 15:33:26 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Fri, 6 Mar 2009 12:33:26 -0800 Subject: [Facebooker-talk] storage format of facebook uids In-Reply-To: <8d992eff0903061133v1e23bf41jc91a96c7801f55d1@mail.gmail.com> References: <8d992eff0903061012x5eab8594n53ba0ff9fc3f64c8@mail.gmail.com> <090E02D9-6DA6-4E84-9C25-D607F9F69063@opensoul.org> <8d992eff0903061133v1e23bf41jc91a96c7801f55d1@mail.gmail.com> Message-ID: Great, thanks all! On Fri, Mar 6, 2009 at 11:33 AM, Bosco So wrote: > The :limit argument in the SQL world is the number of decimal digits > (including sign) you want the DB to allocate to your field. 8 bytes require, > as you point out, 20 decimal digits to represent fully. > > -- B > > > On Fri, Mar 6, 2009 at 11:21 AM, Brandon Keepers > wrote: >> >> 8 is actually the max. ?Active Record maps 8 to "bigint", which is an 8 >> byte integer, (up to?9223372036854775807 signed). >> Brandon >> On Mar 6, 2009, at 1:12 PM, Bosco So wrote: >> >> You may want to increase your integer size to 20 - i.e., :integer, >> :limit=>20 >> >> When I dropped my Facebook app into Bebo, I kept losing one of my users - >> his ID was 8xxxyyyzzz but the database was always recording it as >> 2147483647. Took me a while to figure out that number is 2**31 - 1 and that >> my user ID was rolling over silently. And this was with the default MySQL >> integer size of 11. >> >> The app worked fine before in Facebook because none of the FB ID's were >> long enough and didn't cause a silent overflow. >> >> -- Bosco >> >> >> On Fri, Mar 6, 2009 at 6:33 AM, Brandon Keepers >> wrote: >>> >>> decimal is meant for Floats. ?You'll want to use 'bigint'. ?In a Rails >>> migration, you can use :integer with :limit => 8 >>> Brandon > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From joe at pinkpucker.net Fri Mar 6 15:35:33 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Fri, 6 Mar 2009 12:35:33 -0800 Subject: [Facebooker-talk] Using javascript Message-ID: Hi, Anyone got any good resources on using Javascript inside a facebooker application? We're not doing much in terms of fanciness, just stuff like clicking a button should expand a div. Joe From matt at bustoutsolutions.com Sat Mar 7 16:13:12 2009 From: matt at bustoutsolutions.com (Matt Carlson) Date: Sat, 7 Mar 2009 13:13:12 -0800 Subject: [Facebooker-talk] Help with link_to_remote method=>delete? Message-ID: I'm struggling to get the following link_to_remote code working and am wondering if anyone can help me out? <%= link_to_remote image_tag('close.gif', :class => 'delete'), :url => status_url(:id => status, :canvas=>false), :method => :delete %> I don't see any Firebug errors, but do get the following Rails server error: ActionController::MethodNotAllowed (Only get, put, and delete requests are allowed.) I also only see the Facebook POST hitting the ApplicationController and not making it to my StatusesController.... Cheers, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Mon Mar 9 09:06:09 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Mon, 9 Mar 2009 09:06:09 -0400 Subject: [Facebooker-talk] Help with link_to_remote method=>delete? In-Reply-To: References: Message-ID: It looks like the :method=>:delete isn't making it. What parameters are you getting on the request? Mike On Mar 7, 2009, at 4:13 PM, Matt Carlson wrote: > I'm struggling to get the following link_to_remote code working and > am wondering if anyone can help me out? > > > <%= link_to_remote image_tag('close.gif', :class => > 'delete'), > :url => status_url(:id => > status, :canvas=>false), > :method => :delete %> > > > I don't see any Firebug errors, but do get the following Rails > server error: > ActionController::MethodNotAllowed (Only get, put, and delete > requests are allowed.) > > I also only see the Facebook POST hitting the ApplicationController > and not making it to my StatusesController.... > > > Cheers, > Matt > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From matt at bustoutsolutions.com Mon Mar 9 14:10:33 2009 From: matt at bustoutsolutions.com (Matt Carlson) Date: Mon, 9 Mar 2009 11:10:33 -0700 Subject: [Facebooker-talk] Help with link_to_remote method=>delete? In-Reply-To: References: Message-ID: You're correct, :method=>:delete wasn't making it in the request: Parameters: {"fb_sig_app_id"=>"61934216788", "authenticity_token"=>"ff9ade6d48c507cf10ac0d640af485c9edd15234", "fb_sig_locale"=>"en_US", "fb_sig_in_new_facebook"=>"1", "fb_sig"=>"59fd5294a6e7b76009852dbb5f6c278b", "fb_sig_added"=>"1", "fb_sig_expires"=>"1236549600", "fb_sig_session_key"=>"2.whqq8PF7q1DD_Evihwi52g__.86400.1236549600-690279775", "fb_sig_is_ajax"=>"1", "fb_sig_api_key"=>"f2aaeb240414ac632c51c6aa5481f1a0", "fb_sig_time"=>"1236461548.8907", "fb_sig_profile_update_time"=>"1229643941", "fb_sig_user"=>"690279775"} However, by creating an explicit route: status.delete_status '/destroy/:id', :action => 'destroy', :method => :delete I was able to see :method=>:delete come through in the request. On Mon, Mar 9, 2009 at 6:06 AM, Mike Mangino wrote: > It looks like the :method=>:delete isn't making it. What parameters are you > getting on the request? > > Mike > > On Mar 7, 2009, at 4:13 PM, Matt Carlson wrote: > > I'm struggling to get the following link_to_remote code working and am >> wondering if anyone can help me out? >> >> >> <%= link_to_remote image_tag('close.gif', :class => 'delete'), >> :url => status_url(:id => status, :canvas=>false), >> :method => :delete %> >> >> >> I don't see any Firebug errors, but do get the following Rails server >> error: >> ActionController::MethodNotAllowed (Only get, put, and delete requests are >> allowed.) >> >> I also only see the Facebook POST hitting the ApplicationController and >> not making it to my StatusesController.... >> >> >> Cheers, >> Matt >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From va.orlando at gmail.com Mon Mar 9 20:33:07 2009 From: va.orlando at gmail.com (Vincent Orlando) Date: Mon, 9 Mar 2009 20:33:07 -0400 Subject: [Facebooker-talk] gem problem Message-ID: Hello, Having a problem getting the facebooker gem to work. I am using Rails 2.2.2 and the facebooker gem 1.0.13. Ruby 1.8.7. I keep getting this NameError that the 'ensure_application_is_installed_by_facebook_user' is not available. Am I correct to in believing that if I have the gem installed I do not need to install the plugin? Thanks in advance. Vince -- Vincent Orlando /Users/vince/work/test/app/controllers/application.rb:11: undefined local variable or method `ensure_application_is_installed_by_facebook_user' for ApplicationController:Class (NameError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in `load_without_new_constant_marking' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in `load_file' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in `load_file' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in `require_or_load' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in `depend_on' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in `require_dependency' from /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:18:in `define_dispatcher_callbacks' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:182:in `call' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:182:in `evaluate_method' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:166:in `call' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:90:in `run' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:90:in `each' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:90:in `send' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:90:in `run' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:277:in `run_callbacks' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:559:in `send' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:559:in `prepare_dispatcher' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:173:in `process' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `send' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `run' from /Users/vince/work/test/config/environment.rb:13 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:in `rails' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:149:in `call' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:149:in `listener' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in `call' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in `initialize' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run' from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:142:in `load_without_new_constant_marking' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:142:in `load' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:142:in `load' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/mongrel.rb:64 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from script/server:3 -- Vincent Orlando -------------- next part -------------- An HTML attachment was scrubbed... URL: From klochner at gmail.com Mon Mar 9 20:59:31 2009 From: klochner at gmail.com (kevin lochner) Date: Mon, 9 Mar 2009 20:59:31 -0400 Subject: [Facebooker-talk] gem problem In-Reply-To: References: Message-ID: <3A4A8189-5537-436F-A0A5-F8F186101913@gmail.com> You should install the plugin, the gem is slightly out of date. On Mar 9, 2009, at 8:33 PM, Vincent Orlando wrote: > Hello, > > Having a problem getting the facebooker gem to work. I am using > Rails 2.2.2 and the facebooker gem 1.0.13. Ruby 1.8.7. I keep > getting this NameError that the > 'ensure_application_is_installed_by_facebook_user' is not available. > Am I correct to in believing that if I have the gem installed I do > not need to install the plugin? > > Thanks in advance. > > Vince > > -- > Vincent Orlando > > /Users/vince/work/test/app/controllers/application.rb:11: undefined > local variable or method > `ensure_application_is_installed_by_facebook_user' for > ApplicationController:Class (NameError) > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:382:in > `load_without_new_constant_marking' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:382:in `load_file' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:521:in `new_constants_in' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:381:in `load_file' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:256:in `require_or_load' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:221:in `depend_on' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:133:in `require_dependency' > from /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:18:in `define_dispatcher_callbacks' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/callbacks.rb:182:in `call' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/callbacks.rb:182:in `evaluate_method' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/callbacks.rb:166:in `call' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/callbacks.rb:90:in `run' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/callbacks.rb:90:in `each' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/callbacks.rb:90:in `send' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/callbacks.rb:90:in `run' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/callbacks.rb:277:in `run_callbacks' > from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ > initializer.rb:559:in `send' > from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ > initializer.rb:559:in `prepare_dispatcher' > from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ > initializer.rb:173:in `process' > from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ > initializer.rb:112:in `send' > from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ > initializer.rb:112:in `run' > from /Users/vince/work/test/config/environment.rb:13 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:153:in `require' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:521:in `new_constants_in' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:153:in `require' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ > mongrel/rails.rb:147:in `rails' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ > mongrel_rails:113:in `cloaker_' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/ > configurator.rb:149:in `call' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/ > configurator.rb:149:in `listener' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ > mongrel_rails:99:in `cloaker_' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/ > configurator.rb:50:in `call' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/ > configurator.rb:50:in `initialize' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ > mongrel_rails:84:in `new' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ > mongrel_rails:84:in `run' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/ > command.rb:212:in `run' > from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ > mongrel_rails:281 > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:142:in > `load_without_new_constant_marking' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:142:in `load' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:521:in `new_constants_in' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:142:in `load' > from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/ > servers/mongrel.rb:64 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:153:in `require' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:521:in `new_constants_in' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:153:in `require' > from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/ > server.rb:49 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require' > from script/server:3 > > > -- > Vincent Orlando > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From vijay at bhivesoft.com Tue Mar 10 13:28:25 2009 From: vijay at bhivesoft.com (Vijaykumar Natarajan) Date: Tue, 10 Mar 2009 10:28:25 -0700 Subject: [Facebooker-talk] Newbie questions... Message-ID: <229e929e0903101028s766f90abi16163d811e19da24@mail.gmail.com> Hi all, Just joined this list. Had a couple of quick questions before I asked anything technical. 1. Is this the right group/list to ask newbie usage questions? 2. Is there an FAQ anywhere that I should be reading before I asked questions? 3. Is there way to search the list archives? TIA, Vijay -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Tue Mar 10 13:59:25 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 10 Mar 2009 13:59:25 -0400 Subject: [Facebooker-talk] Newbie questions... In-Reply-To: <229e929e0903101028s766f90abi16163d811e19da24@mail.gmail.com> References: <229e929e0903101028s766f90abi16163d811e19da24@mail.gmail.com> Message-ID: There is a new list at google groups that might be a better one. You can definitely ask newbie questions, but I personally recommend http://www.pragprog.com/titles/mmfacer Yes, that was a completely shameless plug. Mike On Mar 10, 2009, at 1:28 PM, Vijaykumar Natarajan wrote: > Hi all, > > Just joined this list. Had a couple of quick questions before I > asked anything technical. > > 1. Is this the right group/list to ask newbie usage questions? > > 2. Is there an FAQ anywhere that I should be reading before I asked > questions? > > 3. Is there way to search the list archives? > > TIA, > Vijay > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From vijay at bhivesoft.com Tue Mar 10 14:19:34 2009 From: vijay at bhivesoft.com (Vijaykumar Natarajan) Date: Tue, 10 Mar 2009 11:19:34 -0700 Subject: [Facebooker-talk] Newbie questions... In-Reply-To: References: <229e929e0903101028s766f90abi16163d811e19da24@mail.gmail.com> Message-ID: <229e929e0903101119w6971fba0le69f47abb884c230@mail.gmail.com> Very smooth plug ;-) Albeit a little too late (already got the book)!! Will check out the google groups. Thanks much. -cheers Vijay On Tue, Mar 10, 2009 at 10:59 AM, Mike Mangino wrote: > There is a new list at google groups that might be a better one. > > You can definitely ask newbie questions, but I personally recommend > http://www.pragprog.com/titles/mmfacer > > Yes, that was a completely shameless plug. > > Mike > > > On Mar 10, 2009, at 1:28 PM, Vijaykumar Natarajan wrote: > > Hi all, >> >> Just joined this list. Had a couple of quick questions before I asked >> anything technical. >> >> 1. Is this the right group/list to ask newbie usage questions? >> >> 2. Is there an FAQ anywhere that I should be reading before I asked >> questions? >> >> 3. Is there way to search the list archives? >> >> TIA, >> Vijay >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -- Vijaykumar Natarajan VP, Products bHive Software, Inc. unfuse: [v. uhn-fyooz] To make and help make decisions in a fun and social environment with your friends. -verb, -fusing, -fused. http://www.unfuse.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at bustoutsolutions.com Tue Mar 10 15:51:00 2009 From: matt at bustoutsolutions.com (Matt Carlson) Date: Tue, 10 Mar 2009 12:51:00 -0700 Subject: [Facebooker-talk] link_to_remote with conditional Dialog.DIALOG_POP? Message-ID: I'm trying to get a conditional Dialog.DIALOG_POP working for some link_to_remote delete functionality (much like deleting comments on a Facebook profile), but thus far can't quite get it to work using a Rails helper. Returning true in a Dialog onconfirm call back works fine and the Ajax function gets execute. However, if the user selects the Dialog cancel button, I'm not sure how to handle skipping the delete invocation. Returning false in the dialog prevents it from closing. And I thus far haven't been able to get a condition argument in link_to_remote working like the following: :condition => 'if (Status.delete() == true)', Has anyone got this working or is there a better way to approach this? I'm not a Javascript expert, so my apologies if I'm missing something obvious. Cheers, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at pinkpucker.net Tue Mar 10 18:03:20 2009 From: joe at pinkpucker.net (Joe Van Dyk) Date: Tue, 10 Mar 2009 15:03:20 -0700 Subject: [Facebooker-talk] 2.3 In-Reply-To: <08be9e43-7574-4cf1-9c0b-e218d46c0cf7@13g2000yql.googlegroups.com> References: <08be9e43-7574-4cf1-9c0b-e218d46c0cf7@13g2000yql.googlegroups.com> Message-ID: I'd wait to switch to 2.3 until it's been out for a while. I've had nothing but weirdness happen on 2.3. http://intertwingly.net/blog/2009/03/10/Rails-System-Integration-Testing for example If you're fine with potentially tracking down bugs in Rails, then yeah, use 2.3. Lots of neat stuff in there. But if not, then stick to 2.2. Joe On Fri, Feb 20, 2009 at 6:09 PM, Alan wrote: > Whats the state of play w.r.t. 2.3? Is facebooker (or any forks there > of) fully compatible? > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > From hyukyoo at gmail.com Wed Mar 11 04:21:59 2009 From: hyukyoo at gmail.com (Hyuk Yoo) Date: Wed, 11 Mar 2009 04:21:59 -0400 Subject: [Facebooker-talk] newb question but is there any work around redirect_to :back? Message-ID: <3643dac30903110121u438dffc5pbcaf8b6f43e29d5b@mail.gmail.com> i tried to use the redirect_to :back from a request and it gave me a weird error and when i googled it, couldn't find much information except it doesn't work...thank youuu! -Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From brandon at opensoul.org Wed Mar 11 08:12:51 2009 From: brandon at opensoul.org (Brandon Keepers) Date: Wed, 11 Mar 2009 08:12:51 -0400 Subject: [Facebooker-talk] newb question but is there any work around redirect_to :back? In-Reply-To: <3643dac30903110121u438dffc5pbcaf8b6f43e29d5b@mail.gmail.com> References: <3643dac30903110121u438dffc5pbcaf8b6f43e29d5b@mail.gmail.com> Message-ID: <28E9119A-761E-429B-AD7A-1E42597C0669@opensoul.org> Nope, because Facebook doesn't pass along the referrer. So what I did in my app as pass a :return_to param and my controller just redirects to that if it's set. Brandon On Mar 11, 2009, at 4:21 AM, Hyuk Yoo wrote: > i tried to use the redirect_to :back from a request and it gave me a > weird error and when i googled it, couldn't find much information > except it doesn't work...thank youuu! > > -Richard > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From kalpakliev at googlemail.com Thu Mar 12 04:57:07 2009 From: kalpakliev at googlemail.com (Petar Kalpakliev) Date: Thu, 12 Mar 2009 09:57:07 +0100 Subject: [Facebooker-talk] publishing templatized actions Message-ID: <380578110903120157u36c24a76i56ae1d659a6a43be@mail.gmail.com> Hello, I would like to publish a story whenever a user joins a group in my application. As far as I understood, I have to publish a user_action ( http://facebooker.rubyforge.org/classes/Facebooker/Rails/Publisher.html) However, I get an error (Mysql::Error: Table 'app_development.facebook_templates' doesn't exist: SHOW FIELDS FROM `facebook_templates`): here is my template and user_action handler: ------------------------------------------------------------------------- def publish_joingroup_action_template one_line_story_template "{*actor*} joined group {*groupname*}" end def publish_joingroup_action(f) send_as :user_action from f story_size ONE_LINE data :groupname => "A Group Name" end in the controller I have the following: ------------------------------------------------------------- FacebookPublisher.register_publish_joingroup_action FacebookPublisher.deliver_publish_joingroup_action(facebook_session.user) If I'm not wrong, that's the way to register a template and use it... -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.akkaoui at imeuble.info Thu Mar 12 06:06:26 2009 From: stephane.akkaoui at imeuble.info (=?ISO-8859-1?Q?St=E9phane_Akkaoui?=) Date: Thu, 12 Mar 2009 11:06:26 +0100 Subject: [Facebooker-talk] publishing templatized actions In-Reply-To: <380578110903120157u36c24a76i56ae1d659a6a43be@mail.gmail.com> References: <380578110903120157u36c24a76i56ae1d659a6a43be@mail.gmail.com> Message-ID: Le 12 mars 09 ? 09:57, Petar Kalpakliev a ?crit : > However, I get an error (Mysql::Error: Table > 'app_development.facebook_templates' doesn't exist: SHOW FIELDS FROM > `facebook_templates`): You don't have the table to save the templates. I presume that you made your Publisher by hand. Comming with Facebooker, ther is a generator for Publishers. It create an appropriate publisher in app/models and a migration in db/migrate wich handle the table creation. Just run $ script/generate facebook_publisher FacebookPublisherName and then $ rake db:migrate If you want, the migration file is : class CreateFacebookTemplates < ActiveRecord::Migration def self.up create_table :facebook_templates, :force => true do |t| t.string :template_name, :null => false t.string :content_hash, :null => false t.string :bundle_id, :null => true end add_index :facebook_templates, :template_name, :unique => true end def self.down remove_index :facebook_templates, :template_name drop_table :facebook_templates end end HTH, -- St?phane Akkaoui http://www.sociabliz.com http://imeuble.info From mjfreshyfresh at gmail.com Thu Mar 12 12:33:39 2009 From: mjfreshyfresh at gmail.com (Michael Jones) Date: Thu, 12 Mar 2009 09:33:39 -0700 Subject: [Facebooker-talk] publishing templatized actions In-Reply-To: <380578110903120157u36c24a76i56ae1d659a6a43be@mail.gmail.com> References: <380578110903120157u36c24a76i56ae1d659a6a43be@mail.gmail.com> Message-ID: I'm can't remember where, but somewhere there is a migration you need to run which generates that table. On Mar 12, 2009, at 1:57 AM, Petar Kalpakliev wrote: > Hello, > > I would like to publish a story whenever a user joins a group in my > application. > As far as I understood, I have to publish a user_action (http://facebooker.rubyforge.org/classes/Facebooker/Rails/Publisher.html > ) > > However, I get an error (Mysql::Error: Table > 'app_development.facebook_templates' doesn't exist: SHOW FIELDS FROM > `facebook_templates`): > > here is my template and user_action handler: > ------------------------------------------------------------------------- > def publish_joingroup_action_template > one_line_story_template "{*actor*} joined group {*groupname*}" > end > > def publish_joingroup_action(f) > send_as :user_action > from f > story_size ONE_LINE > data :groupname => "A Group Name" > end > > > in the controller I have the following: > ------------------------------------------------------------- > FacebookPublisher.register_publish_joingroup_action > FacebookPublisher > .deliver_publish_joingroup_action(facebook_session.user) > > > If I'm not wrong, that's the way to register a template and use it... > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From kalpakliev at googlemail.com Thu Mar 12 12:59:33 2009 From: kalpakliev at googlemail.com (Petar Kalpakliev) Date: Thu, 12 Mar 2009 17:59:33 +0100 Subject: [Facebooker-talk] publishing templatized actions In-Reply-To: References: <380578110903120157u36c24a76i56ae1d659a6a43be@mail.gmail.com> Message-ID: <380578110903120959o2e44483crb848303c7d933172@mail.gmail.com> Thanks for the replies, guys. Yes, you are right, I had to run: $ script/generate facebook_publisher FacebookPublisherName So now I can publish user_action, but for some reason it is always published on behalf of the user, who is currently logged. def publish_joingroup_action(f, group) send_as :user_action from f story_size ONE_LINE data :groupname => group.name end I expect the user_action to be published on behalf of user f. However, it appears on the wall of the currently logged user with his/her name as *actor* How can I write another *actor* of the user_action to display a story ? Thanks a lot On Thu, Mar 12, 2009 at 11:06 AM, St?phane Akkaoui < stephane.akkaoui at imeuble.info> wrote: > > Le 12 mars 09 ? 09:57, Petar Kalpakliev a ?crit : > >> However, I get an error (Mysql::Error: Table >> 'app_development.facebook_templates' doesn't exist: SHOW FIELDS FROM >> `facebook_templates`): >> > > You don't have the table to save the templates. > I presume that you made your Publisher by hand. > > Comming with Facebooker, ther is a generator for Publishers. It create an > appropriate publisher in app/models and a migration in db/migrate wich > handle the table creation. > > Just run > > $ script/generate facebook_publisher FacebookPublisherName > > and then > > $ rake db:migrate > > If you want, the migration file is : > > class CreateFacebookTemplates < ActiveRecord::Migration > def self.up > create_table :facebook_templates, :force => true do > |t| > t.string :template_name, :null => false > t.string :content_hash, :null => false > t.string :bundle_id, :null => true > end > > add_index :facebook_templates, :template_name, > :unique => true > end > > def self.down > remove_index :facebook_templates, :template_name > drop_table :facebook_templates > end > end > > HTH, > > -- > St?phane Akkaoui > http://www.sociabliz.com > http://imeuble.info -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Thu Mar 12 13:46:43 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 12 Mar 2009 13:46:43 -0400 Subject: [Facebooker-talk] publishing templatized actions In-Reply-To: <380578110903120959o2e44483crb848303c7d933172@mail.gmail.com> References: <380578110903120157u36c24a76i56ae1d659a6a43be@mail.gmail.com> <380578110903120959o2e44483crb848303c7d933172@mail.gmail.com> Message-ID: <0C2E0615-3DCC-4564-B6A6-8CDAA39BAADC@elevatedrails.com> The from user needs to be a Facebooker::User with a session for that user. You can't use my session to publish a user action for somebody else. Mike On Mar 12, 2009, at 12:59 PM, Petar Kalpakliev wrote: > Thanks for the replies, guys. > > Yes, you are right, I had to run: > $ script/generate facebook_publisher FacebookPublisherName > > So now I can publish user_action, but for some reason it is always > published on behalf of the user, who is currently logged. > > def publish_joingroup_action(f, group) > send_as :user_action > from f > story_size ONE_LINE > data :groupname => group.name > end > > I expect the user_action to be published on behalf of user f. > However, it appears on the wall of the currently logged user with > his/her name as *actor* > > How can I write another *actor* of the user_action to display a > story ? > > Thanks a lot > > > > > > On Thu, Mar 12, 2009 at 11:06 AM, St?phane Akkaoui > wrote: > > Le 12 mars 09 ? 09:57, Petar Kalpakliev a ?crit : > > However, I get an error (Mysql::Error: Table > 'app_development.facebook_templates' doesn't exist: SHOW FIELDS FROM > `facebook_templates`): > > You don't have the table to save the templates. > I presume that you made your Publisher by hand. > > Comming with Facebooker, ther is a generator for Publishers. It > create an appropriate publisher in app/models and a migration in db/ > migrate wich handle the table creation. > > Just run > > $ script/generate facebook_publisher FacebookPublisherName > > and then > > $ rake db:migrate > > If you want, the migration file is : > > class CreateFacebookTemplates < ActiveRecord::Migration > def self.up > create_table :facebook_templates, :force => > true do |t| > t.string :template_name, :null => false > t.string :content_hash, :null => false > t.string :bundle_id, :null => true > end > > > add_index :facebook_templates, :template_name, :unique => true > end > > def self.down > > remove_index :facebook_templates, :template_name > drop_table :facebook_templates > end > end > > HTH, > > -- > St?phane Akkaoui > http://www.sociabliz.com > http://imeuble.info > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordan.d.carter at gmail.com Thu Mar 12 18:41:29 2009 From: jordan.d.carter at gmail.com (Jordz) Date: Fri, 13 Mar 2009 11:41:29 +1300 Subject: [Facebooker-talk] undefined local variable or method `fb_connect_javascript_tag' Message-ID: <207237520903121541lf74d8c6l4c50af884e9fd6f8@mail.gmail.com> I am trying to follow this http://www.elevatedrails.com/articles/2009/01/02/announcing-facebooker-support-for-facebook-connect/ But can not get it to work. I installed via script/plugin install git... I have followed it word for word... It just can't find the facebook connect methods in my view. <%= javascript_include_tag :defaults%>

My Great Application

<%= fb_connect_javascript_tag %> <%= init_fb_connect "XFBML"%> <%= fb_login_button%> Kind Regards, Jordan. From kalpakliev at googlemail.com Fri Mar 13 05:01:33 2009 From: kalpakliev at googlemail.com (Petar Kalpakliev) Date: Fri, 13 Mar 2009 10:01:33 +0100 Subject: [Facebooker-talk] publishing templatized actions In-Reply-To: <0C2E0615-3DCC-4564-B6A6-8CDAA39BAADC@elevatedrails.com> References: <380578110903120157u36c24a76i56ae1d659a6a43be@mail.gmail.com> <380578110903120959o2e44483crb848303c7d933172@mail.gmail.com> <0C2E0615-3DCC-4564-B6A6-8CDAA39BAADC@elevatedrails.com> Message-ID: <380578110903130201i15fb26bqe79d4faf411346f9@mail.gmail.com> Hm I see, So is it possible to somehow achieve the following: 1. A user wants to join a group in my application 2. The admin of the group accepts the request (I keep the request in my local database) 3. After accepting the request, a story/action is published that the user has joined the group (however, currently the holder of the session is the group admin, who accepts the request) I guess this is possible to do only after the user logs in again... Petar On Thu, Mar 12, 2009 at 6:46 PM, Mike Mangino wrote: > The from user needs to be a Facebooker::User with a session for that user. > You can't use my session to publish a user action for somebody else. > > Mike > > > > On Mar 12, 2009, at 12:59 PM, Petar Kalpakliev wrote: > > Thanks for the replies, guys. > > Yes, you are right, I had to run: > $ script/generate facebook_publisher FacebookPublisherName > > So now I can publish user_action, but for some reason it is always > published on behalf of the user, who is currently logged. > > def publish_joingroup_action(f, group) > send_as :user_action > from f > story_size ONE_LINE > data :groupname => group.name > end > > I expect the user_action to be published on behalf of user f. However, it > appears on the wall of the currently logged user with his/her name as > *actor* > > How can I write another *actor* of the user_action to display a story ? > > Thanks a lot > > > > > > On Thu, Mar 12, 2009 at 11:06 AM, St?phane Akkaoui < > stephane.akkaoui at imeuble.info> wrote: > >> >> Le 12 mars 09 ? 09:57, Petar Kalpakliev a ?crit : >> >>> However, I get an error (Mysql::Error: Table >>> 'app_development.facebook_templates' doesn't exist: SHOW FIELDS FROM >>> `facebook_templates`): >>> >> >> You don't have the table to save the templates. >> I presume that you made your Publisher by hand. >> >> Comming with Facebooker, ther is a generator for Publishers. It create an >> appropriate publisher in app/models and a migration in db/migrate wich >> handle the table creation. >> >> Just run >> >> $ script/generate facebook_publisher FacebookPublisherName >> >> and then >> >> $ rake db:migrate >> >> If you want, the migration file is : >> >> class CreateFacebookTemplates < ActiveRecord::Migration >> def self.up >> create_table :facebook_templates, :force => true do >> |t| >> t.string :template_name, :null => false >> t.string :content_hash, :null => false >> t.string :bundle_id, :null => true >> end >> >> add_index :facebook_templates, :template_name, >> :unique => true >> end >> >> def self.down >> remove_index :facebook_templates, :template_name >> drop_table :facebook_templates >> end >> end >> >> HTH, >> >> -- >> St?phane Akkaoui >> http://www.sociabliz.com >> http://imeuble.info > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Fri Mar 13 07:13:14 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 13 Mar 2009 07:13:14 -0400 Subject: [Facebooker-talk] undefined local variable or method `fb_connect_javascript_tag' In-Reply-To: <207237520903121541lf74d8c6l4c50af884e9fd6f8@mail.gmail.com> References: <207237520903121541lf74d8c6l4c50af884e9fd6f8@mail.gmail.com> Message-ID: Are you using a recent version of the facebooker plugin? Mike On Mar 12, 2009, at 6:41 PM, Jordz wrote: > I am trying to follow this > http://www.elevatedrails.com/articles/2009/01/02/announcing-facebooker-support-for-facebook-connect/ > > But can not get it to work. I installed via script/plugin install > git... > > I have followed it word for word... It just can't find the facebook > connect methods in my view. > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > xmlns:fb="http://www.facebook.com/2008/fbml"> > > <%= javascript_include_tag :defaults%> > > >

My Great Application

> <%= fb_connect_javascript_tag %> > <%= init_fb_connect "XFBML"%> > <%= fb_login_button%> > > > > > > Kind Regards, > Jordan. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From mmangino at elevatedrails.com Fri Mar 13 07:14:23 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 13 Mar 2009 07:14:23 -0400 Subject: [Facebooker-talk] publishing templatized actions In-Reply-To: <380578110903130201i15fb26bqe79d4faf411346f9@mail.gmail.com> References: <380578110903120157u36c24a76i56ae1d659a6a43be@mail.gmail.com> <380578110903120959o2e44483crb848303c7d933172@mail.gmail.com> <0C2E0615-3DCC-4564-B6A6-8CDAA39BAADC@elevatedrails.com> <380578110903130201i15fb26bqe79d4faf411346f9@mail.gmail.com> Message-ID: <88ECAB1F-00B6-4992-9BE6-1C391EE65D75@elevatedrails.com> Facebook says that user actions should only be published when a user takes an action, that's why they require the session. You could publish that a user has requested to join a group, and you could post that an admin has approved the joining. Mike On Mar 13, 2009, at 5:01 AM, Petar Kalpakliev wrote: > Hm I see, > > So is it possible to somehow achieve the following: > 1. A user wants to join a group in my application > 2. The admin of the group accepts the request (I keep the request in > my local database) > 3. After accepting the request, a story/action is published that the > user has joined the group (however, currently the holder of the > session is the group admin, who accepts the request) > > I guess this is possible to do only after the user logs in again... > > Petar > > > > On Thu, Mar 12, 2009 at 6:46 PM, Mike Mangino > wrote: > The from user needs to be a Facebooker::User with a session for that > user. You can't use my session to publish a user action for > somebody else. > > Mike > > > > On Mar 12, 2009, at 12:59 PM, Petar Kalpakliev wrote: > >> Thanks for the replies, guys. >> >> Yes, you are right, I had to run: >> $ script/generate facebook_publisher FacebookPublisherName >> >> So now I can publish user_action, but for some reason it is always >> published on behalf of the user, who is currently logged. >> >> def publish_joingroup_action(f, group) >> send_as :user_action >> from f >> story_size ONE_LINE >> data :groupname => group.name >> end >> >> I expect the user_action to be published on behalf of user f. >> However, it appears on the wall of the currently logged user with >> his/her name as *actor* >> >> How can I write another *actor* of the user_action to display a >> story ? >> >> Thanks a lot >> >> >> >> >> >> On Thu, Mar 12, 2009 at 11:06 AM, St?phane Akkaoui > > wrote: >> >> Le 12 mars 09 ? 09:57, Petar Kalpakliev a ?crit : >> >> However, I get an error (Mysql::Error: Table >> 'app_development.facebook_templates' doesn't exist: SHOW FIELDS >> FROM `facebook_templates`): >> >> You don't have the table to save the templates. >> I presume that you made your Publisher by hand. >> >> Comming with Facebooker, ther is a generator for Publishers. It >> create an appropriate publisher in app/models and a migration in db/ >> migrate wich handle the table creation. >> >> Just run >> >> $ script/generate facebook_publisher FacebookPublisherName >> >> and then >> >> $ rake db:migrate >> >> If you want, the migration file is : >> >> class CreateFacebookTemplates < ActiveRecord::Migration >> def self.up >> create_table :facebook_templates, :force => >> true do |t| >> t.string :template_name, :null => >> false >> t.string :content_hash, :null => false >> t.string :bundle_id, :null => true >> end >> >> >> add_index :facebook_templates, :template_name, :unique => true >> end >> >> def self.down >> >> remove_index :facebook_templates, :template_name >> drop_table :facebook_templates >> end >> end >> >> HTH, >> >> -- >> St?phane Akkaoui >> http://www.sociabliz.com >> http://imeuble.info >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.myron at contentfree.com Fri Mar 13 20:49:26 2009 From: dave.myron at contentfree.com (Dave Myron) Date: Fri, 13 Mar 2009 17:49:26 -0700 Subject: [Facebooker-talk] The 2.3 branch and Rails Edge failing Message-ID: I must be doing something wrong. Checking out the v2.3.0 tag of Rails' git repo still results in the same error. Ideas? Dave From dave.myron at contentfree.com Fri Mar 13 20:43:08 2009 From: dave.myron at contentfree.com (Dave Myron) Date: Fri, 13 Mar 2009 17:43:08 -0700 Subject: [Facebooker-talk] The 2.3 branch and Rails Edge failing Message-ID: I found Brandon's 2.3 branch for Facebooker and thought I'd give that a try to get around the problems I ran into starting script/server with Rails Edge. Unfortunately, no go. The error I get on start up is: > /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:440:in `load_missing_constant': uninitialized > constant ActionController::AbstractRequest (NameError) > from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ > active_support/dependencies.rb:80:in `const_missing' > from /Users/user/Sites/iwr2/vendor/plugins/facebooker/lib/ > facebooker/rails/facebook_url_rewriting.rb:2 > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require' > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require' > from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ > active_support/dependencies.rb:156:in `require' > from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ > active_support/dependencies.rb:521:in `new_constants_in' > from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ > active_support/dependencies.rb:156:in `require' > from /Users/user/Sites/iwr2/vendor/plugins/facebooker/ > rails/../init.rb:13 > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require' > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require' > from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ > active_support/dependencies.rb:156:in `require' > from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ > active_support/dependencies.rb:521:in `new_constants_in' > from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ > active_support/dependencies.rb:156:in `require' > from /Users/user/Sites/iwr2/vendor/plugins/facebooker/rails/ > init.rb:1:in `evaluate_init_rb' > from ./script/../config/../vendor/rails/railties/lib/rails/ > plugin.rb:146:in `evaluate_init_rb' > from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ > active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' > from ./script/../config/../vendor/rails/railties/lib/rails/ > plugin.rb:142:in `evaluate_init_rb' > from ./script/../config/../vendor/rails/railties/lib/rails/ > plugin.rb:48:in `load' > from ./script/../config/../vendor/rails/railties/lib/rails/ > plugin/loader.rb:38:in `load_plugins' > from ./script/../config/../vendor/rails/railties/lib/rails/ > plugin/loader.rb:37:in `each' > from ./script/../config/../vendor/rails/railties/lib/rails/ > plugin/loader.rb:37:in `load_plugins' > from ./script/../config/../vendor/rails/railties/lib/ > initializer.rb:348:in `load_plugins' > from ./script/../config/../vendor/rails/railties/lib/ > initializer.rb:163:in `process' > from ./script/../config/../vendor/rails/railties/lib/ > initializer.rb:113:in `send' > from ./script/../config/../vendor/rails/railties/lib/ > initializer.rb:113:in `run' > from /Users/user/Sites/iwr2/config/environment.rb:9 > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require' > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require' > from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ > active_support/dependencies.rb:156:in `require' > from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ > active_support/dependencies.rb:521:in `new_constants_in' > from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ > active_support/dependencies.rb:156:in `require' > from /Users/user/Sites/iwr2/vendor/rails/railties/lib/ > commands/server.rb:84 > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require' > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require' > from script/server:3 Brandon (or others), is this a known issue? Thanks, Dave From vincentchu at gmail.com Fri Mar 13 23:44:23 2009 From: vincentchu at gmail.com (vincent chu) Date: Fri, 13 Mar 2009 21:44:23 -0600 Subject: [Facebooker-talk] New Facebook Redesign Message-ID: Hi all -- Just an heads up, but the new Facebook redesign broke my template feed publishing. You're probably at risk if your templates have long stories, which were deprecated in this new redesign. The quick fix was to simply re-register the template, but this time WITHOUT any long stories. Cheers, Vince -------------- next part -------------- An HTML attachment was scrubbed... URL: From krsgoss at gmail.com Sat Mar 14 11:45:45 2009 From: krsgoss at gmail.com (Kristofer Goss) Date: Sat, 14 Mar 2009 11:45:45 -0400 Subject: [Facebooker-talk] Stuck on IncorrectSignature Message-ID: Hi, I'm stuck with signature verification errors for a super simple Merb+Facebooker app. I'm still unable to make the facebooker MD5 hash match what FB is sending. As a sanity check, I implemented the verification myself and confirmed that the value I'm generating is identical to the Facebooker asserted value. I'm at a loss of what the issue might be as I've been pulling my hair out over the last two days trying to get :set_facebook_session filter to work. To make matters worse, I can authenticate with FB Connect on the same site. If anyone knows of ways to debug or simplify further, I'd really appreciate any suggestions. This is with a clean merb app with a single controller/view as well as a newly created FB app. I'm happy to post code if that would help. Thanks, Kris -------------- next part -------------- An HTML attachment was scrubbed... URL: From digidigo at gmail.com Sat Mar 14 12:02:52 2009 From: digidigo at gmail.com (David Clements) Date: Sat, 14 Mar 2009 10:02:52 -0600 Subject: [Facebooker-talk] New Facebook Redesign In-Reply-To: References: Message-ID: Thanks for the heads up. Dave On Fri, Mar 13, 2009 at 9:44 PM, vincent chu wrote: > Hi all -- > > Just an heads up, but the new Facebook redesign broke my template feed > publishing. You're probably at risk if your templates have long stories, > which were deprecated in this new redesign. > > The quick fix was to simply re-register the template, but this time WITHOUT > any long stories. > > Cheers, > > Vince > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rubymeetup at boscoso.com Sat Mar 14 13:39:45 2009 From: rubymeetup at boscoso.com (Bosco So) Date: Sat, 14 Mar 2009 10:39:45 -0700 Subject: [Facebooker-talk] Stuck on IncorrectSignature In-Reply-To: References: Message-ID: <8d992eff0903141039n501a3525k9ef49b82db6aa6a9@mail.gmail.com> This is a long shot but I had a signature verification error in an OpenSocial app. During development, I setup a tunnel to my dev machine from an external server (i.e., http://externalhost:3000). The OpenSocial container calculated my signature based on the http://externalhost:3000 URL (plus all the usual OpenSocial params) while my code calculated my sig based on this URL - http://externalhost (sans port number). For some strange reason, my request object dropped the port number and thus calculated the signature differently. Perhaps something similar is happening to you? -- Bosco, SF Ruby Meetup organizer On Sat, Mar 14, 2009 at 8:45 AM, Kristofer Goss wrote: > Hi, I'm stuck with signature verification errors for a super simple > Merb+Facebooker app. I'm still unable to make the facebooker MD5 hash match > what FB is sending. As a sanity check, I implemented the verification > myself and confirmed that the value I'm generating is identical to the > Facebooker asserted value. I'm at a loss of what the issue might be as I've > been pulling my hair out over the last two days trying to get > :set_facebook_session filter to work. > > To make matters worse, I can authenticate with FB Connect on the same > site. If anyone knows of ways to debug or simplify further, I'd really > appreciate any suggestions. This is with a clean merb app with a single > controller/view as well as a newly created FB app. I'm happy to post code > if that would help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From krsgoss at gmail.com Sat Mar 14 15:22:44 2009 From: krsgoss at gmail.com (Kristofer Goss) Date: Sat, 14 Mar 2009 15:22:44 -0400 Subject: [Facebooker-talk] Stuck on IncorrectSignature In-Reply-To: <8d992eff0903141039n501a3525k9ef49b82db6aa6a9@mail.gmail.com> References: <8d992eff0903141039n501a3525k9ef49b82db6aa6a9@mail.gmail.com> Message-ID: Hi Bosco, thanks for replying. I do tunnel from my external server (port 8888) to my local merb instance running on port 4000. However, does the server URL factor in at all in terms of the signature verification? From what I understand, the algorithm only needs to collect all "fb_sig_" prefixed POST/GET params, sort by key, then append the app's secret key into the string before running through the MD5 hash algorithm. From what I understand, the host information should not factor in to this. This one is driving me nuts given I can't get even the basics up and running. Thanks again, Kris On Sat, Mar 14, 2009 at 1:39 PM, Bosco So wrote: > This is a long shot but I had a signature verification error in an > OpenSocial app. During development, I setup a tunnel to my dev machine from > an external server (i.e., http://externalhost:3000). The OpenSocial > container calculated my signature based on the http://externalhost:3000URL (plus all the usual OpenSocial params) while my code calculated my sig > based on this URL - http://externalhost (sans port number). > > For some strange reason, my request object dropped the port number and thus > calculated the signature differently. > > Perhaps something similar is happening to you? > > -- Bosco, SF Ruby Meetup organizer > > > > On Sat, Mar 14, 2009 at 8:45 AM, Kristofer Goss wrote: > >> Hi, I'm stuck with signature verification errors for a super simple >> Merb+Facebooker app. I'm still unable to make the facebooker MD5 hash match >> what FB is sending. As a sanity check, I implemented the verification >> myself and confirmed that the value I'm generating is identical to the >> Facebooker asserted value. I'm at a loss of what the issue might be as I've >> been pulling my hair out over the last two days trying to get >> :set_facebook_session filter to work. >> >> To make matters worse, I can authenticate with FB Connect on the same >> site. If anyone knows of ways to debug or simplify further, I'd really >> appreciate any suggestions. This is with a clean merb app with a single >> controller/view as well as a newly created FB app. I'm happy to post code >> if that would help. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From krsgoss at gmail.com Sat Mar 14 15:40:44 2009 From: krsgoss at gmail.com (Kristofer Goss) Date: Sat, 14 Mar 2009 15:40:44 -0400 Subject: [Facebooker-talk] Stuck on IncorrectSignature In-Reply-To: References: <8d992eff0903141039n501a3525k9ef49b82db6aa6a9@mail.gmail.com> Message-ID: Not sure if this could be an issue, however, I thought that FB would POST all params to a canvas application. In my case, when hitting apps.facebook.com/myapp I see the request sent as a GET. This also contradicts the information in the in the Wiki here: http://wiki.developers.facebook.com/index.php/Verifying_The_Signature Have I setup something wrong in my routes perhaps? On Sat, Mar 14, 2009 at 3:22 PM, Kristofer Goss wrote: > Hi Bosco, thanks for replying. I do tunnel from my external server (port > 8888) to my local merb instance running on port 4000. However, does the > server URL factor in at all in terms of the signature verification? From > what I understand, the algorithm only needs to collect all "fb_sig_" > prefixed POST/GET params, sort by key, then append the app's secret key into > the string before running through the MD5 hash algorithm. From what I > understand, the host information should not factor in to this. This one is > driving me nuts given I can't get even the basics up and running. > > Thanks again, > > Kris > > On Sat, Mar 14, 2009 at 1:39 PM, Bosco So wrote: > >> This is a long shot but I had a signature verification error in an >> OpenSocial app. During development, I setup a tunnel to my dev machine from >> an external server (i.e., http://externalhost:3000). The OpenSocial >> container calculated my signature based on the http://externalhost:3000URL (plus all the usual OpenSocial params) while my code calculated my sig >> based on this URL - http://externalhost (sans port number). >> >> For some strange reason, my request object dropped the port number and >> thus calculated the signature differently. >> >> Perhaps something similar is happening to you? >> >> -- Bosco, SF Ruby Meetup organizer >> >> >> >> On Sat, Mar 14, 2009 at 8:45 AM, Kristofer Goss wrote: >> >>> Hi, I'm stuck with signature verification errors for a super simple >>> Merb+Facebooker app. I'm still unable to make the facebooker MD5 hash match >>> what FB is sending. As a sanity check, I implemented the verification >>> myself and confirmed that the value I'm generating is identical to the >>> Facebooker asserted value. I'm at a loss of what the issue might be as I've >>> been pulling my hair out over the last two days trying to get >>> :set_facebook_session filter to work. >>> >>> To make matters worse, I can authenticate with FB Connect on the same >>> site. If anyone knows of ways to debug or simplify further, I'd really >>> appreciate any suggestions. This is with a clean merb app with a single >>> controller/view as well as a newly created FB app. I'm happy to post code >>> if that would help. >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Sun Mar 15 09:32:27 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Sun, 15 Mar 2009 09:32:27 -0400 Subject: [Facebooker-talk] Stuck on IncorrectSignature In-Reply-To: References: <8d992eff0903141039n501a3525k9ef49b82db6aa6a9@mail.gmail.com> Message-ID: What parameters are you getting? I wonder if a parameter is being silently eaten in your environment. Have you tried the same thing with a simple Rails application? Mike On Mar 14, 2009, at 3:22 PM, Kristofer Goss wrote: > Hi Bosco, thanks for replying. I do tunnel from my external server > (port 8888) to my local merb instance running on port 4000. > However, does the server URL factor in at all in terms of the > signature verification? From what I understand, the algorithm only > needs to collect all "fb_sig_" prefixed POST/GET params, sort by > key, then append the app's secret key into the string before running > through the MD5 hash algorithm. From what I understand, the host > information should not factor in to this. This one is driving me > nuts given I can't get even the basics up and running. > > Thanks again, > > Kris > > On Sat, Mar 14, 2009 at 1:39 PM, Bosco So > wrote: > This is a long shot but I had a signature verification error in an > OpenSocial app. During development, I setup a tunnel to my dev > machine from an external server (i.e., http://externalhost:3000). > The OpenSocial container calculated my signature based on the http://externalhost:3000 > URL (plus all the usual OpenSocial params) while my code calculated > my sig based on this URL - http://externalhost (sans port number). > > For some strange reason, my request object dropped the port number > and thus calculated the signature differently. > > Perhaps something similar is happening to you? > > -- Bosco, SF Ruby Meetup organizer > > > > On Sat, Mar 14, 2009 at 8:45 AM, Kristofer Goss > wrote: > Hi, I'm stuck with signature verification errors for a super simple > Merb+Facebooker app. I'm still unable to make the facebooker MD5 > hash match what FB is sending. As a sanity check, I implemented the > verification myself and confirmed that the value I'm generating is > identical to the Facebooker asserted value. I'm at a loss of what > the issue might be as I've been pulling my hair out over the last > two days trying to get :set_facebook_session filter to work. > > To make matters worse, I can authenticate with FB Connect on the > same site. If anyone knows of ways to debug or simplify further, > I'd really appreciate any suggestions. This is with a clean merb > app with a single controller/view as well as a newly created FB > app. I'm happy to post code if that would help. > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Sun Mar 15 09:34:32 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Sun, 15 Mar 2009 09:34:32 -0400 Subject: [Facebooker-talk] The 2.3 branch and Rails Edge failing In-Reply-To: References: Message-ID: <2ED3E0F2-C937-49EB-AADA-13FA7CC8A549@elevatedrails.com> I have a proposal for how to work on this, although it will take some work. How does everyone feel about splitting Facebooker into several parts. 1) Facebooker-core, this includes just the REST API and nothing framework specific 2) Facebooker-Rails, includes the helpers and rails publisher code That lets us have different plugins for 2.3 and 2.2. It would also allow other environments to make better use of the facebooker code without all of the rails related baggage. Finally, I'm going to shut down the rubyforge mailing list soon. If you're still on it, please move to the google group. Mike On Mar 13, 2009, at 8:43 PM, Dave Myron wrote: > I found Brandon's 2.3 branch for Facebooker and thought I'd give > that a try to get around the problems I ran into starting script/ > server with Rails Edge. Unfortunately, no go. > > The error I get on start up is: > >> /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:440:in `load_missing_constant': >> uninitialized constant ActionController::AbstractRequest (NameError) >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:80:in `const_missing' >> from /Users/user/Sites/iwr2/vendor/plugins/facebooker/lib/ >> facebooker/rails/facebook_url_rewriting.rb:2 >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `gem_original_require' >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:521:in `new_constants_in' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/plugins/facebooker/ >> rails/../init.rb:13 >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `gem_original_require' >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:521:in `new_constants_in' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/plugins/facebooker/rails/ >> init.rb:1:in `evaluate_init_rb' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin.rb:146:in `evaluate_init_rb' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin.rb:142:in `evaluate_init_rb' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin.rb:48:in `load' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin/loader.rb:38:in `load_plugins' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin/loader.rb:37:in `each' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin/loader.rb:37:in `load_plugins' >> from ./script/../config/../vendor/rails/railties/lib/ >> initializer.rb:348:in `load_plugins' >> from ./script/../config/../vendor/rails/railties/lib/ >> initializer.rb:163:in `process' >> from ./script/../config/../vendor/rails/railties/lib/ >> initializer.rb:113:in `send' >> from ./script/../config/../vendor/rails/railties/lib/ >> initializer.rb:113:in `run' >> from /Users/user/Sites/iwr2/config/environment.rb:9 >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `gem_original_require' >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:521:in `new_constants_in' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/railties/lib/ >> commands/server.rb:84 >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `gem_original_require' >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `require' >> from script/server:3 > > Brandon (or others), is this a known issue? > > Thanks, > Dave > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From krsgoss at gmail.com Sun Mar 15 10:34:25 2009 From: krsgoss at gmail.com (Kristofer Goss) Date: Sun, 15 Mar 2009 10:34:25 -0400 Subject: [Facebooker-talk] Stuck on IncorrectSignature In-Reply-To: <89EEA8CF-756F-401B-91CC-64CAC7AA5401@gmail.com> References: <8d992eff0903141039n501a3525k9ef49b82db6aa6a9@mail.gmail.com> <89EEA8CF-756F-401B-91CC-64CAC7AA5401@gmail.com> Message-ID: Hi Zhao, the stack trace is below. I've highlighted a couple parts within: - My own signature verification result of the request - The facebooker signature verification result - I added a simple debug statement into the verify_signature method for sanity checking - I've removed my friend list from the request - It's a toy app, so here are the relevant settings, I've removed a couple pieces like email and my server host name only: > *API Key**b5aa1d6f4bc5800270033c3d6dccef54**Application Secret** > 9c12752f662186bd561f1255a9bcb4c7*Application ID56615211793Contact Email > Support EmailCanvas Callback URLhttp://:8888/facebookBase > Domain Canvas URLhttp://apps.facebook.com/kg-demo/FBML/iframeFBMLDeveloper > ModeOff *merb : worker (port 4000) ~ Hash: 722061c69b3b5b35310f026a42a2d7*7a > merb : worker (port 4000) ~ > ***** Debugger requested, but was not available: Start server with > --debugger to enable ***** > *Facebooker: 722061c69b3b5b35310f026a42a2d77a* > merb : worker (port 4000) ~ Facebooker::Session::IncorrectSignature - > (Facebooker::Session::IncorrectSignature) > /Users/Kris/Code/spikes/merb-fb/gems/gems/merb_facebooker-0.0.2.1/lib/merb_facebooker/controller.rb:154:in > `verify_signature' > /Users/Kris/Code/spikes/merb-fb/gems/gems/merb_facebooker-0.0.2.1/lib/merb_facebooker/controller.rb:130:in > `verified_facebook_params' > /Users/Kris/Code/spikes/merb-fb/gems/gems/merb_facebooker-0.0.2.1/lib/merb_facebooker/controller.rb:42:in > `facebook_params' > /Users/Kris/Code/spikes/merb-fb/gems/gems/merb_facebooker-0.0.2.1/lib/merb_facebooker/controller.rb:74:in > `secure_with_facebook_params!' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:243:in > `all?' > /Users/Kris/Code/spikes/merb-fb/gems/gems/merb_facebooker-0.0.2.1/lib/merb_facebooker/controller.rb:74:in > `each' > /Users/Kris/Code/spikes/merb-fb/gems/gems/merb_facebooker-0.0.2.1/lib/merb_facebooker/controller.rb:74:in > `all?' > /Users/Kris/Code/spikes/merb-fb/gems/gems/merb_facebooker-0.0.2.1/lib/merb_facebooker/controller.rb:74:in > `secure_with_facebook_params!' > /Users/Kris/Code/spikes/merb-fb/gems/gems/merb_facebooker-0.0.2.1/lib/merb_facebooker/controller.rb:30:in > `set_facebook_session' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/controller/abstract_controller.rb:346:in > `send' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/controller/abstract_controller.rb:346:in > `_call_filters' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/controller/abstract_controller.rb:338:in > `each' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/controller/abstract_controller.rb:338:in > `_call_filters' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/controller/abstract_controller.rb:283:in > `_dispatch' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/controller/abstract_controller.rb:281:in > `catch' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/controller/abstract_controller.rb:281:in > `_dispatch' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/controller/merb_controller.rb:252:in > `_dispatch' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/dispatcher.rb:100:in > `dispatch_action' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/dispatcher.rb:100:in > `synchronize' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/dispatcher.rb:100:in > `dispatch_action' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/dispatcher.rb:74:in > `handle' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/dispatch/dispatcher.rb:36:in > `handle' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/rack/application.rb:17:in > `call' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/rack/middleware/static.rb:28:in > `call' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/rack/handler/mongrel.rb:82:in > `process' > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in > `process_client' > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in > `process_client' > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in > `initialize' > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in > `initialize' > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' > /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/rack/adapter/mongrel.rb:38:in > `start_server' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/rack/adapter/abstract.rb:295:in > `start_at_port' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/rack/adapter/abstract.rb:128:in > `start' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/server.rb:174:in > `bootup' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core/server.rb:42:in > `start' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/lib/merb-core.rb:170:in `start' > /Library/Ruby/Gems/1.8/gems/merb-core-1.0.9/bin/merb:11 > /usr/bin/merb:19:in `load' > /usr/bin/merb:19 > merb : worker (port 4000) ~ Params: {"format"=>"fbml", > "fb_sig_time"=>"1237044844.5038", * > "fb_sig"=>"1cd09f74f68f5dff1729b2a1d8859406"*, > "fb_sig_app_id"=>"56615211793", "fb_sig_in_new_facebook"=>"1", > "action"=>"index", "fb_sig_locale"=>"en_US", "id"=>nil, > "fb_sig_session_key"=>"2.hT2Qz4cJt1tpmZXMI_lU0Q__.86400.1237132800-673124808", > "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", > "controller"=>"facebook", "fb_sig_request_method"=>"get", > "fb_sig_expires"=>"1237132800", "fb_sig_added"=>"1", * > "fb_sig_friends"=>"1,2,3..."*, > "fb_sig_api_key"=>"b5aa1d6f4bc5800270033c3d6dccef54", > "fb_sig_user"=>"673124808", "fb_sig_profile_update_time"=>"1216646482"} > On Sat, Mar 14, 2009 at 4:36 PM, Zhao Lu wrote: > Error stack and code please? If it's a toy app, then revealing api secret > is safe too. > > > > On Mar 14, 2009, at 12:22 PM, Kristofer Goss wrote: > > Hi Bosco, thanks for replying. I do tunnel from my external server (port > 8888) to my local merb instance running on port 4000. However, does the > server URL factor in at all in terms of the signature verification? From > what I understand, the algorithm only needs to collect all "fb_sig_" > prefixed POST/GET params, sort by key, then append the app's secret key into > the string before running through the MD5 hash algorithm. From what I > understand, the host information should not factor in to this. This one is > driving me nuts given I can't get even the basics up and running. > > Thanks again, > > Kris > > On Sat, Mar 14, 2009 at 1:39 PM, Bosco So < > rubymeetup at boscoso.com> wrote: > >> This is a long shot but I had a signature verification error in an >> OpenSocial app. During development, I setup a tunnel to my dev machine from >> an external server (i.e., >> http://externalhost:3000). The OpenSocial container calculated my >> signature based on the >> http://externalhost:3000 URL (plus all the usual OpenSocial params) while >> my code calculated my sig based on this URL - >> http://externalhost (sans port number). >> >> For some strange reason, my request object dropped the port number and >> thus calculated the signature differently. >> >> Perhaps something similar is happening to you? >> >> -- Bosco, SF Ruby Meetup organizer >> >> >> >> On Sat, Mar 14, 2009 at 8:45 AM, Kristofer Goss < >> krsgoss at gmail.com> wrote: >> >>> Hi, I'm stuck with signature verification errors for a super simple >>> Merb+Facebooker app. I'm still unable to make the facebooker MD5 hash match >>> what FB is sending. As a sanity check, I implemented the verification >>> myself and confirmed that the value I'm generating is identical to the >>> Facebooker asserted value. I'm at a loss of what the issue might be as I've >>> been pulling my hair out over the last two days trying to get >>> :set_facebook_session filter to work. >>> >>> To make matters worse, I can authenticate with FB Connect on the same >>> site. If anyone knows of ways to debug or simplify further, I'd really >>> appreciate any suggestions. This is with a clean merb app with a single >>> controller/view as well as a newly created FB app. I'm happy to post code >>> if that would help. >> >> >> > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From krsgoss at gmail.com Sun Mar 15 10:44:55 2009 From: krsgoss at gmail.com (Kristofer Goss) Date: Sun, 15 Mar 2009 10:44:55 -0400 Subject: [Facebooker-talk] Stuck on IncorrectSignature In-Reply-To: References: <8d992eff0903141039n501a3525k9ef49b82db6aa6a9@mail.gmail.com> Message-ID: Hi Mike, I will try a small Rails POC next. One thing that I did not is that my application is receiving a GET request from FB. In reading the documentation, I was under the impression that FB would POST any/all requests to your FBML application. Perhaps this has something to do with it? If I configure my routes and only expose the default facebook controller route via POST, the router fails to match the request sent from FB when viewing my application at apps.facebook.com/kg-demo. I'll try a rails demo as well this afternoon. Here is the list of keys being sent with the request from FB ( I removed my friend ID's for their sake!): merb : worker (port 4000) ~ Params: {"format"=>nil, > "fb_sig_time"=>"1237044844.5038", > "fb_sig"=>"1cd09f74f68f5dff1729b2a1d8859406", > "fb_sig_app_id"=>"56615211793", "fb_sig_in_new_facebook"=>"1", > "action"=>"index", "fb_sig_locale"=>"en_US", "id"=>nil, > "fb_sig_session_key"=>"2.hT2Qz4cJt1tpmZXMI_lU0Q__.86400.1237132800-673124808", > "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", > "controller"=>"facebook", "fb_sig_request_method"=>"get", > "fb_sig_expires"=>"1237132800", "fb_sig_added"=>"1", > "fb_sig_friends"=>"1,2,3...", > "fb_sig_api_key"=>"b5aa1d6f4bc5800270033c3d6dccef54", > "fb_sig_user"=>"673124808", "fb_sig_profile_update_time"=>"1216646482"} > > Using the app's secret key of "9c12752f662186bd561f1255a9bcb4c7" I end up with a different hash value than the fb_sig sent from FB, causing the signature check to fail. Thanks again for everyone's help, Kris On Sun, Mar 15, 2009 at 9:32 AM, Mike Mangino wrote: > What parameters are you getting? I wonder if a parameter is being silently > eaten in your environment. > Have you tried the same thing with a simple Rails application? > > Mike > > On Mar 14, 2009, at 3:22 PM, Kristofer Goss wrote: > > Hi Bosco, thanks for replying. I do tunnel from my external server (port > 8888) to my local merb instance running on port 4000. However, does the > server URL factor in at all in terms of the signature verification? From > what I understand, the algorithm only needs to collect all "fb_sig_" > prefixed POST/GET params, sort by key, then append the app's secret key into > the string before running through the MD5 hash algorithm. From what I > understand, the host information should not factor in to this. This one is > driving me nuts given I can't get even the basics up and running. > > Thanks again, > > Kris > > On Sat, Mar 14, 2009 at 1:39 PM, Bosco So wrote: > >> This is a long shot but I had a signature verification error in an >> OpenSocial app. During development, I setup a tunnel to my dev machine from >> an external server (i.e., http://externalhost:3000). The OpenSocial >> container calculated my signature based on the http://externalhost:3000URL (plus all the usual OpenSocial params) while my code calculated my sig >> based on this URL - http://externalhost (sans port number). >> >> For some strange reason, my request object dropped the port number and >> thus calculated the signature differently. >> >> Perhaps something similar is happening to you? >> >> -- Bosco, SF Ruby Meetup organizer >> >> >> >> On Sat, Mar 14, 2009 at 8:45 AM, Kristofer Goss wrote: >> >>> Hi, I'm stuck with signature verification errors for a super simple >>> Merb+Facebooker app. I'm still unable to make the facebooker MD5 hash match >>> what FB is sending. As a sanity check, I implemented the verification >>> myself and confirmed that the value I'm generating is identical to the >>> Facebooker asserted value. I'm at a loss of what the issue might be as I've >>> been pulling my hair out over the last two days trying to get >>> :set_facebook_session filter to work. >>> >>> To make matters worse, I can authenticate with FB Connect on the same >>> site. If anyone knows of ways to debug or simplify further, I'd really >>> appreciate any suggestions. This is with a clean merb app with a single >>> controller/view as well as a newly created FB app. I'm happy to post code >>> if that would help. >> >> >> > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brandon at opensoul.org Sun Mar 15 11:42:50 2009 From: brandon at opensoul.org (Brandon Keepers) Date: Sun, 15 Mar 2009 10:42:50 -0500 Subject: [Facebooker-talk] The 2.3 branch and Rails Edge failing In-Reply-To: <2ED3E0F2-C937-49EB-AADA-13FA7CC8A549@elevatedrails.com> References: <2ED3E0F2-C937-49EB-AADA-13FA7CC8A549@elevatedrails.com> Message-ID: <1B2E135D-2732-477D-9EC4-AAA472E72ADF@opensoul.org> On Mar 15, 2009, at 8:34 AM, Mike Mangino wrote: > > I have a proposal for how to work on this, although it will take some > work. > > How does everyone feel about splitting Facebooker into several parts. > > 1) Facebooker-core, this includes just the REST API and nothing > framework specific > 2) Facebooker-Rails, includes the helpers and rails publisher code > > That lets us have different plugins for 2.3 and 2.2. It would also > allow other environments to make better use of the facebooker code > without all of the rails related baggage. I wonder if compatibility will be less of an issue going forward with Rails 3 providing a stable extension API. I've already found with the Rails 2.3 branch that I'm able to remove a lot of monkey patches thanks to Rack. That obviously doesn't help us with compatibility of Rails < 2.3 though, so I'm not sure that it helps us much now. Thoughts? Brandon From brandon at opensoul.org Sun Mar 15 11:46:48 2009 From: brandon at opensoul.org (Brandon Keepers) Date: Sun, 15 Mar 2009 10:46:48 -0500 Subject: [Facebooker-talk] The 2.3 branch and Rails Edge failing In-Reply-To: References: Message-ID: <7F2B8D03-E484-41E1-92AF-221F17FD9517@opensoul.org> Dave, I've rebooted my Rails 2.3 branch. I had a couple sloppy commits and moved a bunch of stuff around that wasn't related to Rails 2.3 compatibility, so I deleted the branch and started over. Check it out and let me know if you have any issues. All the tests pass, and I have a Rails 2.3 app that is using this branch. I haven't noticed any issues yet. You'll need to delete the branch from your existing clone to get the new one. $ git branch -D origin/rails-2.3 $ git branch -D rails-2.3 $ git fetch origin $ git checkout -b rails-2.3 origin/rails-2.3 Brandon On Mar 13, 2009, at 7:43 PM, Dave Myron wrote: > I found Brandon's 2.3 branch for Facebooker and thought I'd give > that a try to get around the problems I ran into starting script/ > server with Rails Edge. Unfortunately, no go. > > The error I get on start up is: > >> /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:440:in `load_missing_constant': >> uninitialized constant ActionController::AbstractRequest (NameError) >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:80:in `const_missing' >> from /Users/user/Sites/iwr2/vendor/plugins/facebooker/lib/ >> facebooker/rails/facebook_url_rewriting.rb:2 >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `gem_original_require' >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:521:in `new_constants_in' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/plugins/facebooker/ >> rails/../init.rb:13 >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `gem_original_require' >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:521:in `new_constants_in' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/plugins/facebooker/rails/ >> init.rb:1:in `evaluate_init_rb' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin.rb:146:in `evaluate_init_rb' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin.rb:142:in `evaluate_init_rb' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin.rb:48:in `load' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin/loader.rb:38:in `load_plugins' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin/loader.rb:37:in `each' >> from ./script/../config/../vendor/rails/railties/lib/rails/ >> plugin/loader.rb:37:in `load_plugins' >> from ./script/../config/../vendor/rails/railties/lib/ >> initializer.rb:348:in `load_plugins' >> from ./script/../config/../vendor/rails/railties/lib/ >> initializer.rb:163:in `process' >> from ./script/../config/../vendor/rails/railties/lib/ >> initializer.rb:113:in `send' >> from ./script/../config/../vendor/rails/railties/lib/ >> initializer.rb:113:in `run' >> from /Users/user/Sites/iwr2/config/environment.rb:9 >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `gem_original_require' >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:521:in `new_constants_in' >> from /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/ >> active_support/dependencies.rb:156:in `require' >> from /Users/user/Sites/iwr2/vendor/rails/railties/lib/ >> commands/server.rb:84 >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `gem_original_require' >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:31:in `require' >> from script/server:3 > > Brandon (or others), is this a known issue? > > Thanks, > Dave > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Sun Mar 15 12:17:01 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Sun, 15 Mar 2009 12:17:01 -0400 Subject: [Facebooker-talk] The 2.3 branch and Rails Edge failing In-Reply-To: <1B2E135D-2732-477D-9EC4-AAA472E72ADF@opensoul.org> References: <2ED3E0F2-C937-49EB-AADA-13FA7CC8A549@elevatedrails.com> <1B2E135D-2732-477D-9EC4-AAA472E72ADF@opensoul.org> Message-ID: <29CB8F4A-1A14-4721-8B90-8A7030FB2AF7@elevatedrails.com> I think that would be great. We could also have a rails-2.2 plugin that includes those monkey patches. That way, we can keep the current code clean but still maintain compatibility. Mike On Mar 15, 2009, at 11:42 AM, Brandon Keepers wrote: > > > On Mar 15, 2009, at 8:34 AM, Mike Mangino wrote: > >> >> I have a proposal for how to work on this, although it will take some >> work. >> >> How does everyone feel about splitting Facebooker into several parts. >> >> 1) Facebooker-core, this includes just the REST API and nothing >> framework specific >> 2) Facebooker-Rails, includes the helpers and rails publisher code >> >> That lets us have different plugins for 2.3 and 2.2. It would also >> allow other environments to make better use of the facebooker code >> without all of the rails related baggage. > > I wonder if compatibility will be less of an issue going forward with > Rails 3 providing a stable extension API. I've already found with the > Rails 2.3 branch that I'm able to remove a lot of monkey patches > thanks to Rack. That obviously doesn't help us with compatibility of > Rails < 2.3 though, so I'm not sure that it helps us much now. > > Thoughts? > > Brandon > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google > Groups "facebooker" group. > To post to this group, send email to facebooker at googlegroups.com > To unsubscribe from this group, send email to facebooker+unsubscribe at googlegroups.com > For more options, visit this group at http://groups.google.com/group/facebooker?hl=en > -~----------~----~----~----~------~----~------~--~--- > -- Mike Mangino http://www.elevatedrails.com From va.orlando at gmail.com Sun Mar 15 20:58:07 2009 From: va.orlando at gmail.com (Vincent Orlando) Date: Sun, 15 Mar 2009 20:58:07 -0400 Subject: [Facebooker-talk] Getting Data out of Facebook Message-ID: Gents, I have been working through the examples in Mike Mangino's book and am stuck. I am trying to get hometown and other information by using the code from the example... u=User.for(xxx) Facebooker::Session.current=u.facebook_session u.hometown #=> nil I understand that there may have been a change in the way Facebook authorizes that data. I have this data currently associated with my facebook account and have authorized applications to share it. Still it doesn't seem to be working, any thoughts?? Thanks Vince -- Vincent Orlando -------------- next part -------------- An HTML attachment was scrubbed... URL: From krsgoss at gmail.com Mon Mar 16 09:25:59 2009 From: krsgoss at gmail.com (Kristofer Goss) Date: Mon, 16 Mar 2009 09:25:59 -0400 Subject: [Facebooker-talk] Stuck on IncorrectSignature In-Reply-To: References: <8d992eff0903141039n501a3525k9ef49b82db6aa6a9@mail.gmail.com> Message-ID: Okay, mystery solved. The merb_facebooker plugin was adding a request override based on the fb_sig_request_method parameter. Merb would then downcase this value since all the verbs are lowercase symbols internally. This also explains why I was not seeing POST requests to my controller as the original HTTP method was being changed. Clearing the override fixed the issue. I figured I would post the final answer here for the sake of completeness. Thanks again! On Mon, Mar 16, 2009 at 8:40 AM, Kristofer Goss wrote: > Zhao, thank you! Hashing with "GET" instead of "get" produced the correct > result. Now I just need to figure out what is altering the parameter value > or whether it's being sent incorrectly from Facebook. It seems unlikely > that Merb would just downcase a single parameter, though it seems more > unlikely that FB broke their signature verification algorithm! > > Once again, thanks so much for your help. This was driving me nuts! > > Bests, > > Kris > > > On Sun, Mar 15, 2009 at 3:55 PM, Zhao Lu wrote: > >> is fb_sig_request_method "get" or "GET"? maybe try verifying sig with >> GET. >> >> >> On Sun, Mar 15, 2009 at 7:44 AM, Kristofer Goss wrote: >> >>> Hi Mike, I will try a small Rails POC next. One thing that I did not is >>> that my application is receiving a GET request from FB. In reading the >>> documentation, I was under the impression that FB would POST any/all >>> requests to your FBML application. Perhaps this has something to do with >>> it? >>> >>> If I configure my routes and only expose the default facebook controller >>> route via POST, the router fails to match the request sent from FB when >>> viewing my application at apps.facebook.com/kg-demo. I'll try a rails >>> demo as well this afternoon. Here is the list of keys being sent with the >>> request from FB ( I removed my friend ID's for their sake!): >>> >>> merb : worker (port 4000) ~ Params: {"format"=>nil, >>>> "fb_sig_time"=>"1237044844.5038", >>>> "fb_sig"=>"1cd09f74f68f5dff1729b2a1d8859406", >>>> "fb_sig_app_id"=>"56615211793", "fb_sig_in_new_facebook"=>"1", >>>> "action"=>"index", "fb_sig_locale"=>"en_US", "id"=>nil, >>>> "fb_sig_session_key"=>"2.hT2Qz4cJt1tpmZXMI_lU0Q__.86400.1237132800-673124808", >>>> "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", >>>> "controller"=>"facebook", "fb_sig_request_method"=>"get", >>>> "fb_sig_expires"=>"1237132800", "fb_sig_added"=>"1", >>>> "fb_sig_friends"=>"1,2,3...", >>>> "fb_sig_api_key"=>"b5aa1d6f4bc5800270033c3d6dccef54", >>>> "fb_sig_user"=>"673124808", "fb_sig_profile_update_time"=>"1216646482"} >>>> >>>> >>> Using the app's secret key of "9c12752f662186bd561f1255a9bcb4c7" I end up >>> with a different hash value than the fb_sig sent from FB, causing the >>> signature check to fail. >>> >>> Thanks again for everyone's help, >>> >>> Kris >>> >>> On Sun, Mar 15, 2009 at 9:32 AM, Mike Mangino < >>> mmangino at elevatedrails.com> wrote: >>> >>>> What parameters are you getting? I wonder if a parameter is being >>>> silently eaten in your environment. >>>> Have you tried the same thing with a simple Rails application? >>>> >>>> Mike >>>> >>>> On Mar 14, 2009, at 3:22 PM, Kristofer Goss wrote: >>>> >>>> Hi Bosco, thanks for replying. I do tunnel from my external server >>>> (port 8888) to my local merb instance running on port 4000. However, does >>>> the server URL factor in at all in terms of the signature verification? >>>> From what I understand, the algorithm only needs to collect all "fb_sig_" >>>> prefixed POST/GET params, sort by key, then append the app's secret key into >>>> the string before running through the MD5 hash algorithm. From what I >>>> understand, the host information should not factor in to this. This one is >>>> driving me nuts given I can't get even the basics up and running. >>>> >>>> Thanks again, >>>> >>>> Kris >>>> >>>> On Sat, Mar 14, 2009 at 1:39 PM, Bosco So wrote: >>>> >>>>> This is a long shot but I had a signature verification error in an >>>>> OpenSocial app. During development, I setup a tunnel to my dev machine from >>>>> an external server (i.e., http://externalhost:3000). The OpenSocial >>>>> container calculated my signature based on the >>>>> http://externalhost:3000 URL (plus all the usual OpenSocial params) >>>>> while my code calculated my sig based on this URL - >>>>> http://externalhost (sans port number). >>>>> >>>>> For some strange reason, my request object dropped the port number and >>>>> thus calculated the signature differently. >>>>> >>>>> Perhaps something similar is happening to you? >>>>> >>>>> -- Bosco, SF Ruby Meetup organizer >>>>> >>>>> >>>>> >>>>> On Sat, Mar 14, 2009 at 8:45 AM, Kristofer Goss wrote: >>>>> >>>>>> Hi, I'm stuck with signature verification errors for a super simple >>>>>> Merb+Facebooker app. I'm still unable to make the facebooker MD5 hash match >>>>>> what FB is sending. As a sanity check, I implemented the verification >>>>>> myself and confirmed that the value I'm generating is identical to the >>>>>> Facebooker asserted value. I'm at a loss of what the issue might be as I've >>>>>> been pulling my hair out over the last two days trying to get >>>>>> :set_facebook_session filter to work. >>>>>> >>>>>> To make matters worse, I can authenticate with FB Connect on the same >>>>>> site. If anyone knows of ways to debug or simplify further, I'd really >>>>>> appreciate any suggestions. This is with a clean merb app with a single >>>>>> controller/view as well as a newly created FB app. I'm happy to post code >>>>>> if that would help. >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>>> >>>> -- >>>> Mike Mangino >>>> http://www.elevatedrails.com >>>> >>>> >>>> >>>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> >> >> >> -- >> Zhao >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Mon Mar 16 09:47:33 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Mon, 16 Mar 2009 09:47:33 -0400 Subject: [Facebooker-talk] Getting Data out of Facebook In-Reply-To: References: Message-ID: What does your hometown method look like? What happens if you call u.facebook_session.user.hometown_location? I'm ccing the google group since we're moving this mailing list over there. Mike On Mar 15, 2009, at 8:58 PM, Vincent Orlando wrote: > Gents, > > I have been working through the examples in Mike Mangino's book and > am stuck. I am trying to get hometown and other information by using > the code from the example... > > u=User.for(xxx) > Facebooker::Session.current=u.facebook_session > u.hometown #=> nil > > I understand that there may have been a change in the way Facebook > authorizes that data. I have this data currently associated with my > facebook account and have authorized applications to share it. Still > it doesn't seem to be working, any thoughts?? > > Thanks > > Vince > -- > Vincent Orlando > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From herdrick at gmail.com Fri Mar 20 21:04:28 2009 From: herdrick at gmail.com (Ethan Herdrick) Date: Fri, 20 Mar 2009 18:04:28 -0700 Subject: [Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)" Message-ID: <91f48dbf0903201804t125a22ccs1ff13d014682fabb@mail.gmail.com> Here's what I get when I try to use the console with the current facebooker: First I make a simple app: rails foo -d mysql cd foo script/plugin install git://github.com/mmangino/facebooker.git Then I go to config/environment.rb and change the rails version to '2.2.2' Then I run the console: script/console and I get: [17:56][herdrick:~/rails/foo]$ script/console Loading development environment (Rails 2.2.2) Curb not found. Using Net::HTTP. /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in `load_without_new_constant_marking': no such file to load -- application.rb (MissingSourceFile) from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in `load_file' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in `load_file' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in `require_or_load' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in `depend_on' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in `require_dependency' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19 from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules' from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each' from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules' from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup' from /opt/local/lib/ruby/1.8/irb.rb:54:in `start' from /opt/local/bin/irb:13 What am I doing wrong? Thanks in advance! From philip at pjkh.com Fri Mar 20 23:12:25 2009 From: philip at pjkh.com (Philip Hallstrom) Date: Fri, 20 Mar 2009 20:12:25 -0700 Subject: [Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)" In-Reply-To: <91f48dbf0903201804t125a22ccs1ff13d014682fabb@mail.gmail.com> References: <91f48dbf0903201804t125a22ccs1ff13d014682fabb@mail.gmail.com> Message-ID: On Mar 20, 2009, at 6:04 PM, Ethan Herdrick wrote: > Here's what I get when I try to use the console with the current > facebooker: > > > First I make a simple app: > rails foo -d mysql > cd foo > script/plugin install git://github.com/mmangino/facebooker.git > > Then I go to config/environment.rb and change the rails version to > '2.2.2' Then I run the console: > > script/console > > and I get: > > [17:56][herdrick:~/rails/foo]$ script/console > Loading development environment (Rails 2.2.2) > Curb not found. Using Net::HTTP. Make sure you have the curl-dev package installed and then install the curb ruby gem. > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:382:in > `load_without_new_constant_marking': no such file to load -- > application.rb (MissingSourceFile) > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:382:in > `load_file' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:521:in > `new_constants_in' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:381:in > `load_file' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:256:in > `require_or_load' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:221:in > `depend_on' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:133:in > `require_dependency' > from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ > console_with_helpers.rb:19 > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 31:in > `gem_original_require' > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 31:in > `require' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:153:in > `require' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:521:in > `new_constants_in' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:153:in > `require' > from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules' > from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each' > from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules' > from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup' > from /opt/local/lib/ruby/1.8/irb.rb:54:in `start' > from /opt/local/bin/irb:13 > > > What am I doing wrong? > > Thanks in advance! > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From ned at theinterned.net Sat Mar 21 00:05:46 2009 From: ned at theinterned.net (Ned Schwartz) Date: Sat, 21 Mar 2009 00:05:46 -0400 Subject: [Facebooker-talk] No method error Message-ID: Hello all, I just started using Facebooker. It looks pretty awesome. However I seem to be having a strange problem: everything is working fine on my dev box, but when I deploy to my server (Dreamhost, rails 2.2.2, passenger 2.0.5) I get the following error: http://gist.github.com/82720 NoMethodError (You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.+): /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:93:in `fb_cookie_prefix' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:97:in `fb_cookie_names' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:97:in `select' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:97:in `fb_cookie_names' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:103:in `secure_with_cookies!' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:25:in `create_facebook_session' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:33:in `set_facebook_session' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:178:in `send ( ... ) I don't really know where to start with this, so any help would be appreciated! Ned -------------- next part -------------- An HTML attachment was scrubbed... URL: From ned at theinterned.net Sat Mar 21 00:57:43 2009 From: ned at theinterned.net (Ned Schwartz) Date: Sat, 21 Mar 2009 00:57:43 -0400 Subject: [Facebooker-talk] No method error In-Reply-To: References: Message-ID: Sorry, I figured it out -- I had neglected to copy my api key etc to my production settings in config/facebooker.yml. Ned On Sat, Mar 21, 2009 at 12:05 AM, Ned Schwartz wrote: > Hello all, > I just started using Facebooker. It looks pretty awesome. However I seem to > be having a strange problem: everything is working fine on my dev box, but > when I deploy to my server (Dreamhost, rails 2.2.2, passenger 2.0.5) I get > the following error: > > http://gist.github.com/82720 > > NoMethodError (You have a nil object when you didn't expect it! > You might have expected an instance of Array. > The error occurred while evaluating nil.+): > /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:93:in > `fb_cookie_prefix' > /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:97:in > `fb_cookie_names' > /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:97:in > `select' > /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:97:in > `fb_cookie_names' > /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:103:in > `secure_with_cookies!' > /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:25:in > `create_facebook_session' > /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:33:in > `set_facebook_session' > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:178:in > `send > ( ... ) > > I don't really know where to start with this, so any help would be > appreciated! > > Ned > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Sat Mar 21 01:22:52 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Sat, 21 Mar 2009 01:22:52 -0400 Subject: [Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)" In-Reply-To: References: <91f48dbf0903201804t125a22ccs1ff13d014682fabb@mail.gmail.com> Message-ID: You shouldn't need this. It looks like this is a rails problem. What version of Rails are you using to build the app? Also, I'm moving this to the google group which is the preferred mailing list. Mike On Mar 20, 2009, at 11:12 PM, Philip Hallstrom wrote: > > On Mar 20, 2009, at 6:04 PM, Ethan Herdrick wrote: > >> Here's what I get when I try to use the console with the current >> facebooker: >> >> >> First I make a simple app: >> rails foo -d mysql >> cd foo >> script/plugin install git://github.com/mmangino/facebooker.git >> >> Then I go to config/environment.rb and change the rails version to >> '2.2.2' Then I run the console: >> >> script/console >> >> and I get: >> >> [17:56][herdrick:~/rails/foo]$ script/console >> Loading development environment (Rails 2.2.2) >> Curb not found. Using Net::HTTP. > > Make sure you have the curl-dev package installed and then install > the curb ruby gem. > > >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:382:in >> `load_without_new_constant_marking': no such file to load -- >> application.rb (MissingSourceFile) >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:382:in >> `load_file' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:521:in >> `new_constants_in' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:381:in >> `load_file' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:256:in >> `require_or_load' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:221:in >> `depend_on' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:133:in >> `require_dependency' >> from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ >> console_with_helpers.rb:19 >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >> 31:in >> `gem_original_require' >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >> 31:in >> `require' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:153:in >> `require' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:521:in >> `new_constants_in' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:153:in >> `require' >> from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules' >> from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each' >> from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules' >> from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup' >> from /opt/local/lib/ruby/1.8/irb.rb:54:in `start' >> from /opt/local/bin/irb:13 >> >> >> What am I doing wrong? >> >> Thanks in advance! >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From zhao.lu.us at gmail.com Sat Mar 21 11:52:49 2009 From: zhao.lu.us at gmail.com (Zhao Lu) Date: Sat, 21 Mar 2009 08:52:49 -0700 Subject: [Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)" In-Reply-To: <91f48dbf0903201804t125a22ccs1ff13d014682fabb@mail.gmail.com> References: <91f48dbf0903201804t125a22ccs1ff13d014682fabb@mail.gmail.com> Message-ID: application.rb was renamed to application_controller.rb. http://afreshcup.com/2008/11/17/rails-2x-the-death-of-applicationrb/ maybe that's why you couldn't find it? what do you get if you do rails -v? On Fri, Mar 20, 2009 at 6:04 PM, Ethan Herdrick wrote: > Here's what I get when I try to use the console with the current > facebooker: > > > First I make a simple app: > rails foo -d mysql > cd foo > script/plugin install git://github.com/mmangino/facebooker.git > > Then I go to config/environment.rb and change the rails version to > '2.2.2' Then I run the console: > > script/console > > and I get: > > [17:56][herdrick:~/rails/foo]$ script/console > Loading development environment (Rails 2.2.2) > Curb not found. Using Net::HTTP. > > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in > `load_without_new_constant_marking': no such file to load -- > application.rb (MissingSourceFile) > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in > `load_file' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in > `new_constants_in' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in > `load_file' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in > `require_or_load' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in > `depend_on' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in > `require_dependency' > from > /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19 > from > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > from > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in > `require' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in > `new_constants_in' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in > `require' > from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules' > from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each' > from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules' > from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup' > from /opt/local/lib/ruby/1.8/irb.rb:54:in `start' > from /opt/local/bin/irb:13 > > > What am I doing wrong? > > Thanks in advance! > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -- Zhao -------------- next part -------------- An HTML attachment was scrubbed... URL: From herdrick at gmail.com Sat Mar 21 12:46:08 2009 From: herdrick at gmail.com (Ethan Herdrick) Date: Sat, 21 Mar 2009 09:46:08 -0700 Subject: [Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)" In-Reply-To: References: <91f48dbf0903201804t125a22ccs1ff13d014682fabb@mail.gmail.com> Message-ID: <91f48dbf0903210946meb000cdvf55c245ce0d04c23@mail.gmail.com> In environment.rb I've set RAILS_GEM_VERSION to '2.2.2' . But I initially created this app with "rails foo -d mysql" and rails -v gives me: "Rails 2.3.2" . Is that the problem? Here's what I get when I do "gem list -d rails" : *** LOCAL GEMS *** rails (2.3.2, 2.2.2) Author: David Heinemeier Hansson Rubyforge: http://rubyforge.org/projects/rails Homepage: http://www.rubyonrails.org Installed at (2.3.2): /opt/local/lib/ruby/gems/1.8 (2.2.2): /opt/local/lib/ruby/gems/1.8 So if this is the problem, how do I specify the version of rails to use at app creation time? When I tried specifying the path to ruby with -r I had problems, but that could be because I specified the full path to the interpreter, like this: rails test4 -r /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/bin/rails -d mysql Of course if this is the problem then I've asked this on the wrong forum. Thank you for all the quick responses! On Fri, Mar 20, 2009 at 10:22 PM, Mike Mangino wrote: > You shouldn't need this. It looks like this is a rails problem. What version > of Rails are you using to build the app? > > Also, I'm moving this to the google group which is the preferred mailing > list. > > Mike > > On Mar 20, 2009, at 11:12 PM, Philip Hallstrom wrote: > >> >> On Mar 20, 2009, at 6:04 PM, Ethan Herdrick wrote: >> >>> Here's what I get when I try to use the console with the current >>> facebooker: >>> >>> >>> First I make a simple app: >>> rails foo -d mysql >>> cd foo >>> script/plugin install git://github.com/mmangino/facebooker.git >>> >>> Then I go to config/environment.rb and change the rails version to >>> '2.2.2' ?Then I run the console: >>> >>> script/console >>> >>> and I get: >>> >>> [17:56][herdrick:~/rails/foo]$ script/console >>> Loading development environment (Rails 2.2.2) >>> Curb not found. Using Net::HTTP. >> >> Make sure you have the curl-dev package installed and then install the >> curb ruby gem. >> >> >>> >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in >>> `load_without_new_constant_marking': no such file to load -- >>> application.rb (MissingSourceFile) >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in >>> `load_file' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in >>> `new_constants_in' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in >>> `load_file' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in >>> `require_or_load' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in >>> `depend_on' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in >>> `require_dependency' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19 >>> ? ? ? ?from >>> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >>> `gem_original_require' >>> ? ? ? ?from >>> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >>> `require' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in >>> `require' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in >>> `new_constants_in' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in >>> `require' >>> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules' >>> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each' >>> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules' >>> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup' >>> ? ? ? ?from /opt/local/lib/ruby/1.8/irb.rb:54:in `start' >>> ? ? ? ?from /opt/local/bin/irb:13 >>> >>> >>> What am I doing wrong? >>> >>> Thanks in advance! >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > From herdrick at gmail.com Sat Mar 21 13:08:29 2009 From: herdrick at gmail.com (Ethan Herdrick) Date: Sat, 21 Mar 2009 10:08:29 -0700 Subject: [Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)" In-Reply-To: References: <91f48dbf0903201804t125a22ccs1ff13d014682fabb@mail.gmail.com> Message-ID: <91f48dbf0903211008k4029b2baod952222828f1c8b3@mail.gmail.com> $ rails -v Rails 2.3.2 I think you are right; this is my problem. Please see my previous response. Thanks. On Sat, Mar 21, 2009 at 8:52 AM, Zhao Lu wrote: > application.rb was renamed to application_controller.rb. > http://afreshcup.com/2008/11/17/rails-2x-the-death-of-applicationrb/ > maybe that's why you couldn't find it? > what do you get if you do rails -v? > > On Fri, Mar 20, 2009 at 6:04 PM, Ethan Herdrick wrote: >> >> Here's what I get when I try to use the console with the current >> facebooker: >> >> >> First I make a simple app: >> rails foo -d mysql >> cd foo >> script/plugin install git://github.com/mmangino/facebooker.git >> >> Then I go to config/environment.rb and change the rails version to >> '2.2.2' ?Then I run the console: >> >> script/console >> >> and I get: >> >> [17:56][herdrick:~/rails/foo]$ script/console >> Loading development environment (Rails 2.2.2) >> Curb not found. Using Net::HTTP. >> >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in >> `load_without_new_constant_marking': no such file to load -- >> application.rb (MissingSourceFile) >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in >> `load_file' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in >> `new_constants_in' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in >> `load_file' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in >> `require_or_load' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in >> `depend_on' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in >> `require_dependency' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19 >> ? ? ? ?from >> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >> `gem_original_require' >> ? ? ? ?from >> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >> `require' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in >> `require' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in >> `new_constants_in' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in >> `require' >> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules' >> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each' >> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules' >> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup' >> ? ? ? ?from /opt/local/lib/ruby/1.8/irb.rb:54:in `start' >> ? ? ? ?from /opt/local/bin/irb:13 >> >> >> What am I doing wrong? >> >> Thanks in advance! >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > -- > Zhao > From zhao.lu.us at gmail.com Sat Mar 21 13:10:41 2009 From: zhao.lu.us at gmail.com (Zhao Lu) Date: Sat, 21 Mar 2009 10:10:41 -0700 Subject: [Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)" In-Reply-To: <91f48dbf0903210946meb000cdvf55c245ce0d04c23@mail.gmail.com> References: <91f48dbf0903201804t125a22ccs1ff13d014682fabb@mail.gmail.com> <91f48dbf0903210946meb000cdvf55c245ce0d04c23@mail.gmail.com> Message-ID: that was the problem. rails 2.3.2 creates application_controller.rb when rails 2.2.2 expects application.rb you'll want to do this: /PATH_TO_RAILS_2.2.2/rails my_app (forcing creating app with rails 2.2.2) you'll want to find the executable of rails 2.2.2. it's probably something like this: zlu-macbook:~ zlu$ rails -v Rails 2.1.2 zlu-macbook:~ zlu$ which rails /usr/local/bin/rails zlu-macbook:~ zlu$ On Sat, Mar 21, 2009 at 9:46 AM, Ethan Herdrick wrote: > > In environment.rb I've set RAILS_GEM_VERSION to '2.2.2' . But I > initially created this app with "rails foo -d mysql" and rails -v > gives me: "Rails 2.3.2" . Is that the problem? Here's what I get > when I do "gem list -d rails" : > > *** LOCAL GEMS *** > > rails (2.3.2, 2.2.2) > Author: David Heinemeier Hansson > Rubyforge: http://rubyforge.org/projects/rails > Homepage: http://www.rubyonrails.org > Installed at (2.3.2): /opt/local/lib/ruby/gems/1.8 > (2.2.2): /opt/local/lib/ruby/gems/1.8 > > > So if this is the problem, how do I specify the version of rails to > use at app creation time? When I tried specifying the path to ruby > with -r I had problems, but that could be because I specified the full > path to the interpreter, like this: > > rails test4 -r /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/bin/rails > -d mysql > > Of course if this is the problem then I've asked this on the wrong forum. > > Thank you for all the quick responses! > > > > On Fri, Mar 20, 2009 at 10:22 PM, Mike Mangino > wrote: > > You shouldn't need this. It looks like this is a rails problem. What > version > > of Rails are you using to build the app? > > > > Also, I'm moving this to the google group which is the preferred mailing > > list. > > > > Mike > > > > On Mar 20, 2009, at 11:12 PM, Philip Hallstrom wrote: > > > >> > >> On Mar 20, 2009, at 6:04 PM, Ethan Herdrick wrote: > >> > >>> Here's what I get when I try to use the console with the current > >>> facebooker: > >>> > >>> > >>> First I make a simple app: > >>> rails foo -d mysql > >>> cd foo > >>> script/plugin install git://github.com/mmangino/facebooker.git > >>> > >>> Then I go to config/environment.rb and change the rails version to > >>> '2.2.2' Then I run the console: > >>> > >>> script/console > >>> > >>> and I get: > >>> > >>> [17:56][herdrick:~/rails/foo]$ script/console > >>> Loading development environment (Rails 2.2.2) > >>> Curb not found. Using Net::HTTP. > >> > >> Make sure you have the curl-dev package installed and then install the > >> curb ruby gem. > >> > >> > >>> > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in > >>> `load_without_new_constant_marking': no such file to load -- > >>> application.rb (MissingSourceFile) > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in > >>> `load_file' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in > >>> `new_constants_in' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in > >>> `load_file' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in > >>> `require_or_load' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in > >>> `depend_on' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in > >>> `require_dependency' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19 > >>> from > >>> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > >>> `gem_original_require' > >>> from > >>> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > >>> `require' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in > >>> `require' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in > >>> `new_constants_in' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in > >>> `require' > >>> from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules' > >>> from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each' > >>> from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules' > >>> from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup' > >>> from /opt/local/lib/ruby/1.8/irb.rb:54:in `start' > >>> from /opt/local/bin/irb:13 > >>> > >>> > >>> What am I doing wrong? > >>> > >>> Thanks in advance! > >>> _______________________________________________ > >>> Facebooker-talk mailing list > >>> Facebooker-talk at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/facebooker-talk > >> > >> _______________________________________________ > >> Facebooker-talk mailing list > >> Facebooker-talk at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > -- > > Mike Mangino > > http://www.elevatedrails.com > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups > "facebooker" group. > To post to this group, send email to facebooker at googlegroups.com > To unsubscribe from this group, send email to > facebooker+unsubscribe at googlegroups.com > For more options, visit this group at > http://groups.google.com/group/facebooker?hl=en > -~----------~----~----~----~------~----~------~--~--- > > -- Zhao -------------- next part -------------- An HTML attachment was scrubbed... URL: From prateek at muziboo.com Mon Mar 23 23:02:23 2009 From: prateek at muziboo.com (Prateek Dayal) Date: Tue, 24 Mar 2009 08:32:23 +0530 Subject: [Facebooker-talk] Submitting Patches for Facebook Connect In-Reply-To: References: Message-ID: Hi I am currently using facebooker to do some facebook connect. I found out that these functions are currently missing from facebooker connect.registerUsers connect.unregisterUsers I have modified user.rb and parser.rb to get these function going. I have verified that it works and would love to contribute stuff back. However I can't figure out how to go about it. Any help would be appreciated. Should I send patches on the list? Regards -- Prateek Dayal Co-Founder Muziboo.com Personal Blog: http://www.prateekdayal.net/blog Muziboo Dev Blog: http://devblog.muziboo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From prateek at muziboo.com Mon Mar 23 23:41:08 2009 From: prateek at muziboo.com (Prateek Dayal) Date: Tue, 24 Mar 2009 09:11:08 +0530 Subject: [Facebooker-talk] Submitting Patches for Facebook Connect In-Reply-To: References: Message-ID: Hi vandgrift Thanks for your email. Facebooker::User.register() is used for registering user(s) to facebook. I am sorry about the error in my email. I had pasted the wrong list. The functions I have written are connect.getUnconnectedFriendsCount This method returns the number of friends of the current user who have accounts on your site, but have not yet connected their accounts. connect.unregisterUsersThis method allows a site to unregister a previously registered account (using connect.registerUsers). These two are missing from facebooker. I have written the code for these and tested it. It its useful to others too, I would like to submit a patch. Regards Prateek On Tue, Mar 24, 2009 at 9:01 AM, b. vandgrift wrote: > have a look at Facebooker:User.register(). that's probably what > you're looking for. > > 2009/3/23 Prateek Dayal : > > Hi > > > > I am currently using facebooker to do some facebook connect. I found out > > that these functions are currently missing from facebooker > > > > connect.registerUsers > > connect.unregisterUsers > > > > I have modified user.rb and parser.rb to get these function going. I have > > verified that it works and would love to contribute stuff back. However I > > can't figure out how to go about it. Any help would be appreciated. > Should I > > send patches on the list? > > > > Regards > > > > -- > > Prateek Dayal > > Co-Founder Muziboo.com > > > > Personal Blog: http://www.prateekdayal.net/blog > > Muziboo Dev Blog: http://devblog.muziboo.com > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > > > -- > b.vandgrift (@gmail.com) > http://www.flowmingle.com/ > http://www.neovore.com/ > > "talent hits a target no one else can hit; genius hits a target no one > else can see." -- schopenhauer > -- Prateek Dayal Co-Founder Muziboo.com Personal Blog: http://www.prateekdayal.net/blog Muziboo Dev Blog: http://devblog.muziboo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Tue Mar 24 08:39:39 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 24 Mar 2009 08:39:39 -0400 Subject: [Facebooker-talk] Submitting Patches for Facebook Connect In-Reply-To: References: Message-ID: <1CBD66A4-27BA-4E9A-88E9-80BDC06F1551@elevatedrails.com> Have you forked the repo on github? If not, just fork my repository and commit your changes. After doing that, send me a pull request and I can pull the changes in. Thanks for helping out! Mike On Mar 23, 2009, at 11:41 PM, Prateek Dayal wrote: > Hi vandgrift > > Thanks for your email. Facebooker::User.register() is used for > registering user(s) to facebook. I am sorry about the error in my > email. I had pasted the wrong list. The functions I have written are > > connect.getUnconnectedFriendsCount > This method returns the number of friends of the current user who > have accounts on your site, but have not yet connected their accounts. > connect.unregisterUsers > This method allows a site to unregister a previously registered > account (using connect.registerUsers). > > These two are missing from facebooker. I have written the code for > these and tested it. It its useful to others too, I would like to > submit a patch. > > Regards > Prateek > > > > On Tue, Mar 24, 2009 at 9:01 AM, b. vandgrift > wrote: > have a look at Facebooker:User.register(). that's probably what > you're looking for. > > 2009/3/23 Prateek Dayal : > > Hi > > > > I am currently using facebooker to do some facebook connect. I > found out > > that these functions are currently missing from facebooker > > > > connect.registerUsers > > connect.unregisterUsers > > > > I have modified user.rb and parser.rb to get these function going. > I have > > verified that it works and would love to contribute stuff back. > However I > > can't figure out how to go about it. Any help would be > appreciated. Should I > > send patches on the list? > > > > Regards > > > > -- > > Prateek Dayal > > Co-Founder Muziboo.com > > > > Personal Blog: http://www.prateekdayal.net/blog > > Muziboo Dev Blog: http://devblog.muziboo.com > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > > > -- > b.vandgrift (@gmail.com) > http://www.flowmingle.com/ > http://www.neovore.com/ > > "talent hits a target no one else can hit; genius hits a target no one > else can see." -- schopenhauer > > > > -- > Prateek Dayal > Co-Founder Muziboo.com > > Personal Blog: http://www.prateekdayal.net/blog > Muziboo Dev Blog: http://devblog.muziboo.com > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From prateek at muziboo.com Tue Mar 24 09:19:18 2009 From: prateek at muziboo.com (Prateek Dayal) Date: Tue, 24 Mar 2009 18:49:18 +0530 Subject: [Facebooker-talk] Submitting Patches for Facebook Connect In-Reply-To: <1CBD66A4-27BA-4E9A-88E9-80BDC06F1551@elevatedrails.com> References: <1CBD66A4-27BA-4E9A-88E9-80BDC06F1551@elevatedrails.com> Message-ID: Hi Mike I have forked the repo a couple of hours back and read the documentation. I will be commiting the changes back tonight. I have a small question. I installed the facebooker plugin using ./script/install from github and then added the whole folder to my svn. Now when I go to the facebooker folder in vendor/plugins and do a git pull, it says not a git repo. Is it because I used ./script/install to get the plugin in the first place? I can do a fresh git clone but then I will have to manually move changes. Ideally I would like to run on the changes I commit back .. more like eating your own dogfood :) Please let me know if there is something really obvious that I am missing here. I will also try to find more info on it later Regards Prateek On Tue, Mar 24, 2009 at 6:09 PM, Mike Mangino wrote: > Have you forked the repo on github? If not, just fork my repository and > commit your changes. After doing that, send me a pull request and I can pull > the changes in. > Thanks for helping out! > > Mike > > On Mar 23, 2009, at 11:41 PM, Prateek Dayal wrote: > > Hi vandgrift > > Thanks for your email. Facebooker::User.register() is used for registering > user(s) to facebook. I am sorry about the error in my email. I had pasted > the wrong list. The functions I have written are > > connect.getUnconnectedFriendsCount This > method returns the number of friends of the current user who have accounts > on your site, but have not yet connected their accounts. > connect.unregisterUsersThis > method allows a site to unregister a previously registered account (using > connect.registerUsers). > > These two are missing from facebooker. I have written the code for these > and tested it. It its useful to others too, I would like to submit a patch. > > Regards > Prateek > > > > On Tue, Mar 24, 2009 at 9:01 AM, b. vandgrift > wrote: > >> have a look at Facebooker:User.register(). that's probably what >> you're looking for. >> >> 2009/3/23 Prateek Dayal : >> > Hi >> > >> > I am currently using facebooker to do some facebook connect. I found out >> > that these functions are currently missing from facebooker >> > >> > connect.registerUsers >> > connect.unregisterUsers >> > >> > I have modified user.rb and parser.rb to get these function going. I >> have >> > verified that it works and would love to contribute stuff back. However >> I >> > can't figure out how to go about it. Any help would be appreciated. >> Should I >> > send patches on the list? >> > >> > Regards >> > >> > -- >> > Prateek Dayal >> > Co-Founder Muziboo.com >> > >> > Personal Blog: http://www.prateekdayal.net/blog >> > Muziboo Dev Blog: http://devblog.muziboo.com >> > >> > _______________________________________________ >> > Facebooker-talk mailing list >> > Facebooker-talk at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/facebooker-talk >> > >> > >> >> >> >> -- >> b.vandgrift (@gmail.com) >> http://www.flowmingle.com/ >> http://www.neovore.com/ >> >> "talent hits a target no one else can hit; genius hits a target no one >> else can see." -- schopenhauer >> > > > > -- > Prateek Dayal > Co-Founder Muziboo.com > > Personal Blog: http://www.prateekdayal.net/blog > Muziboo Dev Blog: http://devblog.muziboo.com > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -- Prateek Dayal Co-Founder Muziboo.com Personal Blog: http://www.prateekdayal.net/blog Muziboo Dev Blog: http://devblog.muziboo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: