[keycloak-user] Unable to get required user data from facebook and store the data in keycloak

Travis De Silva traviskds at gmail.com
Thu Oct 1 04:12:32 EDT 2015


I have the same issue. I raised this on the keycloak forum a few weeks back
but did not get a reply. Please refer to this post as it gives some
possible reasons.

http://lists.jboss.org/pipermail/keycloak-user/2015-August/002939.html



On Thu, 1 Oct 2015 at 17:58 Revanth Ayalasomayajula <
revanth at arvindinternet.com> wrote:

> Hi,
>
> In the server log, this is the json that i see.
>
> User Profile JSON Data for provider facebook: {"name":"Revanth
> Ayalasomayajula","id":"897360963633861"}
>
> On Thu, Oct 1, 2015 at 1:16 PM, Revanth Ayalasomayajula <
> revanth at arvindinternet.com> wrote:
>
>> Hi,
>>
>> Thanks for the quick reply. It did show the email address and the public
>> profile in the consent screen.
>>
>> On Thu, Oct 1, 2015 at 1:13 PM, Stian Thorgersen <sthorger at redhat.com>
>> wrote:
>>
>>> When you logged in via Facebook did the consent screen from Facebook
>>> display your email address? Facebook users can prevent applications from
>>> seeing the email both in account settings, but also selectively remove this
>>> from the consent screen.
>>>
>>> On 30 September 2015 at 14:57, Revanth Ayalasomayajula <
>>> revanth at arvindinternet.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am using keycloak 1.5.0 and want to use login via facebook. So i
>>>> created a facebook app and provided all the details in the keycloak
>>>> facebook identity provider settings. When i login from facebook, the user
>>>> is created if not existing in keycloak and is authenticated.
>>>>
>>>> But the created user details are all null and in the server log, the
>>>> response from facebook contains only the name and id but not the email but
>>>> the default scope of my application is email. Also, when trying to store
>>>> the returned details using mappers is not happening.
>>>>
>>>> Could anyone please help me on how to return more details from facebook
>>>> and also store those details using mappers.
>>>>
>>>>
>>>> _______________________________________________
>>>> keycloak-user mailing list
>>>> keycloak-user at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>
>>>
>>>
>>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151001/53e8521e/attachment.html 


More information about the keycloak-user mailing list