Facebook Connect Integration Facebook has recently provided a way so now when you add a FB connect to your website, you can also ask for user’s email. This new advanced feature has provided ways, so you can know more about your FB users and thus even have their email addresses. Getting an email of the fb users was not possible prior to this update. What is the advantage? Say you are building an application, which requires email address of the user so that you can send them reminders or alerts of activity on the website. And also your website is equipped with FB connect, that means, FB users can connect and register on the website. But there was no way earlier, to send them an update or alert as the email was not available from Facebook. How does that work? It’s a multi step process as shown below: 1. Users come to your website and clicks on fb connect button. a. As you can see above the form is empty and by using FB connect the website will auto populate this using data from facebook. 2. The second window is a regular FB connect window you might have seen many times. 3. The third step is extended permissions, as we are requesting the user to share the email address, we have to get their extended permissions. 4. The fourth and the last step is populating the form on your website, or its up to you to directly save this all information in the database. Step 1: Your website's registration form
ication trying to spam your users. Why would I want to use this? Email is a core method of communication on the Internet, whether you're building an individual Web site, a Facebook application, or any other Internet property. For this reason, Facebook now offers additional support to make it easier to communicate with your users through email. How can I get this for my users? In order to send email directly to a user, you must prompt the user for the email extended permission. Once you get the permission, you can get that user's proxied email address by either querying the user FQL table for the proxied_email field, or by requesting proxied_email for the user with the users.getInfo API method. How does it work? If you want to send an email to a set of your users, just include their proxied emails in the To: field of the message (Note: Do not put these addresses in the CC: field as they will be ignored). Add the subject of the email as you normally would, and fill out the body of the message. Note that the body of the email is constrained similarly to notifications.sendEmail. Also note that any attachments will currently be ignored; only the message body will be passed on at this time. Email messages sent to a proxied_email address come from the facebookappmail.com domain.





