David Clements
2008-Feb-20 00:17 UTC
[Facebooker-talk] Added Publisher API to the Tutorial
Hey All, Just a quick note , I am loving the new Publisher API in facebooker and added it to the tutorial app. http://apps.facebook.com/facebooker_tutorial/messaging/mini_feed I also added some code to monkey_patch the request response to that you can see it in the log. Any feedback is greatly appreciated, especially if you have some ideas on lessons I should add. Dave
I just updated the code to include a Rails generator. You can now run scipt/generate publisher Attack to create an attacks_publisher.rb I''ll be working on adding profile updates and better template support as the week progresses. Has anyone else used this? If so, I''d love some feedback. Mike On Feb 19, 2008, at 6:17 PM, David Clements wrote:> Hey All, > > Just a quick note , I am loving the new Publisher API in facebooker > and added it to the tutorial app. > > http://apps.facebook.com/facebooker_tutorial/messaging/mini_feed > > I also added some code to monkey_patch the request response to that > you can see it in the log. > > Any feedback is greatly appreciated, especially if you have some ideas > on lessons I should add. > > Dave > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
And yet another update, no with rendering goodness def AttackPublisher < Facebooker::Rails::Publisher def profile_update(user) send_as :profile recipients user profile render(:partial=>"profile",:assigns=>{:user=>user} end end When I call AttackPublisher.deliver_profile_update(user) it will render app/views/_profile.erb with @user set to user and then send the profile FBML to Facebook You can now render in all of your Publisher methods. Enjoy! Mike On Feb 20, 2008, at 9:27 AM, Mike Mangino wrote:> I just updated the code to include a Rails generator. You can now run > scipt/generate publisher Attack to create an attacks_publisher.rb > > I''ll be working on adding profile updates and better template support > as the week progresses. > > Has anyone else used this? If so, I''d love some feedback. > > Mike > > > On Feb 19, 2008, at 6:17 PM, David Clements wrote: > >> Hey All, >> >> Just a quick note , I am loving the new Publisher API in facebooker >> and added it to the tutorial app. >> >> http://apps.facebook.com/facebooker_tutorial/messaging/mini_feed >> >> I also added some code to monkey_patch the request response to that >> you can see it in the log. >> >> Any feedback is greatly appreciated, especially if you have some >> ideas >> on lessons I should add. >> >> Dave >> _______________________________________________ >> 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