Re: AutoFacebook [Support]
Well I can't say for sure, as I started zen cart @ 1.3.8, but in theory the code isn't that integrated to the new versions. You might have to find some variable names, but maybe not.
I wouldnt overwrite the existing update_product.php, instead copy the AutoFacebook code into it.
pm me the code for the existing file if need be.
Re: AutoFacebook [Support]
Hi Jamie
I was going to PM you my update_product.php to see if you could see why it is not posting price and description. But you have your PMs on not allowed.
I added the code below to my update_product.php as it has been modified. Is there anything else I need to add?
Code:
//AutoFacebook
$store_name = "My Store"; // store name i.e. "Mary's Car Shop", or "MikesCupcakes.com."
$store_url = 'http://www.mystore.co.uk'; //path to your store without the trailing "/"
$cur = '£'; //change to your currency symbol. Assumes symbol come in front of numbers
$new_message = "New Product!"; // change to whatever or leave the same. i.e "New Cupcake!"
//your facebook developer app info.
$appapikey = 'mykey';
$appsecret = 'mysecret';
$user_id = 'myid'; //id of your facebook store page
$infinite_session_key = 'Mysessionkey'; //from facebook app
// No Need to edit below here.
$prod_image = $store_url . "/images/" . $_POST['products_image'];
$price = $products_price;
$prod_url = $store_url . '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id;
$prod_name = implode(" ", $_POST['products_name']);
$prod_description = implode(" ", $_POST['products_description']);
include_once 'facebook/php/facebook.php';
$facebook = new Facebook($appapikey, $appsecret);
$facebook->api_client->user = $user_id;
$facebook->api_client->session_key = $infinite_session_key;
$facebook->api_client->expires = 0;
$attachment = array(
'name' => $prod_name,
'href' => $prod_url,
'caption' => 'Price: '. $cur . $price,
'description' => $prod_description,
'media' => array(array('type' => 'image',
'src' => $prod_image,
'href' => $prod_url)));
$action_links = array(
array('text' => $store_name,
'href' => $store_url));
$attachment = json_encode($attachment);
$action_links = json_encode($action_links);
$facebook->api_client->stream_publish($new_message, $attachment, $action_links);
//end of autoFacebook
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
Well I can't say for sure, as I started zen cart @ 1.3.8, but in theory the code isn't that integrated to the new versions. You might have to find some variable names, but maybe not.
I wouldnt overwrite the existing update_product.php, instead copy the AutoFacebook code into it.
pm me the code for the existing file if need be.
Concerning Zen version 1.3.6: Using Winmerge I merged the two update_product.php. Everything seems to be working fine except that the product image is missing. Any idea what that may be an indication of?
Thanks
Re: AutoFacebook [Support]
@meltdown let me see the code. pm's should be on now.
Anyway this price issue is baffling me. It works fine on my end everywhere i try it. For those who aren't seeing price, what does it look like on facebook? Are you seeing the dollar sign '$' and then nothing? are you seeing 'Price: ' and then nothing?
Re: AutoFacebook [Support]
Hi jamielife
Want to say thanks for the mod.
Ifigured out the reason mine was posting to both my personal and business pages was because id selected both users and pages in the app settings lol
As for the price issue, im not getting anything show on facebook other than the image and the model name
Re: AutoFacebook [Support]
Quote:
Originally Posted by
deathman2006
As for the price issue, im not getting anything show on facebook other than the image and the model name
But is that on purpose?
Re: AutoFacebook [Support]
No, id like the price too, dont want the description but would like the price
Re: AutoFacebook [Support]
Hi Jamie,
I am trying to install autofacebook.
I am using 1.39b
All goes fine until I get to the page where it says Click Here to allow your page all permissions to your app.
Every time I click this it doesn't go anywhere and stays on that page so I dont get my infinite key and can't complete the install.
Any ideas what I am doing wrong?
Cheers
Paul
Re: AutoFacebook [Support]
Quote:
Originally Posted by
skipper_2
Hi Jamie,
I am trying to install autofacebook.
I am using 1.39b
All goes fine until I get to the page where it says Click Here to allow your page all permissions to your app.
Every time I click this it doesn't go anywhere and stays on that page so I dont get my infinite key and can't complete the install.
Any ideas what I am doing wrong?
Cheers
Paul
It might be face book... what happens after you click the 'step 2' link? Ive noticed facebook is going through a lot of problems right now. I kept getting redirected to a black page in recent tests... if i clicked the empty (black) screen it would move forward. If you ever get to look at the facebook forums you'll see that just about every developer is extremely annoyed with facebook right now. They moved to their "open graph" platform without telling anyone (so that we could adjust our scripts) and now everythings breaking right and left. and the worst part is their new API (that was supposed to be a "renewed support for developers" or whatever) is incomplete and totally undocumented. Anyway (make sure you followed the steps in this forum) try again later, and i'll look into it tomorrow or sunday.
Re: AutoFacebook [Support]
First of all, thanks a lot for this great contribution, i'm sure more and more store owners will use it in the future.
I have just finished installing it and it works great, except 2 little details:
1. Price is in $. I sell in £. How would i change the currency?
2. The product description is not showing. I tried your fix as per post 25 with no result. The image, tittle, everything else is working properly. If you would like to see it for yourself, here is the link to the facebook store page:
http://www.facebook.com/pages/Peterl...8428230?ref=ts