also....
Now I'm not sure that this code actually works with an iFrame application. Does it? Actually I'm just not sure I'm starting in the right place.
Does someone know where the basic Facebook iFrame setup information is? I'm having a hard time finding stuff on Facebook's developer site now that they changed it all around.
<%= fb_connect_async_js %>
<% if current_facebook_user %>
<%= "Welcome #{current_facebook_user.first_name} #{current_facebook_user.last_name}!" %>
or
<%= "Hello #{fb_name(current_facebook_user, :useyou => false)}!" # link to facebook profile
%>
<%= fb_logout_link("Logout of fb", request.url) %><br />
<% else
# you must explicitly request permissions for facebook user fields.
# here we instruct facebook to ask the user for permission for our website
# to access the user's facebook email and birthday
%>
<%= fb_login_and_redirect('<your URL here>', :perms => 'email,user_birthday') %>
<% end %>
Thanks,
Jason
Couple of things re Facebooker
1) I'm trying to start a new app with Facebooker2 and Rails3. Am I crazy?
So far, things look OK, but on this page here
http://github.com/mmangino/facebooker2
It says you can use this:
<%= fb_connect_async_js %>
But in Rails 3 actually you need to do this
<% fb_connect_async_js %>
2) Can I help write some more documentation for Facebooker2? Is there a Wiki? I'd be happy to write down all the things I discover -- just not sure the move efficient way to record all the stuff I run into -- is this forum the best place to document it?
Thanks,
Jason
> Mike,
>
> Couple of things re Facebooker
>
>
> 1) I'm trying to start a new app with Facebooker2 and Rails3. Am I crazy?
>
> So far, things look OK, but on this page here
>
> http://github.com/mmangino/facebooker2
>
> It says you can use this:
> <%= fb_connect_async_js %>
>
> But in Rails 3 actually you need to do this
>
> <% fb_connect_async_js %>
I haven't tried Rails3 other than just http://www.islentilbornyet.com (which isn't the most complex site ever :) So everything is just a guess
>
>
> 2) Can I help write some more documentation for Facebooker2? Is there a Wiki? I'd be happy to write down all the things I discover -- just not sure the move efficient way to record all the stuff I run into -- is this forum the best place to document it?
The best bet is to fork facebooker2 and update the README. When you're happy with the docs, send me a pull request and I'll pull in your changes.
Mike
>
> Thanks,
> Jason
>
> --
> You received this message because you are subscribed to the Google Groups "facebooker" group.
> To post to this group, send email to faceb...@googlegroups.com.
> To unsubscribe from this group, send email to facebooker+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/facebooker?hl=en.
>
--
Mike Mangino
http://www.elevatedrails.com
By the way, upon further experimentation, i realized that this:
<%= fb_connect_async_js %>
should actually be this in Rails 3:
<%= raw(fb_connect_async_js) %>
I'll fork the git repo and work on the README. Looks OK with Rails 3 but there are lots of little things that might have to be tweeked so I'll look through the code too for those also.
Anybody have any ideas where to find info on writing a Facebook iFrame app? I know there's some javascript I have to load inside my iFrame, but I can't find where it is documented on Facebook's developer site. If anyone has the URL handy I'd appreciate it.
-Jason
> Lentil is your kid, Mike? :)
yeah, we call our son Peanut. We decided to stick with legumes and nicknamed the second one lentil. If we have a third I guess they will go by garbanzo :)
>
> Congrats man!!
>
Thanks