[Facebooker-talk] Announcing Facebook Connect support
Konstantin Gredeskoul
kig at infectious.com
Wed Jan 14 17:33:00 EST 2009
Thanks all for adding Facebook Connect support to facebooker plugin.
I am looking integrating FBC into our site, and have a couple of
questions, pardon if they are noobish, but I am new to Facebook
platform.
My main goal is to streamline registration process for users of FB,
and to allow posting stories back to FB. I understand that I can
integrate FbC javascript, and in conjunction with xd_receiver file,
the javascript loaded from FB will be able to modify HTML page based
on user information, logged in state, etc. The example with Javascript
I saw, has a static HTML site, and all the connect stuff happens on
the client in Javascript.
It is my understanding that Facebooker plugin supports rich REST API
to Facebook, so what I am not clear on is how is information passed
between my site and facebook.
1) Initially, I believe it is javascript that establishes connection
and sets the cookie - inside <%= init_fb_connect "XFBML"%>
2) after that I can now use this in my view:
<% if facebook_session %>
<%= facebook_session.user.hometown_location.city %>
<% else %>
My question is: does this helper require a REST API call to FB
servers? Or is that data cached in the cookie/session? Or is that
data obtained by generating javascript that updates HTML when it
loads?
If I was to register someone from Facebook on my website, I would like
to capture their first name, last name and email in order to create a
proper account on our site. If this information is available at the
controller level, then I have no problem with this.
if, however, it's only available in the client javascript layer, I
will probably have to construct an ajax call to send this information
back to the server, so that I can register the user.
Any clarification on how FB connect + Facebooker actually works, and
whether the data is available at the controller level is much
appreciated. If I am off track completely, please feel free to chime
in.
Thanks
Konstantin
More information about the Facebooker-talk
mailing list