[Facebooker-talk] fb_sig_canvas_user

Lee Mallabone lee at crossbonesystems.com
Mon Jan 26 06:50:15 EST 2009


Hi all,

I've got myself a bit confused over fb_sig_canvas_user and I'm hoping
some of the seasoned facebook devs can clear it up.

>From reading the facebook wiki, it seems like fb_sig_user is the main
parameter to check for the logged in user ID when a user has installed
the app. However, it seems that fb_sig_canvas_user is passed to my
URLs (instead of fb_sig_user) when a user is logged in to facebook but
has not authorized my app.

So to determine the authoritative "current user" with facebooker,
should I simply be doing the following?

if facebook_params['user'] != 0
  return facebook_params['user']
end
if facebook_params['canvas_user'] != 0
  return facebook_params['canvas_user']
end
return nil

Or are there also other conditions (or user parameters!) I should be
watching out for?

Bear in mind that I'm letting users look at my pages without forcing
them to install/authorize my application.

Regards,
Lee.


-- 
Lee Mallabone.
http://apps.facebook.com/headhunting/


More information about the Facebooker-talk mailing list