oh ...uh... I think it might be the SSL settings on my server, this is a new set up I'm still configuring -- does that ring any bells w/ anyone?
oh ...uh... I think it might be the SSL settings on my server, this is a new set up I'm still configuring -- does that ring any bells w/ anyone?
Nope, take that back. SSL is all set up, had that done a many days back.
New update.
Just quadruple checked my json which is true, and i do have installed... good so far...
<?php echo( extension_loaded("json")); ?>
...but found the obvious problem, why I'm losing the session data, haha. I was diving in to debug the meat of the php code when it's right there in the tpl_ <?php > javascript html code, getting NULL back from json encode on $session. Eh? Will look into that right now, shouldn't that be $_SESSION? Hmm, will report back in a few.
window.fbAsyncInit = function() {
FB.init({
appId : '#confidential#',
session : null, // 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
});
Notice the 'null' that is getting suck into the session variable
Ok. So I solved it. Had nothing to do with $session, this is a facebook api thing, which I realized pretty quickly after looking at it for five more seconds. Finally had another few minutes to look at this last night and solved it.
This is a case of me being old at php & new at zen cart. But, I think others could have the same problem, even though it's partially an id 10 T error on my part.
The problem was, that in the zip file attached, there are two things that, if not done correctly, will cause a failure at installation.
1) The COWOA_account ALTER line appears to cause problems after installation, requiring the patch I previously posted.
2) The "tpl_*" files in the .zip attached to this thread, are in the wrong directory to just "copy the files to your server" as the installation instructions for the module state. If I was more of a seasoned zenner I would have picked up on this immediately, but, as it is, it took me tracing through almost every single script before I came to this realization. Well, learned some stuff along the way, starting to respect this whole zen cart thing a bit more.
Most importantly, these two files need to be NOT HERE:
./includes/templates/template_default/tpl_modules_facebook.php
./includes/templates/template_default/tpl_facebook_default.php
BUT, rather they should be in your custom template directory:
./includes/templates/YOUR_TEMPLATE/templates/tpl_modules_facebook.php
./includes/templates/YOUR_TEMPLATE/templates/tpl_facebook_default.php
Or, if for some reason you're running off the default template, they should be in the default template directory, ie:
./includes/templates/template_default/templates/tpl_modules_facebook.php
./includes/templates/template_default/templates/tpl_facebook_default.php
But, regardless, they certainly should not be where they are in the attached zip file if you want the module to work. Good news is, if you put the files in the correct spot, the facebook connect seems to work great.
Only problem is it does not appear to play nicely with the phpBB integration... so I went and disabled that.... and I also customized some of the code for the sign on form so that it gives the option to subscribe to the email list, since this version disables that option for some reason. At any rate, Overall, this plugin is great - thanks for the contribution, really came at the right time for the site I'm working on! Cheers.
S.O.S
After install it and login with my facabook acount i get this
Forbidden
You don't have permission to access /facebook/ on this server.
i have changed the permissions on the folder but nothing please help....
I was able to get this module working with the customizations that erickmiller pointed out.
I wanted to bring up a certain scenario. If a user already has an account on my site where they didn't use facebook connect to create it, but later decide to log in via facebook, I would like for the module to detect that that email already exists in my customers table and assign their facebook ID to that already existing account. As it is now, it looks like it will just create another account for them. Maybe this module isn't set up to handle that case yet, but I was wondering if anyone else wanted this functionality, and if so has anyone gotten it to work this way? Thanks.
I install appeared when the following error don't know how to solve.
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.
Who can help me? thank you.
ok I installed this mod and it seems like its working but its not...
when a customer clicks on the facebook button a new window opens up (facebook page) but receive an error "An error occurred. Please try again later."
Maybe it is me not knowing how to set up my site on facebook page?
I do have my App ID and App Secret from when i set up my like button...
anyone here that might know what I need to do / doing wrong...
![]()