[Facebooker-talk] fb_sig_canvas_user

Matthew Beale mixonic at synitech.com
Fri Jan 30 11:39:58 EST 2009


Hi Lee,

I swore I used to get this variable, but I don't seem to any more.  Are
you really getting the canvas_user for *any* unallowed user?

-- 
Matthew Beale :: 607 227 0871
Resume & Portfolio @ http://madhatted.com

On Mon, 2009-01-26 at 11:50 +0000, Lee Mallabone wrote:
> 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.
> 
> 




More information about the Facebooker-talk mailing list