Facebook Login Integration in AEM | Community
Skip to main content
Level 3
January 29, 2016

Facebook Login Integration in AEM

  • January 29, 2016
  • 4 replies
  • 8633 views

Hi,

I have come across an issue while integrating Facebook login with AEM. 

I took reference from below link

https://docs.adobe.com/docs/en/cq/5-6-1/administering/social_communities/social_connect.html

Although everything is working fine but on welcome page it is not displaying the logged in user name the way it is working for Geometrixx Outdoors website.

Instead it is displaiying the ID only.

Any suggestions who have already worked on this integration? :)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Adobe Employee
January 29, 2016

When you view the user created in AEM, does the user have a first and last name?

Regards,

Opkar

Level 3
January 29, 2016

@Opkar,

No I can't see. 

But, when I am loggedin through Geomatrixx Outdoors actual configurations , user profile properties firstname, lastname and email are getting updated automatically. Hence it shows up in the welcome page.

In my case, I have to manually add the first name and lastname of the user in order to display the loggedin username on the welcome page else it will display the id only.

Jitendra_S_Toma
Level 10
January 29, 2016

@akshitaa82720401 ,

When you are logged-in with social login like Facebook or Twitter, New profile gets created for that user in AEM. But, User profile would be different from what we have in AEM.

There isn't first name & last name in user profile. Instead, it has givenName & family name. So, you want to show first name, fetch givenName otherwise user ID will be displayed.

Let me know if this is clear to you.

Jitendra

Level 3
January 29, 2016

@Jitendra,

Thanks for the reply.

I am aware of that. In crx console, we have givenName & familyName properties for the newly created user. Those properties are getting populated from the firstname and last name property of the user profile details in useradmin console.

However the question is different. 

I am not doing any code changes, only thing is I am creating a new Facebook Connect Configuration in miscadmin->facebookconnect and selecting this new configuration in Geomatrixx Outdoors Website page properties->Cloud Services tab. 

So that ways I am connecting it with my facebook app id and not Geomatrixx default id.

But the problem is givenName and familyName are not getting populated automatically.Due to which only ID is getting displayed. However if I manually add these details, username is getting displayed on welcome page

I hope you understood what issue I am getting. Also, I have followed the steps from below link::::

Regards,

Akshita

Jitendra_S_Toma
Level 10
January 29, 2016

@Akshita,

Thanks for explaining in details. I think, I understand now. 

As you know, When you do cloud configuration, in the cloud config dialog, there are checkboxes for the properties which you want to have when profile gets imported into AEM. 

Did you verify if the geometrixx & your new facebook connect has different selection on the checkboxes?.  Kindly provide snapshot if it is possible.

Jitendra

Mani_kumar_
Community Advisor
Community Advisor
January 29, 2016
Hi, Are you testing this in publish or author environment if author login will be done via admin credentials sometime can you test the same thing once in publish and check if it so same behaviour.
Level 3
February 1, 2016

@korthivada

In publish instance also, it is showing the same behaviour.

Akshita

Level 2
March 16, 2016

Hello,

Any solution to the problem?

 

I am also facing same issue with AEM6.1 and here is steps I have taken;

  1. Created new fb app id
  2. App I'd is approved with require permission that is public_profile
  3. Created new cloud service with new fb app id
  4. And tested, it works fine but public_profile attributes doesn't appear like family name,   Given name, email address etc. 
  5. The name node is available with name only
  6. Next test...
  7. Tried with geomatrixx provided cloud service and works fine and almost all public_profile attributes nodes with value is available
  8. Next test...
  9. Tried to add app id in geomatrixx cloud service and the result negative once again with none public_profile attributes available
JK_Kendall
Level 9
March 17, 2016

Hi,

Akshita wrote :

 Found that it is working as expected with Facebook API v2.3 and below.

The issue exists for latest Facebook API v2.5.

Internally, we've been unable to reproduce the problem with Facebook API v2.5.

The current recommendation is to open a support ticket if you need v2.5.

- JK

JK_Kendall
Level 9
July 25, 2016

UPDATE : upgrade to AEM 6.1 Communities FP4 to get support for Facebook API v2.5.

JK Kendall wrote...

Hi,

Akshita wrote :

 Found that it is working as expected with Facebook API v2.3 and below.

The issue exists for latest Facebook API v2.5.

Internally, we've been unable to reproduce the problem with Facebook API v2.5.

The current recommendation is to open a support ticket if you need v2.5.

- JK