Josh Sharpe
2008-Dec-05 18:27 UTC
[Facebooker-talk] updating users status while not logged in
If I prompt the user for both the "status_update" and "offline_access" permissions then I can just: user.facebooker_user.status="foo" and it works like a charm regardless if that user is logged in or not. Great. However, I notice that the Twitter app does NOT request the offline access permission and they are able to update a user''s status anyways. Now http://wiki.developers.facebook.com/index.php/Users.setStatus says that only the "status_update" perm is required. So my guess is that the facebooker api is calling setStatus incorrectly by always trying to create the session with the session key instead of with the uid... or something like that. Think that''s possible? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081205/ad7cdb7c/attachment.html>
Josh Sharpe
2008-Dec-05 18:31 UTC
[Facebooker-talk] updating users status while not logged in
And to answer my own question... This works while I''m logged out of facebook. I''m pretty sure it doesn''t even touch the session. session Facebooker::Session.create(Globals::FACEBOOK_API_KEY,Globals::FACEBOOK_SECRET) session.post(''facebook.users.setStatus'',{:uid => User.find(4).facebook_id, :status => ''test''}) On Fri, Dec 5, 2008 at 1:27 PM, Josh Sharpe <josh.m.sharpe at gmail.com> wrote:> If I prompt the user for both the "status_update" and "offline_access" > permissions then I can just: > > user.facebooker_user.status="foo" > > and it works like a charm regardless if that user is logged in or not. > Great. > > However, I notice that the Twitter app does NOT request the offline access > permission and they are able to update a user''s status anyways. > > Now http://wiki.developers.facebook.com/index.php/Users.setStatus says > that only the "status_update" perm is required. So my guess is that the > facebooker api is calling setStatus incorrectly by always trying to create > the session with the session key instead of with the uid... or something > like that. > > Think that''s possible? >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081205/f2767517/attachment.html>