the problem is that facebook is not returning an email.
i know, i know, you told facebook that email is required and you can't
reproduce such a state. i'm 100% with you, but i see the exact same
behavior with my users! i suspect that these are actually returning users
who granted email
I see, your theory is pretty much accurate (sorry for my english, I hope
that phrase is correct). What I mean is that your theory is the most
addecuate for this case, thought it can't be proved. Actually, there is
another error that says something about access token been already used, but
create a fake email...
something like the following (check for errors I did not test it)
if user:
if not user.has_key('email') or user['email'] == '' or user['email'] is
None:
user['email'] = user['first_name'] + '.' + user['last_name'] + '.' +
user['id'] + '@facebook.email.is.not.valid'
Thanks for the answer. The problem is that I really need a valid email
address, because in my site I use that email to send important
notifications to the user.
I already tried with facebook mail, that is, joining the user name with @
facebook.com. But it didn't work. When I send an email to a
this is what they say:
https://www.facebook.com/help/224049364288051
facebook documentation for developers is incomplete, so to say, on many
occasions...
mic
2013/10/29 Lisandro Rostagno rostagnolisan...@gmail.com
Thanks for the answer. The problem is that I really need a valid email
Thanks, you're right, Facebook documentation is very poor and is often
outdated. That page says that anyone can send you an email from external
mail services (gmail, yahoo, etc).. but I tried that and I receive a
response from Facebook saying that there is a permission problem... I
suppose that
Lisandro,
the ratio of users without email is so low that i would just block the
user telling them that they must grant email permissions to use your
site. detect that there was no email returned from facebook and send a
response to the browser that prompts the user to try again and add the
The mobile registration page allows for users to signup without an email
address:
http://touch.facebook.com/r.php
Paolo
Il giorno lunedì 28 ottobre 2013 18:57:06 UTC+1, Lisandro ha scritto:
I'm having a similar problem with KeyError: 'email'.
I have a site in production that uses
I'm having a similar problem with KeyError: 'email'.
I have a site in production that uses oauth2 and offers the possibility of
register/login using personal facebook account.
I created a Facebook app and set permissions to get user's email (so I can
create the account on my site). Everything
if there is agreement on one, please send me a patch.
On Jun 6, 4:31 pm, Sebastian E. Ovide sebastian.ov...@gmail.com
wrote:
Hi Mic,
thanks for that.
actually I've debugged web2py and figure it out for myself. There are two
easy ways to fix it (I've tried to add them to the book, but my
I do not see major pros and cons... it is a matter of precerences...
1) setting username=True in auth.define_tables(), define_tables will add a
field on the table (username) and if that field is present, authentication
will be done using username. Personally I prefer to use emails rather than
I am not familiar with facebook email.
If this (username + @facebook) is avlid email, perhaps web should set
that even if username=True
On Jun 6, 7:15 pm, Sebastian E. Ovide sebastian.ov...@gmail.com
wrote:
I do not see major pros and cons... it is a matter of precerences...
1) setting
12 matches
Mail list logo