What is going on here... I thought this was some mod I made to the plugin, so I cloned a fresh copy off of git hub and still got the same results.>> u = User.find(4).facebooker_user=> #<Facebooker::User:0xb6d3a6b0 @uid=1560...etc.>>> friends = u.friends. . .>> friends.size=> 118>> friends.select{|f| f.first_name == "Sami"}Facebooker::Session::ExtendedPermissionRequired: Updating status requires the extended permission status_update from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:481:in `process'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:480:in `post_without_logging'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in `post'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in `realtime'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in `post'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:230:in `status='' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in `__send__'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in `populate_from_hash!'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in `each'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in `populate_from_hash!'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:113:in `populate'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:481:in `post_without_logging'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in `post'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in `realtime'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in `post'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:112:in `populate'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:35:in `first_name'' from (irb):6 from (irb):6:in `select'' from (irb):6>>> friends[0].first_name=> "Lindsay">> friends[3].first_nameFacebooker::Session::ExtendedPermissionRequired: Updating status requires the extended permission status_update from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:481:in `process'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:480:in `post_without_logging'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in `post'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in `realtime'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in `post'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:230:in `status='' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in `__send__'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in `populate_from_hash!'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in `each'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in `populate_from_hash!'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:113:in `populate'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:481:in `post_without_logging'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in `post'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in `realtime'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in `post'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:112:in `populate'' from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:35:in `first_name'' from (irb):8>> friends[4].first_name=> "Alexandra" -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081210/cec4b41a/attachment.html>
I have noticed that this happens for any friend who actually has a status. So accessing any attribute on that user causes it to blow up. Not sure why, still digging through the logic that adds all the attr_accessors to the user object.... On Wed, Dec 10, 2008 at 6:50 PM, Josh Sharpe <josh.m.sharpe at gmail.com>wrote:> What is going on here... I thought this was some mod I made to the plugin, > so I cloned a fresh copy off of git hub and still got the same results. > > >> u = User.find(4).facebooker_user > => #<Facebooker::User:0xb6d3a6b0 @uid=1560...etc.> > >> friends = u.friends > . > . > . > >> friends.size > => 118 > >> friends.select{|f| f.first_name == "Sami"} > Facebooker::Session::ExtendedPermissionRequired: Updating status requires > the extended permission status_update > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:481:in > `process'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in > `parse'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/service.rb:14:in > `post'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:480:in > `post_without_logging'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in > `post'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in > `log_fb_api'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in > `realtime'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in > `log_fb_api'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in > `post'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:230:in > `status='' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in > `__send__'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in > `populate_from_hash!'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in > `each'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in > `populate_from_hash!'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:113:in > `populate'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:481:in > `post_without_logging'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in > `post'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in > `log_fb_api'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in > `realtime'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in > `log_fb_api'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in > `post'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:112:in > `populate'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:35:in > `first_name'' > from (irb):6 > from (irb):6:in `select'' > from (irb):6> > > >> friends[0].first_name > => "Lindsay" > > >> friends[3].first_name > Facebooker::Session::ExtendedPermissionRequired: Updating status requires > the extended permission status_update > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:481:in > `process'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in > `parse'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/service.rb:14:in > `post'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:480:in > `post_without_logging'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in > `post'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in > `log_fb_api'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in > `realtime'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in > `log_fb_api'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in > `post'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:230:in > `status='' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in > `__send__'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in > `populate_from_hash!'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in > `each'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in > `populate_from_hash!'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:113:in > `populate'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:481:in > `post_without_logging'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in > `post'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in > `log_fb_api'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in > `realtime'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in > `log_fb_api'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in > `post'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:112:in > `populate'' > from > /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:35:in > `first_name'' > from (irb):8 > > >> friends[4].first_name > => "Alexandra" > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081210/a5d321b8/attachment-0001.html>
So still not sure if this is a bug or not, it''d be nice if someone else could confirm they''re seeing this too... Here''s what I did to fix it. Again not sure if it''s the best way.... So FB returns "" when a users''s status is empty. populate_from_hash! then calls User#status="" . User#status= calls the FB users.setStatus method when the arg is a String so it was blowing up on the perm error. So I just blocked populate_from_hash! from setting the status if the value was a string since at this point we certainly don''t want to make any calls to FB to reset the users status (even if we have permission) class Model def populate_from_hash!(hash) unless hash.empty? hash.each do |key, value| set_attr_method = "#{key}=" *unless key == "status" && value.is_a?(String)* if respond_to?(set_attr_method) self.__send__(set_attr_method, value) else Facebooker::Logging.log_info("**Warning**, Attempt to set non-attribute: #{key}",hash) end *end* end @populated = true end end end On Wed, Dec 10, 2008 at 9:55 PM, Josh Sharpe <josh.m.sharpe at gmail.com>wrote:> I have noticed that this happens for any friend who actually has a status. > So accessing any attribute on that user causes it to blow up. Not sure why, > still digging through the logic that adds all the attr_accessors to the user > object.... > > > On Wed, Dec 10, 2008 at 6:50 PM, Josh Sharpe <josh.m.sharpe at gmail.com>wrote: > >> What is going on here... I thought this was some mod I made to the >> plugin, so I cloned a fresh copy off of git hub and still got the same >> results. >> >> >> u = User.find(4).facebooker_user >> => #<Facebooker::User:0xb6d3a6b0 @uid=1560...etc.> >> >> friends = u.friends >> . >> . >> . >> >> friends.size >> => 118 >> >> friends.select{|f| f.first_name == "Sami"} >> Facebooker::Session::ExtendedPermissionRequired: Updating status requires >> the extended permission status_update >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:481:in >> `process'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in >> `parse'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/service.rb:14:in >> `post'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:480:in >> `post_without_logging'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in >> `post'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in >> `log_fb_api'' >> from >> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in >> `realtime'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in >> `log_fb_api'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in >> `post'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:230:in >> `status='' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in >> `__send__'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in >> `populate_from_hash!'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in >> `each'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in >> `populate_from_hash!'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:113:in >> `populate'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:481:in >> `post_without_logging'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in >> `post'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in >> `log_fb_api'' >> from >> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in >> `realtime'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in >> `log_fb_api'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in >> `post'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:112:in >> `populate'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:35:in >> `first_name'' >> from (irb):6 >> from (irb):6:in `select'' >> from (irb):6> >> >> >> friends[0].first_name >> => "Lindsay" >> >> >> friends[3].first_name >> Facebooker::Session::ExtendedPermissionRequired: Updating status requires >> the extended permission status_update >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:481:in >> `process'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in >> `parse'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/service.rb:14:in >> `post'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:480:in >> `post_without_logging'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in >> `post'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in >> `log_fb_api'' >> from >> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in >> `realtime'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in >> `log_fb_api'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in >> `post'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:230:in >> `status='' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in >> `__send__'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:114:in >> `populate_from_hash!'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in >> `each'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:111:in >> `populate_from_hash!'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:113:in >> `populate'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:481:in >> `post_without_logging'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:491:in >> `post'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in >> `log_fb_api'' >> from >> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in >> `realtime'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/logging.rb:27:in >> `log_fb_api'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/session.rb:490:in >> `post'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/models/user.rb:112:in >> `populate'' >> from >> /home/josh/ridecharge/facebook/vendor/plugins/facebooker/lib/facebooker/model.rb:35:in >> `first_name'' >> from (irb):8 >> >> >> friends[4].first_name >> => "Alexandra" >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081211/a8aa50bc/attachment.html>
Wow, good find. As much as I like being able to override assignment, this is an example of where that is a bad idea. Let''s disable that and require that set_status be called. I''ll make that change today. Mike On Dec 11, 2008, at 12:10 AM, Josh Sharpe wrote:> So still not sure if this is a bug or not, it''d be nice if someone > else could confirm they''re seeing this too... Here''s what I did to > fix it. Again not sure if it''s the best way.... > > So FB returns "" when a users''s status is empty. > populate_from_hash! then calls User#status="" . User#status= calls > the FB users.setStatus method when the arg is a String so it was > blowing up on the perm error. So I just blocked populate_from_hash! > from setting the status if the value was a string since at this > point we certainly don''t want to make any calls to FB to reset the > users status (even if we have permission) > > class Model > def populate_from_hash!(hash) > unless hash.empty? > hash.each do |key, value| > set_attr_method = "#{key}=" > unless key == "status" && value.is_a?(String) > if respond_to?(set_attr_method) > self.__send__(set_attr_method, value) > else > Facebooker::Logging.log_info("**Warning**, Attempt to > set non-attribute: #{key}",hash) > end > end > end > @populated = true > end > end > end > > > On Wed, Dec 10, 2008 at 9:55 PM, Josh Sharpe > <josh.m.sharpe at gmail.com> wrote: > I have noticed that this happens for any friend who actually has a > status. So accessing any attribute on that user causes it to blow > up. Not sure why, still digging through the logic that adds all the > attr_accessors to the user object.... > > > On Wed, Dec 10, 2008 at 6:50 PM, Josh Sharpe > <josh.m.sharpe at gmail.com> wrote: > What is going on here... I thought this was some mod I made to the > plugin, so I cloned a fresh copy off of git hub and still got the > same results. > > >> u = User.find(4).facebooker_user > => #<Facebooker::User:0xb6d3a6b0 @uid=1560...etc.> > >> friends = u.friends > . > . > . > >> friends.size > => 118 > >> friends.select{|f| f.first_name == "Sami"} > Facebooker::Session::ExtendedPermissionRequired: Updating status > requires the extended permission status_update > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/parser.rb:481:in `process'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/parser.rb:15:in `parse'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/service.rb:14:in `post'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/session.rb:480:in `post_without_logging'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/session.rb:491:in `post'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/logging.rb:27:in `log_fb_api'' > from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/core_ext/benchmark.rb:8:in `realtime'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/logging.rb:27:in `log_fb_api'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/session.rb:490:in `post'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/models/user.rb:230:in `status='' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/model.rb:114:in `__send__'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/model.rb:114:in `populate_from_hash!'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/model.rb:111:in `each'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/model.rb:111:in `populate_from_hash!'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/models/user.rb:113:in `populate'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/session.rb:481:in `post_without_logging'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/session.rb:491:in `post'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/logging.rb:27:in `log_fb_api'' > from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/core_ext/benchmark.rb:8:in `realtime'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/logging.rb:27:in `log_fb_api'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/session.rb:490:in `post'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/models/user.rb:112:in `populate'' > from /home/josh/ridecharge/facebook/vendor/plugins/facebooker/ > lib/facebooker/model.rb:35:in `first_name'' > from (irb):6 > from (irb):6:in `select'' > from (irb):6> > > >> friends[0].first_name > => "Lindsay" > > >> friends[3].first_name > Facebooker::Session::ExtendedPermissionRequired: Updating status > requires the extended permission status_update > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/parser.rb:481:in `process'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/parser.rb:15:in `parse'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/service.rb:14:in `post'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/session.rb:480:in `post_without_logging'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/session.rb:491:in `post'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' > from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/core_ext/benchmark.rb:8:in `realtime'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/session.rb:490:in `post'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/models/user.rb:230:in `status='' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/model.rb:114:in `__send__'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/model.rb:114:in `populate_from_hash!'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/model.rb:111:in `each'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/model.rb:111:in `populate_from_hash!'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/models/user.rb:113:in `populate'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/session.rb:481:in `post_without_logging'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/session.rb:491:in `post'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' > from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/core_ext/benchmark.rb:8:in `realtime'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/logging.rb:27:in `log_fb_api'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/session.rb:490:in `post'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/models/user.rb:112:in `populate'' > from /home/josh/ridecharge/facebook/vendor/plugins/ > facebooker/lib/facebooker/model.rb:35:in `first_name'' > from (irb):8 > > >> friends[4].first_name > => "Alexandra" > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com