Jump to content
HA!*!*Y

[Free Module] Facebook Connect (Register/Login) for PS1.5

Recommended Posts

The following module(s) were not installed properly:

  • - fbconnect_psb :
    The version of your module is not compliant with your PrestaShop version.

 

What is your PrestaShop version?

 

To override the version limit edit file /modules/gconnect_psb/gconnect_psb.php

 

Update the max ps_versions_compliancy to 1.6 from 1.5.4.1

 

 $this->need_instance = 0;
 $this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.6');
 parent::__construct();

Share this post


Link to post
Share on other sites

Hi,

 

Its not working. Please view here. After Login or Register, it just redirects to

 

 

https://localhost/en...sb/registration

 

https://localhost/en...nnect_psb/login

 

with empty content

 

samuelk this is because Facebook plugins do not load on localhost (127.0.0.1) you have to use a publicly available site URL. You could install a new PS in a sub-folder to test the module if want to. Also you have to have a SSL Facebook requires it.

 

@HA!*!*Y: Can you post a demo page?

 

extrahard: Sorry I don't have a test URL

Edited by HA!*!*Y (see edit history)

Share this post


Link to post
Share on other sites

One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. #facebook

Edited by Ozota (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

Hi HA!*!*Y,

This really looks promising!

I have two comments:

  1. After login you check if there is an account linked to the facebook account and if it doesn't you throw a error message, it wouldn't be better creating and linking an account on the fly? (The user already give you facebook permission)
  2. At login you are trying to get $fb_user_profile['email'], but email is not coming on facebook's response (so you get an error).

Thank you so much for making this essential module!

Share this post


Link to post
Share on other sites

@HA!*!*Y: This module doesn't work on my site. My current version of Prestashop is v1.5.3.1 if you have demo URL I'll check it out if it's really working or not. I followed your step by step installation, I create my own facebook App, Install the module in back office, I paste my App ID & App Secret, and paste the code in 'authentication.tpl' wherein my current theme is located.

 

Please help me kindly check my test shop ---> HERE

Edited by extrahard (see edit history)

Share this post


Link to post
Share on other sites

unfortunately module doesnt work, checked it in 1.5.4.1 :/

Share this post


Link to post
Share on other sites

Hey, thank you for the free module. I have one problem. Instead of "text" - Registar with facebook, I need an image,for example :

http://fanshala.com/...up_facebook.png

 

How to edit the code :

<a title="{l s='Login with your Facebook Account' mod='fbconnect_psb'}" class="button_large" href="{$link->getModuleLink('fbconnect_psb', 'login', array(), true)}">{l s='Facebook Login' mod='fbconnect_psb'}</a>

 

<a title="{l s='Registrar with your Facebook Account' mod='fbconnect_psb'}" class="button" href="{$link->getModuleLink('fbconnect_psb', 'registration', array(), true)}">{l s='Facebook Register' mod='fbconnect_psb'}</a>

to show the button?

 

Thx for every idea. Carcin

 

I have 1.5.4.0 and it seems to be working.

Edited by Carcin (see edit history)

Share this post


Link to post
Share on other sites

- fbconnect_psb :

The version of your module is not compliant with your PrestaShop version.

 

Footer:

Czas ładowania: 0.632s

 

 

Line 33:

 

With:

$this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.5.4.1');

to

$this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.5.4.2');

 

and works with 1.5.4.1

Edited by dambie (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

It works perfectly!!!!

Thank you very much for this amazing option!!!

Share this post


Link to post
Share on other sites

Hi ! Thank you very much for sharing. But i'm beginner and i need more information to get a New App ID. Someone can explain me step by step ?

 

Thank you

Share this post


Link to post
Share on other sites

Hey,

 

I have an issue. When I press the Facebook login or register button I just get redirected to the same page empty.

 

What could be the problem?

 

//Malin

Share this post


Link to post
Share on other sites

Hey,

 

I have an issue. When I press the Facebook login or register button I just get redirected to the same page empty.

 

What could be the problem?

 

//Malin

 

We both encountered this same kind of problem. What could be the problem, anyone?

Share this post


Link to post
Share on other sites

Enable debugging in file config/defines.inc.php

 

define('_PS_MODE_DEV_', true);

 

@ini_set('display_errors', 'on');

define('_PS_DEBUG_SQL_', true);

 

This should display the error(s) on screen

 

PS. I won't be working on this module any further. Because I am working on a new module that will allow for multiple provider Login (FB, twitter, G-mail, Hotmail... and many more) for free without have to go through 3rd party API.

 

hopefully by the end of this month...

  • Like 2

Share this post


Link to post
Share on other sites

I also I have problems redirect to empty page, I use the version 1.5.3.1.

I enabled debugging, no errors appear.

 

Waiting impatiently for the new module or a solution to this...

 

Thx. :D

Share this post


Link to post
Share on other sites

i`m getting this error on facebook :(

 

i`m using PS 1.5.3.1

 

 

"Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. "

 

 

What should i do?

 

L.E ... i managed to resolve it... now the problem is:

 

After FB login i`m redirected to my website, but.... i`m not logged in :(

Edited by perusi (see edit history)

Share this post


Link to post
Share on other sites

i`m getting this error on facebook :(

 

i`m using PS 1.5.3.1

 

 

"Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. "

 

 

What should i do?

 

L.E ... i managed to resolve it... now the problem is:

 

After FB login i`m redirected to my website, but.... i`m not logged in :(

 

How did you solve that?

Share this post


Link to post
Share on other sites

How did you solve that?

 

I tested on your website, now i`m having the same problem as you. I`m redirected to my domain after login. (what you asked, i've entered my domain url into facebook apps)

Share this post


Link to post
Share on other sites
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

 

Now I know what's the problem.

My www.domain.com/subdomain wherein my prestashop installed doesn't have SSL Certificate, only my www.domain.com has SSL Certificate.

 

Hmm any Idea where can I get a FREE SSL Certificate?

Edited by extrahard (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

Hi!

 

I have problems with this great module. I don`t now how to configure my facebook application. I don`t know what to enter in "App Domains" and "Website with Facebook Login: Site URL". When I enter that links: p154.uchwytylcd.com.pl and http://p154.uchwytylcd.com.pl/index.php it`s redirect me to my site but I`m not log in. Pleas help!!!

Share this post


Link to post
Share on other sites

This module works perfectly :] When I turn on errors, I saw that my server haven`t implement algorithm hash_hmac required int this module. After intalling it, everything works ;] THX.

Share this post


Link to post
Share on other sites

Does the same module exist for Prestashop 1.4 (free, I mean) ?

 

My theme is not 1.5 compliant and I am looking for a solution here.

Share this post


Link to post
Share on other sites

This module works perfectly :] When I turn on errors, I saw that my server haven`t implement algorithm hash_hmac required int this module. After intalling it, everything works ;] THX.

I am confused how you fixed. Can you please give a more detailed explanation?

 

Thanks

Share this post


Link to post
Share on other sites

He instalado este módulo y no me aparece el icono para loguearme por ningún sitio.....

 

Http://disfraces.cadenalia.com

 

hello

we are in english forum section, i will be gratefull if in the future you will write here in english

thanks in advance

  • Like 1

Share this post


Link to post
Share on other sites

I used an old AP ID and code and secret from facebook, and it worked at once.

in "Website with Facebook Login" i have the adress off my domain only.

 

BUT!

Why does it ask for my facebook password?

Share this post


Link to post
Share on other sites

BUT!

Why does it ask for my facebook password?

 

where you have to insert facebook password? :|

Share this post


Link to post
Share on other sites

FBReg.jpg

 

Oh. It's not facebook password it asks for, It's a password for the site. Any password will do.

How do i translate this page, and reduce the numer of carracters for the password?

Allso. I am missing the question about Newsletter ...

Edited by Bergum (see edit history)

Share this post


Link to post
Share on other sites

Module works perfectly. (PS 1.5.4.1)

 

You can see it working on our site www.no-match.co.uk

 

We have wanted this for a long time.

 

Thanks :)

 

i have tried creating an account through facebook through your site, but it didn't works!!!

 

steps taken

click on the items that i like to purchase

check out

click on the facebook registation

no details are entered nor an account was set up

Share this post


Link to post
Share on other sites

steps taken

click on the items that i like to purchase

check out

click on the facebook registation

no details are entered nor an account was set up

 

Have you entered the facebook key and secret from Facebook?

Share this post


Link to post
Share on other sites

The version of your module is not compliant with your PrestaShop version. :((

 

v: 1.5.4.1 help mee :(

Share this post


Link to post
Share on other sites

See page one, halvway down:

 

- fbconnect_psb :

The version of your module is not compliant with your PrestaShop version.

 

Footer:

 

 

Czas ładowania: 0.632s

 

 

Line 33:

 

With:

 

$this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.5.4.1');

to

 

$this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.5.4.2');

 

and works with 1.5.4.1

 

The version of your module is not compliant with your PrestaShop version. :((

 

v: 1.5.4.1 help mee :(

 

See page 1, halvfway down.

 

- fbconnect_psb :

The version of your module is not compliant with your PrestaShop version.

 

Footer:

 

Czas ładowania: 0.632s

 

 

Line 33:

 

With:

 

$this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.5.4.1');

to

 

$this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.5.4.2');

 

and works with 1.5.4.1

Edited by Bergum (see edit history)

Share this post


Link to post
Share on other sites

See page one, halvway down:

 

- fbconnect_psb :

The version of your module is not compliant with your PrestaShop version.

 

Footer:

 

 

Czas ładowania: 0.632s

 

 

Line 33:

 

With:

 

$this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.5.4.1');

to

 

$this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.5.4.2');

 

and works with 1.5.4.1

 

 

 

See page 1, halvfway down.

 

- fbconnect_psb :

The version of your module is not compliant with your PrestaShop version.

 

Footer:

 

Czas ładowania: 0.632s

 

 

Line 33:

 

With:

 

$this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.5.4.1');

to

 

$this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.5.4.2');

 

and works with 1.5.4.1

 

 

Fatal error: Cannot redeclare class Customer in /var/www/vhosts/MySite.com/httpdocs/demo/classes/Customer.php on line 535

line 535: }

Share this post


Link to post
Share on other sites

how did you solve :

 

"Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. "

 

??????

Share this post


Link to post
Share on other sites

it mean that you have to use correct app id (wher you have correct page url) and in addition to this - make sure that you haven't got any additional module which define the app id first.

Share this post


Link to post
Share on other sites

it mean that you have to use correct app id (wher you have correct page url) and in addition to this - make sure that you haven't got any additional module which define the app id first.

 

I have used correct app id and also no additonal module

Still not working :mellow:

  • Like 1

Share this post


Link to post
Share on other sites

is there any chance to check your website? if so, please share the url i will check it with pleasure

Share this post


Link to post
Share on other sites

im online right now, but before you will activate it - please send me PM, then you will be sure that im online

Share this post


Link to post
Share on other sites

First off, great module you have made here! Works with out major technical problems except the change of version compatibility to 1.5.4.2. I already compiled the zip for that... I think the author should do the same and replace the Zip file to avoid questions about this silly little problem.

 

Also, the link

"Registrar with Your Facebook Account"

does not work for me, the link points to:

Which does not seem to make much sense. Its an unecissary link anyway since the buttons are all that is needed.

 

My problem:

 

Just like Bergum posted here above, I also need to be able to translate the front office text. Both the windows for the login which looks like it might come straight from Facebook, as well as the button text "login with facebook" and "register with facebook".

 

Is this possible?

 

Thanks for this great module, keep up the good work!

Edited by Snarlster (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

Hi, 

 

Im facing strange problem. 

 

I have installed this module and it looked like working fine. However, I noticed two issues. 

 

1) This app is only working for me( app owner facebook id). When logged in with other fb ids, its redirecting to blank page in the shop. 

2) When prompted for login in checkout process, after login its landing in my account page rather than address step of checkout.

 

My site is live now. www.omytus.com

 

can anyone help me to solve these issues.

 

Thank you very much. 

 

PrestaFanBoy

Share this post


Link to post
Share on other sites

Hi, 

 

Im facing strange problem. 

 

I have installed this module and it looked like working fine. However, I noticed two issues. 

 

1) This app is only working for me( app owner facebook id). When logged in with other fb ids, its redirecting to blank page in the shop. 

2) When prompted for login in checkout process, after login its landing in my account page rather than address step of checkout.

 

My site is live now. www.omytus.com

 

can anyone help me to solve these issues.

 

Thank you very much. 

 

PrestaFanBoy

 

@PrestaFanBoy

 

I had the same problem, this is not because of the module but because you still have your Facebook app in Sandbox mode, you change that in the Facebook Developer page.

 

good luck,

Share this post


Link to post
Share on other sites

I also I have problems redirect to empty page, I use the version 1.5.3.1.

I enabled debugging, no errors appear.

 

Waiting impatiently for the new module or a solution to this...

 

Thx. :D

 

 

Hi,

 

Did you solve your problem..?

 

Im on PS 1.5.3.1 and I have same issue.

 

Thank you.

 

PrestaFanBoy

Share this post


Link to post
Share on other sites

 

@PrestaFanBoy

 

I had the same problem, this is not because of the module but because you still have your Facebook app in Sandbox mode, you change that in the Facebook Developer page.

 

good luck,

 

 

 

Hi,

 

No. Im not in sandbox mode. It is visible to all.

 

PrestaFanBoy

Share this post


Link to post
Share on other sites

Hi,

 

No. Im not in sandbox mode. It is visible to all.

 

PrestaFanBoy

 

I just tried the Facbook login to your webpage and did not land on a empty page but an error page:

 

There is 1 error
Authentication failed.
« Back

when you go to: https://developers.facebook.com/apps

you should see on that page if sandbox mode is on or off.  It really looks like sandbox mode. 

 

There is such few settings for this thing, I cant really tell u much other than to check:

 

Plugin in Prestaback office: Confirm that the app secret and App ID are correct (perhaps regenerate new ones to try)

Facebook Developers apps: Make sure domain is correct (mine is without www now)

 

I actually ended up purchasing a different plugin since there was no translation for this one and I wanted Google+ login also, so perhaps I'm not the best one to be answering here ;)

Share this post


Link to post
Share on other sites

I just tried the Facbook login to your webpage and did not land on a empty page but an error page:

 

There is 1 error
Authentication failed.
« Back

when you go to: https://developers.facebook.com/apps

you should see on that page if sandbox mode is on or off.  It really looks like sandbox mode. 

 

There is such few settings for this thing, I cant really tell u much other than to check:

 

Plugin in Prestaback office: Confirm that the app secret and App ID are correct (perhaps regenerate new ones to try)

Facebook Developers apps: Make sure domain is correct (mine is without www now)

 

I actually ended up purchasing a different plugin since there was no translation for this one and I wanted Google+ login also, so perhaps I'm not the best one to be answering here ;)

 

 

Hi, 

 

Thanks for your reply:)

 

The error message is just a custom display message instead of blank page.. What is happening in my case is, facebook is not passing user's email id back to my shop so its failing validation. 

 

Im not sure why fb is not sending email back to my shop when requested.

 

Wonder is, if the user registers using 'register with facebook' option( its currently disabled in my shop), its letting user do direct login with fb credentials afterwards. But not straightforward. 

 

Unfortunately, the reasons for me are beyond sandbox and BO. They both are properly in place. :(

 

PrestaFanboy

Share this post


Link to post
Share on other sites

Hi, 

 

Thanks for your reply:)

 

The error message is just a custom display message instead of blank page.. What is happening in my case is, facebook is not passing user's email id back to my shop so its failing validation. 

 

Im not sure why fb is not sending email back to my shop when requested.

 

Wonder is, if the user registers using 'register with facebook' option( its currently disabled in my shop), its letting user do direct login with fb credentials afterwards. But not straightforward. 

 

Unfortunately, the reasons for me are beyond sandbox and BO. They both are properly in place. :(

 

PrestaFanboy

 

Permission problems perhaps? My current FB app permissions settings are "query string" and nothing above that so that should work for you also, but perhaps it would help to include email and name in the "User & Friend Permissions" (this is a total guess). 

 

Also, i think I had some problem with http vs https somewhere along the way... perhaps that could be the case?

Good luck :)

Share this post


Link to post
Share on other sites
on prestashop 1.5.5.0. in the process of completing the registration směserver answer Error 500

 


 

 

after reloading the page will redirect to the user's account and everything is ok

 


 

 

 

 

Everything is ok, the problem was with registration at PrestaShop version 1.5. 5.0 - 

Edited by pavelracak (see edit history)

Share this post


Link to post
Share on other sites

Hi created fb app, got the id and secret code put them in, then went to add those 2 lines in authentication.tpl. but cudnt fine any file with that name, so added then in authentication.php instead, but before that i backup my original file and it started giving this error

 

Warning: require(/home4/gbpuki/public_html/shunno.co.uk/config/config.inc.php) [function.require]: failed to open stream: No such file or directory in /home4/gbpuki/public_html/shunno.co.uk/index.php on line 27

Fatal error: require() [function.require]: Failed opening required '/home4/gbpuki/public_html/shunno.co.uk/config/config.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home4/gbpuki/public_html/shunno.co.uk/index.php on line 27

 

 

 

so then deleted the edited file and replaced the original file but still giving me same error .. how can i fix this ?

Share this post


Link to post
Share on other sites

Hi created fb app, got the id and secret code put them in, then went to add those 2 lines in authentication.tpl. but cudnt fine any file with that name, so added then in authentication.php instead, but before that i backup my original file and it started giving this error

 

 

 

so then deleted the edited file and replaced the original file but still giving me same error .. how can i fix this ?

 

@GouroB the file is located in side your theme directory.

 

If your using the default theme than it's in folder /themes/default/authentication.tpl

Share this post


Link to post
Share on other sites

Still getting the same error mate, and im pretty much stuck.. wud u be able to have a look please ? I just need to get the shop back to running... 

Share this post


Link to post
Share on other sites

Still getting the same error mate, and im pretty much stuck.. wud u be able to have a look please ? I just need to get the shop back to running... 

 

Send me the ftp info ill have a look

Share this post


Link to post
Share on other sites

I get the following message:

 

Removed AUTO INCREMENT
Note: Did not drop primary key because could not find any.
Note: Index was already set to id_customer

 

Exits to click on RUN DB Update, I have to do something else?

Share this post


Link to post
Share on other sites
Hey There,
 
I was looking for a Facebook login/register plugin and stumbeled upon this plugin, whilst it works alright, I wanted to translate the plugin but it seems to get it's information from Facebook, not allowing me to translate it. Is this correct? 
 
Do you have any suggestions on how I could translate the plugin?
To translate the registation form, open views\front\registration_fb.tpl and search for "<script src="{$protocol_content}connect.facebook.net/"
 
and change the language code after that piece to the one desired; see https://www.facebook.com/translations/FacebookLocales.xml for a list of Facebook locales and their codes.
 
A feature request; could a user be redirected to the page that he/she came from before registering? It currently sends a user to the user control panel. If a user is ordering something and needs to register before checkout, I'd like them to continue with the order as soon as they have been registered. Any hints/tips on how to achieve this myself is also welcome.
 
Thanks for the plugin nonetheless!
 
Oh and a note: If you click cancel when Facebook asks to give the app permission to the data, it redirects you to the same screen, if you press Cancel a few times, you get redirected to a Facebook help page that says that the app does not meet Facebook standards for apps. In other words, it should properly cancel the permission and go back to the webshop instead of repeating to ask permission. See: https://www.facebook.com/help/258359927634494
 
 
 
And as for:
 

I am getting a redirect loop between facebook and my site. Any idea what could be causing this?

 

 

I experienced this whilst testing; it happened to me after I deleted an account that was regged via Facebook and tried to register with it again; you need to remove the permissions at Facebook for the app before re-registering. A new user should not have a problem with it afaik.

Edited by Spherix (see edit history)

Share this post


Link to post
Share on other sites

is there any way to implement this without having SSL on the website?

Or is there any way to put SSL on website without paying internet service provider? 

As far as I have seen on the facebook website it doesn't seem to be necessary...

Share this post


Link to post
Share on other sites

I installed the module successfully and it works fine but I need the button removed after login, how can we do that?

Now the Facebook login button remains on top even after login

 

I also need to change the appearance from text button to a facebook logo, what should I change in the module?

Share this post


Link to post
Share on other sites

Thanks HA!*!*Y great modul!

 

It works great but on Firefox 25.0 and IE 10 the registration page looks like this:

Fail.png

It is cut off, in Chrome and Safari the whole form is shown. I tried to change the registration_fb.tpl and add a height="700" behind the width="530" but it did not help.

 

<fb:registration 
fields='[
{"name":"name"},
{"name":"first_name"},
{"name":"last_name"},
{"name":"email"},
{"name":"password"},
{"name":"birthday"},
{"name":"gender"}]'
redirect-uri="{/literal}{$redirect_uri}{literal}" width="530"></fb:registration>
 
Any Suggestions?
 
I use Prestashop 1.5.5 and Verison fbconnect_psb_1.06b.zip
Edited by tha_phu (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

Him im trying to isntall on prestashop 1.5.5, im getting this error. unable to install manual control. the method logout in Customer group is already in manual control prestashop.

Please i need some help

Share this post


Link to post
Share on other sites</