New Zenner
- Join Date:
- May 2007
- Posts:
- 2
- Plugin Contributions:
- 0
AutoFacebook [Support]
A big THANK YOU! for you Jamie.
Installation work like a charm.

Views: 141,424
New Zenner
A big THANK YOU! for you Jamie.
Installation work like a charm.

New Zenner
countrycharm:
Glad you got it work out., but never put your actually facebook
app_id number, app_secret number down so other people can see it, Big mistake. I would delete that application and make another one if this is your actual numbers.
Thank you for the advice and I'll do just that - makes for good practice anyway LOL
again Thank you for you response and advice!
Zen Cart Version 1.39h
PHP 5
New Zenner
I must be the biggest dummy here. I have gotten through the installation part. Received the page ID and Page token placed that into the update_products.php where instruction uploaded that back to my server.
I have gone back to Facebook added the application to my business page as favorites page or should I have just added it to my page?
I am creating test products for the purpose of testing the upload feature. From the admin side of zen cart when I add the test product zen carts shows that facebook has been successfully updated. When I go to the application profile or any of my business/personal pages to check for it I can not see where the test product has been posted
I have read through this thread and changed the update_product.php from the one supplied in the mod to the original and inserted the facebook code at line 88. still I see no updates on facebook.
I know I must be the biggest dummy here but maybe someone can help me figure out what I am doing wrong since there are so many that have gotten this to work properly.
I've talked to my web host he says he has JSON cURL and running PhP 5+ installed on the server and I am using zen cart version 1.39f
Zen Cart Version 1.39h
PHP 5
New Zenner
Hi Jamie.
Installation V2 on 1.3.8a works a charm.
Quick question - what do I need to tweak in the code for the price to be quoted INCLUDING tax on facebook? Currently quotes excluding tax which is a bit backwards for the Aussie market. I can see it creating confusion!
New Zenner
This has got me really confused apparently its working but publishes to the wrong page.
Well at least I have something to go on here LOL
Zen Cart Version 1.39h
PHP 5
New Zenner
Here are a couple of the pages I manage on Facebook
The one that I am trying to get zen cart auto publish too is this one.
The one that it is publishing to is this one.
Does anyone know enough about Facebook that can help me understand why this is publishing to one but not to all my pages?
Zen Cart Version 1.39h
PHP 5
New Zenner
I manage multiple pages. this new update was very streamlined and very easy to implement. But it's not updated the correct page. How do i designate which page the AutoFacebook updates?
New Zenner
cavatappo:
I manage multiple pages. this new update was very streamlined and very easy to implement. But it's not updated the correct page. How do i designate which page the AutoFacebook updates?
Are you referring to your main profile page?
As of right now it seems it is a requirement to create a new Page on facebook to make this work where the application you create on Facebook, it does not like to update your main profile for some reason but this is not mod related as far as I can tell.
New Zenner
bluedotted:
Are you referring to your main profile page?
As of right now it seems it is a requirement to create a new Page on facebook to make this work where the application you create on Facebook, it does not like to update your main profile for some reason but this is not mod related as far as I can tell.
Not my main profile page. I maintain 7 different business fanpages. When i set this up, it automatically posted to the wrong fanpage. How do I change which fanpage it autoposts to? It was not good for the dinner special to be posted on the spanish harlem movie page. :)
New Zenner
Attempting to run facebook_authorization.php and received the following error:
Notice: Undefined offset: 1 in C:\Inetpub\shopping.imagineighborhoods.com\facebook_authorization.php on line 956Fatal error: Uncaught CurlException: 60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed thrown in C:\Inetpub\shopping.imagineighborhoods.com\facebook_authorization.php on line 599
I got to the facebook login page ok, logged in, clicked the "Allow" button, then received this error. I'm on zen-cart v1.3.9f, fresh install of AutoFacebook 2.0, PHP 5.2 build 3790, with:
My platform is Windows Server 2003, IIS6.
Any help would be appreciated.
New Zenner
Resolved the SSL Error above shortly after I posted it. Problem was that cURL needed an updated CA list. Used http://davidwalsh.name/php-ssl-curl-error to help with the fix.
To fix:
Step 1. Goto http://curl.haxx.se/docs/caextract.html downlaod cacert.pem and add it to your PHP root directory.
Step 2. Modify facebook_authorization.php by adding the following code right after any occurance of curl_init();
curl_setopt($ch,CURLOPT_CAINFO,"C:\PHP\cacert.pem");
Where C:\PHP is your path to your PHP root.
Step 3. Make the same modification from Step 2 to the following file: admin\includes\modules\facebook\facebook.php
Once I made these mods, Auto Facebook works like a charm.
I didn't get a chance to try this, however, it may be possible to use the direct link to the cacert.pem file http://curl.haxx.se/ca/cacert.pem in the curl_setopt code.
Zen Follower
It looks the old autofacebook version 1 doesn't work any more. I cannot insert new products to my website. It showed a HTTP 500 Internal server error page. But i can still update exsiting products.
But, when I delete all the autofacebook code from update_product.php in admin/includes/modules, I can insert products again. Anybody has the same problem?
Totally Zenned
lina0962:
It looks the old autofacebook version 1 doesn't work any more. I cannot insert new products to my website. It showed a HTTP 500 Internal server error page. But i can still update exsiting products.
But, when I delete all the autofacebook code from update_product.php in admin/includes/modules, I can insert products again. Anybody has the same problem?
You need to Upgrade to version 2
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
New Zenner
Does anyone know how to designate which fanpage the autofacebook module posts to?
Totally Zenned
jamielife:
Yeah it was designed to do that, I just needed to see the structure of the products_description array.
Go a head and delete those 3 lines for now.
I'm looking into this.
jamielife did you happen find a fix yet? Thank you in advance
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
Zen Follower
cavatappo:
Does anyone know how to designate which fanpage the autofacebook module posts to?
that's definited by in the $page_id
if you'd like to specify go to your page in your browser and you should see the page's id number in the address bar. then in (update_product.php) just page $page_id ="your page id" that specific number.
Jamie Taylor
Htmyell Web Design and Development
Zen Follower
countrycharm:
jamielife did you happen find a fix yet? Thank you in advance
No sadly I haven't. I can't reproduct the problem myself on my servers to test anything, so it make's it much harder to find a solution.
I think that because of this, the problem is random and probably based on settings in your server's php.ini file. I have asked developers better than me and we all seem to be stumped on this.
The variale info is there and obviously fine (judging by from var_dump). Something is happening when it's being sent to facebook.
Perhaps you could try encoding the data;
find line 104 where you see:
$prod_description = $_POST['products_description'][$_SESSION['languages_id']];
and add a new line under it that looks like;
$prod_description = urlencode($prod_description);
I'm sorry I can't be more help on this.
Also, thanks for helping out on the forum!
Jamie Taylor
Htmyell Web Design and Development
Zen Follower
Hobby Link:
Hi Jamie.
Installation V2 on 1.3.8a works a charm.
Quick question - what do I need to tweak in the code for the price to be quoted INCLUDING tax on facebook? Currently quotes excluding tax which is a bit backwards for the Aussie market. I can see it creating confusion!
I'm not too familiar with all the zencart tax stuff but I would imagine find:
$price = $products_price;
around line 101 of your update_product.php file and change it to:
$price = $_POST['products_price_gross'];
I think that should do it.
Jamie Taylor
Htmyell Web Design and Development
Zen Follower
bluedotted:
Turn erorr reporting off and now getting this via ftp
[30-Aug-2010 02:30:58] PHP Fatal error: Uncaught QueryParseException: An active access token must be used to query information about the current user.
thrown in /home/xxxx/public_html/facebook/facebook_authorization.php on line 532
>
> Only thing is I have checked the ID and Secret a hundred times
Have you made any progress on this? Are you getting to the facebook allow access page?
somethings to check;
- make sure the domain is set up correctly and the script is hosted on the domain specified durring set up
- check all vars (id, urls, etc)
- make sure have JSON installed
- make sure that the page is linked to an actual user account.
let me know if that helps.
Also thanks as well for helping out on the forum.
Jamie Taylor
Htmyell Web Design and Development
New Zenner
Problem has been solved, I contacted the web host and they found the issue and fixed it, according to them they already contacted you about the Facebook App not completely being created from the facebook side of the process.
Tell staff why this post should be reviewed.