How do you get emails now?

Apr 14, 2010 at 7:39 AM

Every couple of months, the method to get user's email is changed.

What is the current way?

(I got the user to accept the extended permission thingy).

The FB help, claims I have to use getInfo().contact_email which doesn't exist in the toolkit.

Apr 14, 2010 at 7:41 PM

You can use fql on the user table. 

var response = api.Fql.Query(String.Format("SELECT first_name, last_name, locale, email, timezone from user where uid = {0}", user.UserID));

 

 

 

                var response = api.Fql.Query(String.Format("SELECT first_name, last_name, locale, email, timezone from user where uid = {0}", user.UserID));