Jump to content

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


Recommended Posts

Hi all,

module dont work in my shop 1.6.0.6 so that i deleted this module but 2 button "facebook login" and "facebook register" is always present in my shop.

How can i delete 2 this button? thanks verry much.

 

http://diy4vn.com/en/login?back=my-account

 

Hi delete this:

4. Edit file authentication.tpl (file is located in your theme directory) place the login and registration with Facebook links. You can put the links anywhere.

 

Note: If your using the default theme authentication.tpl is in folder /themes/default/authentication.tpl

 

<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='Register 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>

.

.

 

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Thanks a lot. The module works great on laptop/computers but the option to signin with facebook does not show up on the Mobiles/tables,(in responsive mode).

 

Please help.

 

Also I had a question in mind that i wanted to ask here. I mean no disrespect but am concerned with the security while using this Module. Is it safe to be used?

 

Here is the snapshot

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...
  • 4 weeks later...

 

2.To change the form's language, you have to go to registration_fb.tpl (modules/fbconnect_psb/views/templates/front) and change:

 

 

In my particular case, i changed it for es_ES. And now the form is in perfect spanish.

 

 

Thank you very much for the module! By the moment it works perfect!

 

 

I changed it to:

<script src="{$protocol_content}connect.facebook.net/sl_SI/all.js#appId={$fb_connect_appid}&xfbml=1"></script>

 

,but it translate only few fields, some fields are in english, like:

To save you time, the registration form below has been prefilled using your Facebook profile.

 and Name and public information, password field, buuton Register+text(Be the first of your friends to register!)

Clicking Register will also give 112pc.si access to your Facebook friends list and other public information. Nothing will be shared with 112pc.si until you click Register.

 

 

How to translate all text+buttons?

  • Like 1

Share this post


Link to post
Share on other sites

Anybody, anything? Cant it be translatable?

 

You can try on my page: www.112pc.si

 

I find some code on facebook developers page, but I am not code master, so I cant help anything with that..

 

<script>
// This is called with the results from from FB.getLoginStatus().
function statusChangeCallback(response) {
console.log('statusChangeCallback');
console.log(response);
// The response object is returned with a status field that lets the
// app know the current login status of the person.
// Full docs on the response object can be found in the documentation
// for FB.getLoginStatus().
if (response.status === 'connected') {
// Logged into your app and Facebook.
testAPI();
} else if (response.status === 'not_authorized') {
// The person is logged into Facebook, but not your app.
document.getElementById('status').innerHTML = 'Please log ' +
'into this app.';
} else {
// The person is not logged into Facebook, so we're not sure if
// they are logged into this app or not.
document.getElementById('status').innerHTML = 'Please log ' +
'into Facebook.';
}
}

// This function is called when someone finishes with the Login
// Button. See the onlogin handler attached to it in the sample
// code below.
function checkLoginState() {
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
}

window.fbAsyncInit = function() {
FB.init({
appId : '{your-app-id}',
cookie : true, // enable cookies to allow the server to access
// the session
xfbml : true, // parse social plugins on this page
version : 'v2.0' // use version 2.0
});

// Now that we've initialized the JavaScript SDK, we call
// FB.getLoginStatus(). This function gets the state of the
// person visiting this page and can return one of three states to
// the callback you provide. They can be:
//
// 1. Logged into your app ('connected')
// 2. Logged into Facebook, but not your app ('not_authorized')
// 3. Not logged into Facebook and can't tell if they are logged into
// your app or not.
//
// These three cases are handled in the callback function.

FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});

};

// Load the SDK asynchronously
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

// Here we run a very simple test of the Graph API after login is
// successful. See statusChangeCallback() for when this call is made.
function testAPI() {
console.log('Welcome! Fetching your information.... ');
FB.api('/me', function(response) {
console.log('Successful login for: ' + response.name);
document.getElementById('status').innerHTML =
'Thanks for logging in, ' + response.name + '!';
});
}
</script>

 

Share this post


Link to post
Share on other sites

After days of troubleshooting redirect loop problem, I think it's fine now. I edit file:

https://github.com/Ha99y/PrestaShop-modules-fbConnect_psb/blob/master/fbconnect_psb/views/templates/front/registration_fb.tpl

cleared cookies of facebook and my page in browser.. and seems to be ok!

 

Main problem was not in that file, I think. But problem is there if you register on page over facebook account, and then delete same user and try again (also, if you delete app in your personal profile). When you will connect with facebook, it will connect and app will be added to your FB profile, but then there is loop redirect ..

Edited by micho88 (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 3 weeks later...
  • 3 weeks later...

Deem uma olhada na minha loja, http://shop.lehstore.com.br/minha-conta

 

O que acham?

 

Beautiful, congratulations. 
This is version 1.6 of prestashop? What module did you use? Have you SSL Certificate?

---------------------------------------------------------------------------

Bonitas, parabéns. 
Esta é a versão 1.6 do prestashop? O módulo que você usa? você tem o SSL certificado?
Edited by ingrossoerisparmio (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

Vocês conseguiram? Olha como ficou a minha: http://shop.lehstore.com.br/minha-conta

 

 

Beautiful, congratulations. 
This is version 1.6 of prestashop? What module did you use? Have you SSL Certificate?

---------------------------------------------------------------------------

Bonitas, parabéns. 
Esta é a versão 1.6 do prestashop? O módulo que você usa? você tem o SSL certificado?

 

 

Versão 1.6.

 

Usei o modulo fbconnect_psb_v1.06b

 

Fiz algumas alterações e deu certo!

 

Não estou usando certificado ainda. Mas em breve irei adquirir um.

 

no arquivo authentication.tpl deixei:

 

 

<a title="{l s='Registrar com o Facebook' mod='fbconnect_psb'}" href="{$link->getModuleLink('fbconnect_psb', 'registration', array(), true)}"><img src="{$modules_dir}/fbconnect_psb/img/facebook_register.png"/>{l s='' mod='fbconnect_psb'}</a>

<a title="{l s='Entrar com o Facebook' mod='fbconnect_psb'}" href="{$link->getModuleLink('fbconnect_psb', 'login', array(), true)}"><img src="{$modules_dir}/fbconnect_psb/img/facebook_login.png"/>{l s='' mod='fbconnect_psb'}</a>

mod_fbconnect_psb.zip

Share this post


Link to post
Share on other sites

Vocês conseguiram? Olha como ficou a minha: http://shop.lehstore.com.br/minha-conta

 

 

Versão 1.6.

 

Usei o modulo fbconnect_psb_v1.06b

 

Fiz algumas alterações e deu certo!

 

Não estou usando certificado ainda. Mas em breve irei adquirir um.

 

no arquivo authentication.tpl deixei:

 

 

<a title="{l s='Registrar com o Facebook' mod='fbconnect_psb'}" href="{$link->getModuleLink('fbconnect_psb', 'registration', array(), true)}"><img src="{$modules_dir}/fbconnect_psb/img/facebook_register.png"/>{l s='' mod='fbconnect_psb'}</a>

 

<a title="{l s='Entrar com o Facebook' mod='fbconnect_psb'}" href="{$link->getModuleLink('fbconnect_psb', 'login', array(), true)}"><img src="{$modules_dir}/fbconnect_psb/img/facebook_login.png"/>{l s='' mod='fbconnect_psb'}</a>

 

Obrigado pela forma e instruções. Eu segui o que você disse para mim e eu vejo o botão. 
Quando clico facebook me dá essa mensagem de erro: 
"URL dado não é permitido pela configuração Aplicação .: Um ou mais dos URLs dado não é permitido pelas configurações do aplicativo. Ele deve corresponder ao URL do site ou lona URL, ou o domínio deve ser um subdomínio de um dos domínios do aplicativo".
Como posso corrigir isso? Eu anexar a imagem do erro.
-----------------------------------------------------------------------------------------------------------------------------------------------------
Thank you for the form and instructions. I followed what you said to me and I see the button. 
When I click, facebook gives me this error message: 
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.
How can I fix this? I attach the image of the error.
fb_connect_error.png
 

Share this post


Link to post
Share on other sites

The following module(s) were not installed properly:

  • - fbconnect_psb : 
    Unable to install override: The method logout in the class Customer is already overriden.

how to fix it

Share this post


Link to post
Share on other sites

Hi,


We are using prestahop version 1.6.0.9 but facebook modul is not working properly due to redirect issues . When I will clear cookies from browser i will get first registration page but that's all .. Second redirect is not working and if you will try to  register same user on prestashop  first registration formular will be not showing anymore (user was deleted before from prestashop database ..but cookies weren't deleted from browser). Is it latest release of facebook connect module compatible with prestashop version 1.6.x  ?

Share this post


Link to post
Share on other sites
  • 1 month later...

There is an error to get the user photo.

 

controllers/front/link.php

'fbconnect_psb_fb_picture' => 'https://graph.facebook.com/'.$fb_user_profile['username].'/picture',

 

Correct:

'fbconnect_psb_fb_picture' => 'https://graph.facebook.com/'.$fb_user_profile['id].'/picture',

 

Hope it helps someone.

Edited by patrickcabral (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites
  • 3 weeks later...
  • 4 weeks later...
  • 4 weeks later...

 

This Facebook Connect module is for PrestaShop 1.5+ to auto login in with Facebook Connect profile credentials.

 

Requires:

- SSL

- Domain (won't work on localhost)

 

Features:

- connect with facebook

- does not require core modifications

- override Customer.php file auto installed (as of v1.05b to fix a log-out issue)

- the installation is fast and simple

 

Compatibility:

- PrestaShop 1.5.x

 

GitHub: https://github.com/Ha99y/PrestaShop-modules-fbConnect_psb/

 

You will need a Facebook App ID before you start using the Module. You can use the ID of an existing app.

 

To Get a New App ID

 

1. Create a new app on the Facebook App Dashboard (https://developers.facebook.com/apps/), and enter your app's basic information.

post-304183-0-28861900-1369093492_thumb.

 

 

2. Once you've created the app, note the app ID & App Secret shown at the top of the dashboard page.

post-304183-0-96939100-1369093496_thumb.

 

3. Update the module App ID & Key setting

post-304183-0-63514700-1369094159_thumb.

 

4. Edit file authentication.tpl (file is located in your theme directory) place the login and registration with Facebook links. You can put the links anywhere.

 

Note: If your using the default theme authentication.tpl is in folder /themes/default/authentication.tpl

 

<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='Register 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>

.

.

On 1.06b you can run "DB Update" from with in the module

If your upgrading & need to save the old Facebook links

  • Export your customer_profile_connect table from DB.
  • Uninstall & delete the old module.
  • Install the new module
  • Import the data from the old table back to the new table

 

 

Hello HA!*!*Y,

 

First thanks for the plugin. It did work in my PS 1.6.0.11 perfectly. However, there are few questions that I have which are listed below. Appreciate your time.

 

  1. Currently, when I click on the "Login with Facebook" link, the Facebook opens up on the same page instead of a PopUp. How can this be fixed.
  2. How can I change the look and feel of the Registration Page. The reason is purely from Customer stand point. Currently, the design (look and feel) is of Facebook and the page asks for Password. From the end consumer point of view, they are confused whether by entering the password again are they changing the Facebook password. (Major concern is security). I believe Vekia also posted the question on password.

I am a merchant and not a programmer but trying to learn by looking at other tpl files. So appreciate your time. Earlier I was using the OneAll module and there seems to be a major issue with them post login as it merges the Person A account details with Person B account, despite changes in the settings.

 

Looking forward

Edited by yashman (see edit history)

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 1 month later...
  • 3 weeks later...

 

Obrigado pela forma e instruções. Eu segui o que você disse para mim e eu vejo o botão. 
Quando clico facebook me dá essa mensagem de erro: 
"URL dado não é permitido pela configuração Aplicação .: Um ou mais dos URLs dado não é permitido pelas configurações do aplicativo. Ele deve corresponder ao URL do site ou lona URL, ou o domínio deve ser um subdomínio de um dos domínios do aplicativo".
Como posso corrigir isso? Eu anexar a imagem do erro.
-----------------------------------------------------------------------------------------------------------------------------------------------------
Thank you for the form and instructions. I followed what you said to me and I see the button. 
When I click, facebook gives me this error message: 
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.
How can I fix this? I attach the image of the error.
fb_connect_error.png
 

 

Hi any news about it,becasuse i cannot proceed with Fb connect?

 

Thanks

I'm using ps1.6.14

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hi, the module works if I try on a PC Browser, but with mobile devices I have this error:

 

This dialog is not available on this device.

API Error Code: 4202
API Error Description: This dialog can not be displayed on this device
Error Message: This method is not supported for this display type
 
Any idea how to solve this?

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 3 weeks later...

Im getting the same error and sometimes a redirect loop

 fb_connect_error.png

 

if any solution, please be so kind

I haved same error.

I solve it changing the type of facebook app, First I select Facebook Canvas, but then I change to Facebook web site and I could add my website url in settings. This resolved the problem.

Edited by stevengiraldo (see edit history)

Share this post


Link to post
Share on other sites
  • 1 month later...

I have installed this module on my store and after login from facebook. It is redirected back to an empty page. I am using SSL license and full permissions to all files. Please let me know what is the issue ?

Share this post


Link to post
Share on other sites

Same here.
I had this working on the earlier PS and just decided to reinstall on  PS1.6

 

Cant register or log in using this module.

 

If I log in manually, then go into "account/facebook Login Manager" I get the following error:

 

Sorry, there was a error when we tried to link your account with Facebook. Our Site admin has been notified of error, once it's resolved you will be sent a email notice.

 

Any ideas

 

Thanks

Share this post


Link to post
Share on other sites

Oops just seen reply.

I accidently deleted the fb app I was using before so created a new one.

 

If I'm not logged in facebook and click "sign in using fb" on ps it does direct me to facebook to sign in, asks me for permission and then goes back to ps.

But it doesn't actually log into the store, it just brings up the site but with nothing in the centre column.

 

:(

Share this post


Link to post
Share on other sites

In the Microsoft Edge Developer Tools I see this error:

 

FB.getLoginStatus() called before calling FB.init().​

 

 

Also, ive noticed when I click the "Login with FB" it goes to this link

/module/fbconnect_psb/registration

Is that right ? as "module" isn't a directory on my site

Edited by MerseyRay (see edit history)

Share this post


Link to post
Share on other sites

In the Microsoft Edge Developer Tools I see this error:

 

FB.getLoginStatus() called before calling FB.init().​

 

 

Also, ive noticed when I click the "Login with FB" it goes to this link

/module/fbconnect_psb/registration

Is that right ? as "module" isn't a directory on my site

 

This module works fine on PS 1.6.0.1?

Share this post


Link to post
Share on other sites

It did work prior to upgrading. So im thinking either another updated module of java problem ?

 

Try going on our site and try registering via the module. It goes throught the process then directs to a blank content page

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 2 months later...
  • 1 month later...

I tried it on prestashop 1.6.1.1, there's an error with username, it should be name and you should remplace username in picture link in module/controllers/front/link.php, like this:

 

'fbconnect_psb_fb_picture' => 'https://graph.facebook.com/'.$fb_user_profile['id'].'/picture',
'fbconnect_psb_fb_name' => $fb_user_profile['name']

And i added the picture profile in blockuserinfo, you should some code from module/controllers/front/link.php,

Some enhancement : when the user is logged in, redirect him to his my to update his address or to his identity page.

 

You can look the module is workin here

 

Share this post


Link to post
Share on other sites
  • 1 month later...

Hello, i have registration problem.

 

Script stops on: module/fbconnect_psb/registration and i see my template without content, only i can see in html source: <fb:registration... and all other stuff from view file. I think there should be redirect to uri, but cant understand why page is not redirecting. Maybe somebody had this problem and solved?

 

If I am user, I can associate my account with facebook account, also I can login.

Share this post


Link to post
Share on other sites

Hi, 

 

I have this message : 

 

Removed AUTO INCREMENT
Note: Did not drop primary key because could not find any.
Note: Index was already set to id_customer
 
What should I do ?
 
Best regards 

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 1 month later...
  • 3 months later...

Hello to all, congratulations for the module. PERFECT. Just one question . When customers during the purchase process they click "Enter with facebook " after they are redirected to your personal page . you can continue directly to the customer purchase ?

THK U

Hello to all, congratulations for the module. PERFECT. Just one question . When customers during the purchase process they click "Enter with facebook " after they are redirected to your personal page . you can continue directly to the customer purchase ?

 

http://www.baronecalzature.it

Edited by baronecalzature (see edit history)

Share this post


Link to post
Share on other sites
  • 4 months later...

Good Moorning,

I have a problem with this module.

I deleted a user prestashop and made a new registration with facebook that has the same user email deleted. The problem is that by signing in with facebook nothing happens and remain in login.

 

Thanks in advance

Share this post


Link to post
Share on other sites
  • 1 month later...

Hello, 

like many of us I have the "ERR_TOO_MANY_REDIRECTS"   after register or login. How can I solve this problem? I tried everything that read on this forum but still same problem.

Share this post


Link to post
Share on other sites
  • 3 months later...
Hi friend! I was started to use Prestashop platform recently and I need some help with your Facebook Connect Module.

I think my issue is simple and I believe the problem is not in the code, but in my Facebook application Configuration.

The module is connecting, but not return to a valid page and not registering a client with the user information.

 

Sorry my english, I'm Brazilian. 

I'm using the version 1.6 of Prestashop.

Share this post


Link to post
Share on other sites
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More