Paul Cortens
2008-Mar-11 20:59 UTC
[Facebooker-talk] trouble with MyPublisher.deliver_story
hi, I can''t seem to be able to delivery stories! I have this in my controller MyPublisher.deliver_story(@current_facebook_user.friends.first, @current_facebook_user, @object.id) This is in models/my_publisher.rb # story is published to the story of the to user def story(to, f, object_id) send_as :story recipients to title "An object?" body "#{fb_name(f)} is sending you a message about #{link_to(''this object'', show_object_path(object_id))}." end No exceptions are raise. However, the story never shows up. What am I doing wrong? Thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080311/6141343e/attachment.html
Paul Cortens
2008-Mar-11 21:01 UTC
[Facebooker-talk] trouble with MyPublisher.deliver_story
I should also note that sending a notification did work. Paul On 3/11/08, Paul Cortens <phylae at gmail.com> wrote:> > hi, > > I can''t seem to be able to delivery stories! > > I have this in my controller > MyPublisher.deliver_story(@current_facebook_user.friends.first, > @current_facebook_user, @object.id) > > > This is in models/my_publisher.rb > > # story is published to the story of the to user > def story(to, f, object_id) > send_as :story > recipients to > title "An object?" > body "#{fb_name(f)} is sending you a message about #{link_to(''this > object'', show_object_path(object_id))}." > end > > > No exceptions are raise. However, the story never shows up. > > What am I doing wrong? > > Thanks, > Paul >-- Ezk. 36 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080311/85006161/attachment-0001.html
Paul Cortens
2008-Mar-11 21:51 UTC
[Facebooker-talk] trouble with MyPublisher.deliver_story
Nevermind. This page cleared things up for me http://wiki.developers.facebook.com/index.php/PublishActionOfUser_vs._PublishStoryToUser I was confusing actions and stories. Sorry to be a bother. Paul On 3/11/08, Paul Cortens <phylae at gmail.com> wrote:> > hi, > > I can''t seem to be able to delivery stories! > > I have this in my controller > MyPublisher.deliver_story(@current_facebook_user.friends.first, > @current_facebook_user, @object.id) > > > This is in models/my_publisher.rb > > # story is published to the story of the to user > def story(to, f, object_id) > send_as :story > recipients to > title "An object?" > body "#{fb_name(f)} is sending you a message about #{link_to(''this > object'', show_object_path(object_id))}." > end > > > No exceptions are raise. However, the story never shows up. > > What am I doing wrong? > > Thanks, > Paul >-- Ezk. 36 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080311/16ab085f/attachment.html