[Facebooker-talk] How to instanciate a Group or Event model object
Lee Mallabone
lee at crossbonesystems.com
Mon Jan 26 07:10:07 EST 2009
Hi Aurélien,
Did you already get your site setup so facebook users can login?
http://apps.facebook.com/facebooker_tutorial/outline
Once you have done that, in your controller make a call to:
facebook_session.user.groups()
or
facebook_session.user.events()
and you should get all the groups/events for the logged in user: you
can pass in specific IDs to just retrieve individual objects.
Hope that helps,
Lee.
2009/1/25 Malisart Aurélien <aurelien.malisart.mailinglists at gmail.com>:
> Hi,
>
> What do I have to do to have a populated object of class Facebooker::Group
> or Facebooker::Event populated with its group/event information if I know
> it's gid/eid? Is it required to use FQL?
>
> I tried things like these:
>
> Facebooker::Group.new(:gid => 42)
> Facebooker::Event.new(:eid => 42)
>
> since the initialize of Facebooker::Model takes a hash, but the object isn't
> populated.
>
> Thanks
>
> Aurélien
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
>
--
Lee Mallabone.
Crossbone Systems Ltd.
http://www.crossbonesystems.com/
http://www.fonicmonkey.net/
http://CambridgeWebHeads.ning.com/
More information about the Facebooker-talk
mailing list