No way to know the email address when not accepting permission automatically?

9 views
Skip to first unread message

dtka

unread,
Nov 10, 2011, 9:26:34 AM11/10/11
to facebook-test-java-api
I need to test accepting permissions and also test whether user's
Facebook email was correctly passed to the app. This seem impossible
at the moment. I only get the email from account.getUserDetails() when
using facebookStore.createTestUser(true, "...").

If the user was created with "true" i.e. by
facebookStore.createTestUser(true,
"email,user_about_me,user_birthday")
then account.getUserDetails() will give me an email as following:
{"id":"100003132015352","name":"Harry Amcacbjaeceb
Bowerssen","first_name":"Harry","middle_name":"Amcacbjaeceb","last_name":"Bowerssen","link":"http:
\/\/www.facebook.com\/profile.php?id=100003132015352","birthday":"08\/
08\/
1980","gender":"male","email":"jvckmjt_bowerssen_1320927351\u0040tfbnw.net","locale":"de_DE","updated_time":"2011-11-10T12:15:57+0000"}

but if the user was created using "false", i.e. like this:
facebookStore.createTestUser(false,
"email,user_about_me,user_birthday");
then I am not getting email as a part of getUserDetails():
{"id":"100003145485332","name":"Jennifer Amcadedheccb
Fergieman","first_name":"Jennifer","middle_name":"Amcadedheccb","last_name":"Fergieman","link":"http:
\/\/www.facebook.com\/people\/Jennifer-Amcadedheccb-Fergieman\/
100003145485332","gender":"female","locale":"de_DE"}

Any help would be appreciated.

Thank you in advance!

Regards,
Daniel

Tobias Sodergren

unread,
Nov 10, 2011, 2:40:47 PM11/10/11
to facebook-test-java-api
Hi Daniel,

Your problem sounds like a Facebook test user issue rather than
something that the API is doing wrong. The API is a rather thin layer
above the graph API and does no filtering of the JSON data from
Facebook.

Regards,
Tobias

On Nov 10, 3:26 pm, dtka <daniel.tka...@smeet.com> wrote:
> I need to test accepting permissions and also test whether user's
> Facebook email was correctly passed to the app. This seem impossible
> at the moment. I only get the email from account.getUserDetails() when
> using facebookStore.createTestUser(true, "...").
>
> If the user was created with "true" i.e. by
> facebookStore.createTestUser(true,
> "email,user_about_me,user_birthday")
> then account.getUserDetails() will give me an email as following:
> {"id":"100003132015352","name":"Harry Amcacbjaeceb
> Bowerssen","first_name":"Harry","middle_name":"Amcacbjaeceb","last_name":"B owerssen","link":"http:

Daniel Tkatch

unread,
Nov 14, 2011, 4:24:15 AM11/14/11
to facebook-test-java-api
Hi Tobias,

I also thought that most probably it's not an problem of your API, but
I hoped you could help me to figure out what exactly is the problem
that prevents me from getting the user's email address.

Regards
Daniel

On Nov 10, 8:40 pm, Tobias Sodergren <tobiassoderg...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages