I'm attempting to integrate with Facebook using the minifb.py API, so
what's going on is that I end up with a ID for the Facebook user, and
use that to create an User object in TG.  I'd like to have that
identity hang around.

This is created as a iFrame application (as opposed to FBML) in
Facebook.  Subsequent calls from the client originate from the
browser, mostly bypassing facebook servers.

The link to the code is:
http://paste.turbogears.org/paste/13405

If you know the recipe, one change I made was to make the exception
completely generic; the recipe calls for SQLObjectNotFound, and I was
actually getting a ValueError becase the visit key was not an int().
>From the debug statements, I verify that the login works.  In
subsequent controllers, identity is back to anonymous.

I was also logging the visit key, and that changes, which may be
because things originate with facebook servers, but it's an iFrame
application, so maybe the visit changes, and so identity can't
persist????

Thanks for your help.
--mick


On Nov 21, 7:23 am, Christopher Arndt <[EMAIL PROTECTED]> wrote:
> Mickey schrieb:
>
> > I need to log a user in manually, and I'm using the TG Identity recipe
> > (http://docs.turbogears.org/1.0/IdentityRecipes?
> > action=show&redirect=1.0%2FIdentityRecipies) and that works.
>
> > However, upon subsequent visits, identity thinks that current is
> > anonymous.  The login is lost, or the visit disassociated, or
> > whatever.  I'm at a loss.  Is there some cookie thing that Identity
> > does normally, using the login screen, that I am not?
>
> > I'm using TG 1.04 with SQLObject, Kid and Python 2.5.
>
> Please provide your actual code where you do the log in. Paste it 
> athttp://paste.turbogears.org/(orhttp://paste.chrisarndt.de/for a nicer
> interface) and post the resulting URL here.
>
> You can also have a look a the server debugging output on the console
> where you are running your app in development mode to get any clues. If
> you don't understand it, send us a paste link for it as well.
>
> Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to