How to Enable Facebook Login in Elgg

Written by Rodolfo Hernandez Tuesday, 30 August 2011

Some users were saying that they could not find a working Facebook Login plugin. There is only one working so far. This article gives a step by step guide on how to enable Facebook login in Elgg:

1. First, we download the working Facebook Services Plugin from aniduprutta here.

2. Unzip the file. After that, with an FTP manager, connect to your website public_html. Then, go the folder mod and upload the plugin in that folder:

3. Now, login as an administrator in your Elgg site, and go to the Tools Administration page, then look for the plugin that you just installed, which is facebookservice:

4.  Then click on Enable. After enabling it, you will need to configure the plugin. Click on the settings link of the plugin. There, you will need to enter your Facebook API Public and Secret Key. Enter it and select Yes to Allow users to sign on with Facebook. Save your changes:

5. Now, users are going to be able to login to your site with their Facebook credentials.

I hope you have found this article useful. If you experience problems with this plugin, ask here for support.

This now concludes how to enable Facebook login in Elgg

Looking for quality Elgg Hosting? Look no further than Arvixe Web Hosting!

Happy Hosting!

Rodolfo Hernandez



12 Comments

  1. Sam   |  Sunday, 25 September 2011 at 3:20 am

    Hi.

    Thank for the Plugin.

    I did as per your steps but I got this error below:

    Error
    An error occurred with student2student Login. Please try again later.

    API Error Code: 191
    API Error Description: The specified URL is not owned by the application
    Error Message: redirect_uri is not owned by the application.

    Please help. Thank you.

  2. Rodolfo Hernandez   |  Sunday, 25 September 2011 at 4:58 am

    Which version of elgg are you using?

  3. Sam   |  Sunday, 25 September 2011 at 9:01 pm

    I am using 1.8

  4. Rodolfo Hernandez   |  Tuesday, 27 September 2011 at 5:46 am

    @Sam You will get that error ’cause this is fo 1.7 I will upload a guide for 1.8

    Rodolfo Hernandez
    Arvixe/Elgg Community Liaison

  5. Sam   |  Tuesday, 27 September 2011 at 6:05 am

    @Rodolfo Oh ok. Thank you for the reply. When would that be? Could you please drop me an email when the 1.8 is available?

  6. gastre   |  Thursday, 20 October 2011 at 2:10 am

    Hello rj.
    I make this, but in the index don’t appear the facebook button.

    Spanish:
    Hola Rj, gracias por el documento. ya he seguido todos estos pasos, de echo tengo funcionando otro plugin tambien llamado facebookservice para actualizar el wire en facebook sin problemas. El problema que tengo es que no me aparece el botón de facebook en el index. He puesto el index normal, ya que tengo un custom-index pero lo he desactivado.
    ¿Que parametros habría que poner en el custom index para que aparezca? es que me estoy volviendo loco, jeje.
    He probado con otro plugin, y con ese si consigo que aparezca, pero abre una ventana y se cierra al momento.
    Un saludo y gracias.

  7. Rodolfo Hernandez   |  Saturday, 22 October 2011 at 11:05 pm

    Hello Gastre!

    Ok, tienes que poner el codigo de login with facebook en tu custom index:

    El path es:

    facebookservice\views\default\facebookservice/login.php

    Este es el codigo

    <?php
    /**
    *
    */

    $facebook_link = facebookservice_get_authorize_url();

    $login = <<<__HTML

    __HTML;

    echo $login;
    ?>

    Rodolfo Hernandez
    Arvixe/Elgg Community Liaison

  8. Dyaz   |  Wednesday, 26 October 2011 at 3:11 pm

    Hi
    Thanks for this post.
    I did all of this. I’m Using Elgg 1.7.14. When a user want to register, it takes him to facebook, and all the authorization process seems to work on the facebook side. But then the user is taken to the login of my site again. And when he click on login with facebook again, it simply refresh the page.
    Can you help me ?
    Thanks.

  9. Rodolfo Hernandez   |  Thursday, 27 October 2011 at 9:33 pm

    Hi Dyaz,

    Did you create your API public and secret key correctly? Did you set on facebook the domain in which you will be using the App? Did you set your App to allow login with facebook?

  10. Dyaz   |  Friday, 28 October 2011 at 6:15 pm

    Yes I did all that. All the authorisation proccess works perfectly.

  11. Chad   |  Wednesday, 14 March 2012 at 8:02 am

    I am using a very custom theme and I want to put the FB login in a different spot. What code to I need to put where I want the FB button to appear?

    thanks!
    chad

  12. Rodolfo Hernandez   |  Thursday, 15 March 2012 at 3:23 pm

    On the facebook plugin you need to get the code of the facebook login and put it wherever you want.

Leave a Reply






nine − = 8