Thanks Dave for the update to the plugin for bebo support. I have been looking at both facebook and decided to see how things went in bebo. After getting a little going with facebooker, I updated the plugin to your branch code, and re-checked. All was good. I then setup a bebo application and pointed it at the same rails application. The simple fbml in the profile worked. However, I have found that the invitations page (as taken from M.Mangino''s book) didn''t display any users to invite in bebo, while was fine in facebook. Also, trying to access facebook_session.user.id works fine in both, but user.name, etc don''t work for me in bebo. (I''m getting reports of nil object) Am I missing something, or is it to be expected that they differ enough that it is going to permeate much of my code ? In other questions - i was going to store the value of the parameter fb_sig_network in the user db also, to avoid user id clashes (the id from the active sns, bebo or facebook or whatever ). Is there a better solution? - my generator (rails 2.02) is creating app/views/welcome/index.html.erb but the plugin wants index.fbml.erb, is there an easy way to coerce one or the other to play ball ? - is there a handy way to get the application canvas page URI from the plugin (e.g. http://apps.facebook.com/myapp or http://apps.bebo.com/myappetc) - is there a handy way to get the application about/profile page URI from the plugin. e.g. http://www.facebook.com/apps/application.php?id=xxxxxxxx or whatever the equivalent is for bebo, fb_about_url is always sending me to the facebook network Many thanks again guys for some grand coding -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080729/0f73f314/attachment-0001.html>
Comments inline. BTW: The bebo changes are in the main branch now so please switch back, I''ll put a note on that branch to let people know. On Tue, Jul 29, 2008 at 7:07 AM, darn sns <darnsns at gmail.com> wrote:> Thanks Dave for the update to the plugin for bebo support. > > I have been looking at both facebook and decided to see how things went in > bebo. > > After getting a little going with facebooker, I updated the plugin to your > branch code, and re-checked. All was good. > > I then setup a bebo application and pointed it at the same rails > application. > > The simple fbml in the profile worked. However, I have found that the > invitations page (as taken from M.Mangino''s book) didn''t display any users > to invite in bebo, while was fine in facebook. >Not sure what would be going on here. There are some differences with the invitation FBML on bebo.. Did the control render but no friends? Do you have friends on bebo? I do think that if your app is Private then it will only show developers for the app. Not sure if this will help but here is code I have in production that works in bebo and facebook. <fb:request-form action="<%= bebo_request? ? "social_network/index" : "index" %>" method="POST" invite="true" type="MeetingWave.com" content="Connect online with people you want to meet offline Arrange meetings for any purpose, anytime, anyplace. <fb:req-choice url=''<%= url_for(:controller => "facebook", :action => "index") %>'' label=''Check out MeetingWave.com!'' /> " > <fb:multi-friend-selector showborder="false" actiontext="Invite your friends to MeetingWave." exclude_ids="<%facebook_user.friends_with_this_app.map(&:id).join(",") %>" max="20" /> </fb:request-form>> > Also, trying to access facebook_session.user.id works fine in both, but > user.name, etc don''t work for me in bebo. (I''m getting reports of nil > object) >Can you send a stack trace on this? I use the user.name in my app.> > Am I missing something, or is it to be expected that they differ enough > that it is going to permeate much of my code ? >I don''t have many custom places in my code any longer... there are some differences as you can see in the above code I sent.> > > > In other questions > - i was going to store the value of the parameter fb_sig_network in the > user db also, to avoid user id clashes (the id from the active sns, bebo or > facebook or whatever ). Is there a better solution? >I use a SingleTableInheritance approach which is basically the same idea but you get first class objects for each type of user. FacebookUser and BeboUser. This cleans up the code a bit.> > - my generator (rails 2.02) is creating app/views/welcome/index.html.erb > but the plugin wants index.fbml.erb, is there an easy way to coerce one or > the other to play ball ? >I can''t think of anything off the top of my head.> > - is there a handy way to get the application canvas page URI from the > plugin (e.g. http://apps.facebook.com/myapp or http://apps.bebo.com/myappetc) >url_for("/", :canvas => true) would be one way. What do you need this for?> > - is there a handy way to get the application about/profile page URI from > the plugin. e.g. http://www.facebook.com/apps/application.php?id=xxxxxxxxor whatever the equivalent is for bebo, fb_about_url is always sending me to > the facebook network >I don''t think this is in there anywhere. Probably good to add as a patch if you up for it.> > > Many thanks again guys for some grand coding > > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080729/3fc6b389/attachment.html>
Thanks for the quick response ! On Tue, Jul 29, 2008 at 4:53 PM, David Clements <digidigo at gmail.com> wrote:> Comments inline. BTW: The bebo changes are in the main branch now so > please switch back, I''ll put a note on that branch to let people know. >Excellent, cheers! I''ll get the updated mainline.> Not sure what would be going on here. There are some differences with the > invitation FBML on bebo.. Did the control render but no friends? >yep Do you have friends on bebo?>yep :D I do think that if your app is Private then it will only show developers> for the app. >this is potentially the issue :)> Not sure if this will help but here is code I have in production that works > in bebo and facebook. >thanks for this also, I will keep it in mind when i get back to that code. ----8<---->> Also, trying to access facebook_session.user.id works fine in both, but >> user.name, etc don''t work for me in bebo. (I''m getting reports of nil >> object) >> > > Can you send a stack trace on this? I use the user.name in my app. >Ok. I was doing a bit of cargo-cultish programming at the time. I have since left that code behind. I have just re-tested it in my re-write of the code with the above in mind (storing the session_key) and it''s fine, both direct from the controllers and from the model. The reason I saw the error is probably just that I was passing facebook_session to a model and trying to access the user fields from there. I was trying to persuade an rfacebook test app to work with facebooker. I have since had a look further along Mikes good book, and realised that I need to be ''actively'' keeping the session key for model access to facebook via facebooker. Still want a trace ? ----8<---->> In other questions >> - i was going to store the value of the parameter fb_sig_network in the >> user db also, to avoid user id clashes (the id from the active sns, bebo or >> facebook or whatever ). Is there a better solution? >> > > I use a SingleTableInheritance approach which is basically the same idea > but you get first class objects for each type of user. FacebookUser and > BeboUser. This cleans up the code a bit. >Ok, I will take a look at this. Thanks. ----8<----> > >> >> - is there a handy way to get the application canvas page URI from the >> plugin (e.g. http://apps.facebook.com/myapp or http://apps.bebo.com/myappetc) >> > > url_for("/", :canvas => true) would be one way. What do you need this for? >I was going to put some canvas related links into the profile box in this manner, potentially use it in messaging/sharing, etc. Maybe I''ll find a better way.> > >> - is there a handy way to get the application about/profile page URI from >> the plugin. e.g. http://www.facebook.com/apps/application.php?id=xxxxxxxxor whatever the equivalent is for bebo, fb_about_url is always sending me to >> the facebook network >> > > I don''t think this is in there anywhere. Probably good to add as a patch > if you up for it. >Sure, I''ll be looking for something to handle this and you are welcome to anything that may come of it. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080729/8c915215/attachment.html>