Facebook Identity Provider¶
You can configure Facebook as Identity Provider (IdP) in the Onegini IdP. The Onegini IdP uses Facebook Graph API. This chapter will guide you though all steps that are required to fully configure and use the Facebook IdP with the Onegini IdP.
Prerequisites¶
To successfully complete this topic guide you need to ensure following prerequisites:
- Onegini IdP instance must to be running, for the sake of this guide we assume it's available under http://idp-core.dev.onegini.me address
- Onegini IdP must have the
Username & password
identity provider configured
Configure Facebook identity provider¶
To register a Facebook IdP within the Onegini IdP as an Identity Provider first you need to create an application on the Facebook platform and obtain it's Client ID
and
Client Secret
.
Make sure that the option 'Require app secret' is turned off.
Next visit the http://idp-core.dev.onegini.me:8082/admin page and login to the Onegini IdP admin console. Select the Config
menu option and navigate to the Identity Providers
tab.
Hit the +
button to create a new Identity Provider configuration. Fill in the form as follows:
Type
- open the dropdown list and selectFacebook
Name
- name your Facebook IdP instanceAuthentication Level
- choose desired authentication levelEnabled
- mark your Identity Provider as enabledOAuth attributes
- paste your FacebookClient ID
asClient ID
andClient Secret
asClient Secret
. DefineClient Scope
, you can read more about supported scopes in the official Facebook documentationAttributes mappings
- Onegini IdP within the configuration form gives you option to define the attribute mappings. It's a very useful functionality which allows you define "translations" for user's profile and custom attributes. The automatic Sign-up functionality requires at leastEmail address
attribute to mapped from the external identity provider (Facebook). Depending on the scope that you use you can also provide additional mappings for other fields. To get more info about attribute mappings please check the Attribute Mappings topic guide.
Limitations¶
If Graph API return a list of values for one attribute, only first one will be saved. Also there is no support for complex value in form of a map, like address.