Child pages
  • Self-Registration Harvesting Facebook Attributes

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Clicking the Use Facebook button, calls the onFacebookuseFacebook() function, that simply calls the Facebook login function to do a few things - force you to login into Facebook if you're not already logged, and then retrieve 4 attributes.  3 are from the Facebook public profile and a fourth, email, as an extended request.  The function then does a basic value replacement on the existing OpenIDM form with the values received from Facebook.  I mapped the OpenIDM username to Facebook ID, but you could simply just map the email address for convenience, if your users want to log into OpenIDM and not just be provisioned elsewhere.

...