Forums / All Other Contributions/Addons / Facebook Connect Integration

Facebook Connect Integration

Results 1 to 20 of 64
19 May 2010, 06:21
#1
xeontranq avatar

xeontranq

New Zenner

Join Date:
Feb 2010
Posts:
27
Plugin Contributions:
0

Facebook Connect Integration

hi all you zen cart php guru's

we have a zencart site http://www.ultracheapauto.com.au and would like to add a facebook connect option in the log-in screen , "ie let users sine up for a account useing there facebook account" i have seen sample code for this in a few places but i am unable to get it to work ... i can get the f/connect button into the site and it just doesnot make a account for the customer or intergrate into the cart ... can anyone help me please :)

does anyone know how to get zencart to accept/talk to facebook to recive the customers name , address, phone number , email.

the less places that people have to sine up on the net makes happer buyers

can someone point me in the right direction please :)

ps the sample code just for the facebook login is
PHP Code:
[PHP]<p><fb:login-button autologoutlink="true"></fb:login-button></p>
<p><fb:like></fb:like></p>

<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: 'XXXXXXXXXXXXX', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script> [/PHP]
i'm useing 1.3.9a
help needed :)
19 May 2010, 06:24
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Posts:
6,171
Plugin Contributions:
0

Re: Facebook Connect Integration

X,
Please do not double post..
Be patient, help will come soon... :smile:
19 May 2010, 06:27
#3
xeontranq avatar

xeontranq

New Zenner

Join Date:
Feb 2010
Posts:
27
Plugin Contributions:
0

Re: Facebook Connect Integration

soz i didn't realy know where to put this post , admin ppl please move to the right area please :) . no offence ment
19 May 2010, 06:55
#4
xeontranq avatar

xeontranq

New Zenner

Join Date:
Feb 2010
Posts:
27
Plugin Contributions:
0

Re: Facebook Connect Integration

after much looking i found a site that does do it

http://facebook.sistem.com.my
no contact info
but it does it!!!!
19 May 2010, 07:56
#5
igd avatar

igd

New Zenner

Join Date:
Nov 2004
Posts:
76
Plugin Contributions:
0

Re: Facebook Connect Integration

f/connect isn't really applicable to a zencart store since out of the box you cannot checkout as a guest. f/connect works on the premise of authenticating a user against your websites own auth/acl. Since zencart requires specific information to create an account, and not all facebook users have that information in their profiles to begin with, your really beating a dead horse.

The best approach you can take here is throw 15 - 20 hours of work at it and strip registration from zencart, us f/connect to authenticate, then modify the checkout process to register an account while they fill out there shipping/payment information. You could auto populate some fields, not many using the f/connect API.

Hope this helps, no small task.
19 May 2010, 22:48
#6
xeontranq avatar

xeontranq

New Zenner

Join Date:
Feb 2010
Posts:
27
Plugin Contributions:
0

Re: Facebook Connect Integration

oh ok , it looked like it could get most fealds it needed , facebook upgraded its api and from a working test i found that used f/connect as well as zen carts , it got email, name, DoB , and then it asked for a shipping addres at checkout time . but there is no info on that site , url in post above ^^^^ . if any zener knows the admin /maker can you let me now please :) ..... oh well , i'll just forget about it atm , i'm not skilled enuf in php codeing and don't want to brake zen :)


cheers all
06 Oct 2010, 01:56
#7
k3i7zy avatar

k3i7zy

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: Facebook Connect Integration

I have contacted you via the contact page on your webby.
As I am in the process of doing facebook stuff for http://www.wastelandapparel.com.
26 Jan 2011, 19:14
#8
jnunka avatar

jnunka

New Zenner

Join Date:
Jan 2011
Posts:
9
Plugin Contributions:
2

Re: Facebook Connect Integration

[QUOTE=IGD;885848]f/connect isn't really applicable to a zencart store since out of the box you cannot checkout as a guest. f/connect works on the premise of authenticating a user against your websites own auth/acl. Since zencart requires specific information to create an account, and not all facebook users have that information in their profiles to begin with, your really beating a dead horse.

Having the facebook connect isn't necessarily in-applicable. As people can pay as a guest through paypal express and set the option to add their paypal information to automatically create accounts for their customers.

The code above works to log into facebook when you paste it in includes/templates/template_default/templates/tpl_login_default.php

immediately after this code
<div class="centerColumn" id="loginDefault">

<h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1>


The problem is though that it only logs them into facebook
and they would have to know to use the express checkout option in order to pay as a guest and does not use the stores checkout routine. Which is all fine and dandy if they purchase something at which point it will grab their info from paypal. But the thing to do for those who log in with facebook would be to grab a minimum of their email and name and enter them into a seperate customer category to keep your store in fromt of them

How to do that is the question.

At which point this would be a great thing o have for building lists
26 Jan 2011, 19:30
#9
jnunka avatar

jnunka

New Zenner

Join Date:
Jan 2011
Posts:
9
Plugin Contributions:
2

Re: Facebook Connect Integration

But the thing to do for those who log in with facebook would be to grab a minimum of their email and name and enter them into a separate customer category to keep your store in front of them

I meant to say that:

but the thing to do for those who log in with facebook and do not complete a purchase would be to grab a minimum of their email and name and enter them into a separate customer category to keep your store in front of them
18 Apr 2011, 10:52
#10
cycshop avatar

cycshop

New Zenner

Join Date:
Apr 2011
Posts:
3
Plugin Contributions:
0

Re: Facebook Connect Integration

Demo: http://www.batterylaptops.co.uk

facebook apps: facebook.com/developers/apps.php

--------------------------------
Installation
--------------------------------
1. backup following files: "includes/modules/pages/login/header_php.php", "includes/modules/pages/logoff/header_php.php"
2. import "install_sql.sql".
3. upload all files to the server.
4. edit login template file: "tpl_login_default.php", Add the following code at the top of the blank:

<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '<?php echo $facebook->getAppId(); ?>',
session : <?php echo json_encode($session); ?>, // don't refetch the session when PHP already has it
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});

// whenever the user logs in, we refresh the page
FB.Event.subscribe('auth.login', function() {
window.location = "<?php echo zen_href_link('facebook', '', 'SSL'); ?>"
});
};

(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
<div>Have a Facebook account? <fb:login-button perms="email"></fb:login-button></div>

5. finally, Edit "includes/extra_configures/facebook-config.php" , replace "appId" and "secret" field.
18 Apr 2011, 13:20
#11
kdays avatar

kdays

Zen Follower

Join Date:
May 2008
Posts:
239
Plugin Contributions:
0

Re: Facebook Connect Integration

Looks good, I logged into your store and started a checkout. Hope you don't mind, but it seemed to work very well.

Thank you for sharing. I'm off to install on my test site for a bit of a play myself now :)
18 Apr 2011, 14:10
#12
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Posts:
2,400
Plugin Contributions:
0

Re: Facebook Connect Integration

Let me be the first to ask: what does it do?

Rob
24 Apr 2011, 02:40
#13
ponemano avatar

ponemano

New Zenner

Join Date:
Apr 2011
Posts:
1
Plugin Contributions:
0

Re: Facebook Connect Integration

Where would the sql file be imported to or installed?
24 Apr 2011, 03:12
#14
cycshop avatar

cycshop

New Zenner

Join Date:
Apr 2011
Posts:
3
Plugin Contributions:
0

Re: Facebook Connect Integration

under admin menu, please select tools => Install SQL Patches, then select sql file import data.
26 Apr 2011, 02:14
#15
richardzhao avatar

richardzhao

New Zenner

Join Date:
Apr 2011
Posts:
1
Plugin Contributions:
0

Re: Facebook Connect Integration

It's very good, thanks.
I have some questions when using it.
1. COWOA is installed firstly.
2. Add "xmlns:fb="http://www.facebook.com/2008/fbml" to support IE.

I have used it : fashion wholesale
05 May 2011, 21:20
#16
erickmiller avatar

erickmiller

New Zenner

Join Date:
May 2011
Posts:
8
Plugin Contributions:
0

Re: Facebook Connect Integration

Found this module late last night and tried to install it. I'm fairly technically capable w/ php & client, server, etc, (maybe i should be way more modest sounding lol) since, I've hit a bit of a wall...

So, first off, I want to say -- I went and tried it on your site first. This module really looks fantastic. Looks like lots of thoughtful user experience click-reduction work has gone into it and really is exactly what I was looking for to hook zen into fb quickly -- plus it's perfect b/c I've already been coding up an integrated contest app so having this & sharing app ID's should only help spread the love.

So -- thank you so much for the contribution.

Unfortunately I've poured through the code and can't get it to work.

Critical fails poped up multiple times during the execution process, this is no doubt due to the "Easy Signup" module and the COWOA modules I've installed (I guess I should say I speculate, instead of sounding so sure of myself) -- SQL was the first place it failed -- COWOA had gotten wiped from the customer table.

I fixed that, added it back to the table. Re ran some SQL cmds, etc... man zen cart really needs some abstract protected interface methods for it's modules.... but, anyways.... I was able to restore.

Now, it gets past the index.php=login and goes to index.php=facebook --- in the facebook module, it fails.
Actually, to be more precise, it never enters into the first case statement around $_POST , ie, if( defined($_POST[ ..... ) {

It doesn't get in there because $_POST is undefined. Tried echo, printr and frwite of $_POST to a file but all came back with NADA. So, the most important SESSION variables are getting lost somewhere along the line it looks like -- problem is I don't really know zencart's chain of execution well enough from when fb: button is hit to what is supposed to happen -- and then, what is the crap on my server that is almost definitely overriding what is supposed to happen.... then, by the time the ENV of the server gets to call your script it's all cleared out?

I don't know, I'm grasping now. Going to go dig into the scripts and try to find do some execution tracing, safely installing, debugging and generally sandboxing a zencart module seems...uh, not really possible - so, not surprised there are conflicts like this in the code with other stuff you couldn't have anticipated.
Really appreciate help figuring it out and solving any problems if you can! Thank you!!
06 May 2011, 23:15
#17
baracudamax avatar

baracudamax

New Zenner

Join Date:
Jul 2010
Posts:
33
Plugin Contributions:
0

Re: Facebook Connect Integration

Please help.. I have 1.38a version and i get blank screen on homepage. I've done everything right with the installation.:cry:
07 May 2011, 16:34
#18
jnunka avatar

jnunka

New Zenner

Join Date:
Jan 2011
Posts:
9
Plugin Contributions:
2

Re: Facebook Connect Integration

Ok. I have it installed exactly as described in the read me file.

I am using 1.3.9h and all works fine until you hit the proceed button after entering your information. When I do this, this is the error I get


1054 Unknown column 'COWOA_account' in 'where clause'
in:
[select count(*) as total from customers where customers_email_address = '[email protected]' and COWOA_account != 1]


I visited the fashion shop and I love how it automatically with one click creates the account.

How do I get rid of this error and do exactly what the fashion shop has done?
07 May 2011, 16:41
#19
jnunka avatar

jnunka

New Zenner

Join Date:
Jan 2011
Posts:
9
Plugin Contributions:
2

Re: Facebook Connect Integration

baracudamax:

Please help.. I have 1.38a version and i get blank screen on homepage. I've done everything right with the installation.:cry:



Most likely, you haven't followed the file structure correctly or you replaced files that you have previously modified with other customizations and didn't use a comparison tool to make sure no template specific file were affected when you uploaded these new files.

IE winmerge.
08 May 2011, 00:12
#20
baracudamax avatar

baracudamax

New Zenner

Join Date:
Jul 2010
Posts:
33
Plugin Contributions:
0

Re: Facebook Connect Integration

Solved!!!:smile: I saw my debug log and json extension was not installed. After install it everything is ok....