I’ve installed djangosocialregistration and it seemed like it was working fine for a while, but now I’m getting an error and I can’t figure out where it’s coming from. Inside my view I’m doing this to start looking at the API…
me = request.facebook.graph.get_object("me")
and I’m getting this…
‘Facebook’ object has no attribute ‘graph’
After it quit working I rolled back a couple small changes I’d made, reset everything, deleted cookies and it’s still not working. I’m running django 1.1.1 and it’s slightly difficult for me to upgrade, not impossible though. I’ve been reloading a bunch trying to get it working, is there any possibility facebook throttles login connections on their end?
The Facebook class in the middleware of socialregistration looks like this:
If no user is set on
__inii__it will simply not setgraph. In the Middleware this should be set via:So my guess that the cookie from Facebook is not set for your site. Maybe you add some debug logging to determine if there is a cookie from facebook or not.
Another guess would be that
request.facebookis overwritten somewhere. Maybe you check this as well.