Skip to main content
Topic: Need Help with Social Login and Register (Read 4983 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Need Help with Social Login and Register

Hi,

Can someone please help me with this? To be upfront, I'm a complete noob, so some of what's fuzzy to me may be very clear to everyone else. Please indulge me.

I'm trying to connect Elkarte to Facebook so members who have Facebook don't have to login separately to Elkarte once logged into Facebook. I've downloaded and uploaded the "Social Login and Register" add-on package, followed the instructions to set it up on Facebook (created app, added oAuth URL e.t.c..) but when I go to my forum page, I don't see an option to login using Facebook, or anything like that. What am I doing wrong?  :(

http://addons.elkarte.net/feature/External-Auth.html

P.S:  I posted on the thread for this add-on, but it was last active over 12 months ago, so not sure anyone will see/respond to it.

Re: Need Help with Social Login and Register

Reply #1

Hi @fremzy I assume you already followed the path described in the screenshots like:
https://raw.githubusercontent.com/Spuds/Elk_Social_Login/master/sample_images/sample1.png
to enable first the addon and later enable the FB registration and add the key, right?
Bugs creator.
Features destroyer.
Template killer.

Re: Need Help with Social Login and Register

Reply #2

Quote from: emanuele – Hi @fremzy I assume you already followed the path described in the screenshots like:
https://raw.githubusercontent.com/Spuds/Elk_Social_Login/master/sample_images/sample1.png
to enable first the addon and later enable the FB registration and add the key, right?

Hi Emanuele,

Thanks so much for responding. I don't have settings for oAuth Providers as shown in that image. Here's a screenshot of my settings page. Perhaps I've neglected to do something?

Re: Need Help with Social Login and Register

Reply #3

Can you please check if you have "Extauth.integration.php" in the sources directory?
Bugs creator.
Features destroyer.
Template killer.

Re: Need Help with Social Login and Register

Reply #4

Quote from: emanuele – Can you please check if you have "Extauth.integration.php" in the sources directory?

I don't. :flushed:

Re: Need Help with Social Login and Register

Reply #5

That may explain quite a bit of things. :D
Most likely the install failed for some reason. The first that comes to my mind are file permissions.
I'd say try check the file permissions, they should usually be 644 for files and 655 for folders (if I remember correctly).
Ownership may be a little more tricky, but check also that and if it matches with the apache server. Otherwise the permissions should be 755 and 777.
Bugs creator.
Features destroyer.
Template killer.

Re: Need Help with Social Login and Register

Reply #6

Quote from: emanuele – That may explain quite a bit of things. :D
Most likely the install failed for some reason. The first that comes to my mind are file permissions.
I'd say try check the file permissions, they should usually be 644 for files and 655 for folders (if I remember correctly).
Ownership may be a little more tricky, but check also that and if it matches with the apache server. Otherwise the permissions should be 755 and 777.

Thanks again for your assistance. I checked permissions - 644 for files and 755 for folders. I didn't get any error message during installation, so I don't know what could have gone wrong.
That "Extauth.integration.php" file you mentioned, can I just find a copy of it and pop it in the 'Sources' folder? Would that work?

Re: Need Help with Social Login and Register

Reply #7

Quote from: fremzy – I checked permissions - 644 for files and 755 for folders.
that should be fine
Quote from: fremzy – That "Extauth.integration.php" file you mentioned, can I just find a copy of it and pop it in the 'Sources' folder? Would that work?
I am not using this add-on, but you can download the add-on and unzip it on your pc, then copy the file sources/Extauth.integration.php to sources folder. I also suggest to open with a text editor the file package-info.xml and check if the other files were copied.

have a look at this piece of code
Code: [Select]
		<require-dir name="sources/ext" destination="SOURCEDIR" />
<require-file name="sources/Extauth.controller.php" destination="CONTROLLERDIR" />
<require-file name="sources/ExtauthAdmin.controller.php" destination="ADMINDIR" />
<require-file name="sources/Extauth.subs.php" destination="SUBSDIR" />
<require-file name="sources/Extauth.integration.php" destination="SOURCEDIR" />
<require-file name="themes/default/Extauth.template.php" destination="THEMEDIR" />
<require-file name="themes/default/1.1/Extauth.css" destination="THEMEDIR/css" />
<require-file name="themes/default/english/Extauth.english.php" destination="LANGUAGEDIR/english" />
 where:
SOURCEDIR = /sources
CONTROLLERDIR  =  /sources/controllers
SUBSDIR = /sources/subs
THEMEDIR = /themes/default
sorry for my bad english

Re: Need Help with Social Login and Register

Reply #8

Quote from: radu81 –
Quote from: fremzy – I checked permissions - 644 for files and 755 for folders.
that should be fine
Quote from: fremzy – That "Extauth.integration.php" file you mentioned, can I just find a copy of it and pop it in the 'Sources' folder? Would that work?
I am not using this add-on, but you can download the add-on and unzip it on your pc, then copy the file sources/Extauth.integration.php to sources folder. I also suggest to open with a text editor the file package-info.xml and check if the other files were copied.

have a look at this piece of code
Code: [Select]
		<require-dir name="sources/ext" destination="SOURCEDIR" />
<require-file name="sources/Extauth.controller.php" destination="CONTROLLERDIR" />
<require-file name="sources/ExtauthAdmin.controller.php" destination="ADMINDIR" />
<require-file name="sources/Extauth.subs.php" destination="SUBSDIR" />
<require-file name="sources/Extauth.integration.php" destination="SOURCEDIR" />
<require-file name="themes/default/Extauth.template.php" destination="THEMEDIR" />
<require-file name="themes/default/1.1/Extauth.css" destination="THEMEDIR/css" />
<require-file name="themes/default/english/Extauth.english.php" destination="LANGUAGEDIR/english" />
where:
SOURCEDIR = /sources
CONTROLLERDIR  =  /sources/controllers
SUBSDIR = /sources/subs
THEMEDIR = /themes/default


Thank you, radu81!

I unzipped the add-on on my system as advised, then grabbed the "sources/Extauth.integration.php" file and copied it to the server. Then I compared all the files and folders from the unzipped add-on on my system with what exists on the server. I noticed that MOST of the files and folders in the unzipped file were not on the server. So, I manually copied them to the server in the appropriate locations.

Then, I used the code you gave and made the changes to package-info.xml (which by the way did not exist on the server before). Then I refreshed my Elkarte settings page and still had the same thing (only change was a warning that I hadn't deleted the install file which I just uploaded).

What am I doing wrong?

Re: Need Help with Social Login and Register

Reply #9

You don't need to edit the file, just open it and check if all the files were correctly copied

eg:   <require-file name="sources/Extauth.subs.php" destination="SUBSDIR" />
check if in  /sources/subs you have a file called Extauth.subs.php
sorry for my bad english

Re: Need Help with Social Login and Register

Reply #10

Quote from: radu81 – You don't need to edit the file, just open it and check if all the files were correctly copied

eg:   <require-file name="sources/Extauth.subs.php" destination="SUBSDIR" />
check if in  /sources/subs you have a file called Extauth.subs.php

Okay, I just checked and moved the files that were missing to those locations. Still no luck. That "oAuth Providers" tab is still missing.

Re: Need Help with Social Login and Register

Reply #11

Because then there is to run add_remove_hooks.php (put it in the root of the forum and point the browser to it).
Though, this leaves the issue that any future addon fremzy will try to install will still very likely have the very same issue. Oh well, we will see what time comes.
Bugs creator.
Features destroyer.
Template killer.

Re: Need Help with Social Login and Register

Reply #12

Quote from: emanuele – Because then there is to run add_remove_hooks.php (put it in the root of the forum and point the browser to it).
Though, this leaves the issue that any future addon fremzy will try to install will still very likely have the very same issue. Oh well, we will see what time comes.

I did this and got a message saying "Congratulations, you have successfully... "

But I still don't have that 'oAuth Providers" tab :cry:

Re: Need Help with Social Login and Register

Reply #13

hmm...
I haven't tried it, I guess I have to cleanup an install and try the addon to see. From the code I don't see any obvious error.
Bugs creator.
Features destroyer.
Template killer.

Re: Need Help with Social Login and Register

Reply #14

Quote from: emanuele – hmm...
I haven't tried it, I guess I have to cleanup an install and try the addon to see. From the code I don't see any obvious error.

I'd appreciate the help, if you can?