Hello, Is there any way of retrieving the value of Users.hasAppPermission using facebooker ? Thank you very much, Pierre -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081209/f5ce9e86/attachment.html>
If you don''t have the user''s active session key you have to go
through your
app''s session:
class Facebook
def self.has_permission?(uid,perm)
Facebooker::Session.create(API_KEY,SECRET).post(''facebook.users.hasAppPermission'',
:ext_perm => perm, :uid => uid)
end
end
I hacked Facebooker::User in my local repo to support hasAppPermission.
But even after adding it I don''t use it simply because it requires an
active
user session_key which you may or may not have. The above method works with
just the user''s uid.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/facebooker-talk/attachments/20081209/51b779e6/attachment.html>
Session#post takes an additional argument for whether or not to
include the session key. If a session key isn''t required, you can do:
Facebooker
::Session
.create(API_KEY,SECRET).post(''facebook.users.hasAppPermission'',
{:ext_perm => perm, :uid => uid},false)
and we won''t generate them.
If you''ve added this to a github fork, send me a pull request for the
change and I''ll pull it in!
Mike
On Dec 9, 2008, at 11:09 AM, Josh Sharpe wrote:
> If you don''t have the user''s active session key you have
to go
> through your app''s session:
>
> class Facebook
> def self.has_permission?(uid,perm)
>
> Facebooker
> ::Session
> .create
> (API_KEY,SECRET).post(''facebook.users.hasAppPermission'',
:ext_perm
> => perm, :uid => uid)
> end
> end
>
> I hacked Facebooker::User in my local repo to support
> hasAppPermission. But even after adding it I don''t use it simply
> because it requires an active user session_key which you may or may
> not have. The above method works with just the user''s uid.
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
--
Mike Mangino
http://www.elevatedrails.com
Thank you very much for your answer. I will look on the net how to make a github fork and i will get back to you On Tue, Dec 9, 2008 at 5:33 PM, Mike Mangino <mmangino at elevatedrails.com>wrote:> Session#post takes an additional argument for whether or not to include the > session key. If a session key isn''t required, you can do: > > Facebooker::Session.create(API_KEY,SECRET).post(''facebook.users.hasAppPermission'', > {:ext_perm => perm, :uid => uid},false) > > and we won''t generate them. > > If you''ve added this to a github fork, send me a pull request for the > change and I''ll pull it in! > > Mike > > > On Dec 9, 2008, at 11:09 AM, Josh Sharpe wrote: > > If you don''t have the user''s active session key you have to go through >> your app''s session: >> >> class Facebook >> def self.has_permission?(uid,perm) >> >> Facebooker::Session.create(API_KEY,SECRET).post(''facebook.users.hasAppPermission'', >> :ext_perm => perm, :uid => uid) >> end >> end >> >> I hacked Facebooker::User in my local repo to support hasAppPermission. >> But even after adding it I don''t use it simply because it requires an active >> user session_key which you may or may not have. The above method works with >> just the user''s uid. >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > >-- Pierre Valade +33.6.89.04.15.30 www.tiiptop.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081209/29d5792e/attachment.html>