Sam Clearman
2008-Oct-23 22:56 UTC
[Facebooker-talk] why does ensure_authenticated_to_facebook request app install?
When I get redirected by ensure_authenticated_to_facebook it asks me to install the application.. is this by design? I just want to make sure the user is actually logged in to facebook.
Jonathan Otto
2008-Oct-24 18:58 UTC
[Facebooker-talk] why does ensure_authenticated_to_facebook request app install?
Nope, you just need to check for: params[:fb_sig] && params[:fb_sig_added].to_i == 0 If the user clicked a link from Facebook to get to your app, there will also be a "fromhash" parameter present too, which means you''ll have access to the users'' Facebook ID through params[:fb_sig_canvas_user] You''ll find that params[:fb_sig_canvas_user] isn''t as useful as you''d like since as I mentioned, it only comes up if you click a link from inside Facebook. Unfortunately, clicking a bookmark does not seem to work. The conclusion being that most of the time you won''t be able to access a user''s Facebook ID unless they actually install the application. On Thu, Oct 23, 2008 at 5:56 PM, Sam Clearman <sam.clearman at gmail.com> wrote:> When I get redirected by ensure_authenticated_to_facebook it asks me > to install the application.. is this by design? I just want to make > sure the user is actually logged in to facebook. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >