go ...go...goooo.... it's OKKKKKKKK :clap: :bigups:
Printable View
go ...go...goooo.... it's OKKKKKKKK :clap: :bigups:
Hi all, been using AutoFacebook Lite for a while now with no problems up until recently, now my images dont appear on the facebook post... eveything else is fine just no image of the product!
Anyone had this issue?
I moved my autoFacebook low on the update_product.php page so my items will update even when I edit an item because I like to duplicate and edit for new items, but sometime I just change quantities because of ebay sales and don't want them to update at facebook as a new item, sometimes I have zero quantity and don't want to disable the item.
I changed some files, just so you know, I know just enough PHP to get me in trouble sometimes.
I may add to the lanquage files later, but for me this works
Here is what I edited-
admim/includes/modules/product/
collect-Info.php
preview_info.php
collect-Info.php- I added in bold and where
preview_info.phpCode:<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main">Facbook Update </td>
<td class="main"> <input type="checkbox" name="facebook_update" value="Yes" />Check for yes</td>
</tr> <tr>
<td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_weight', $pInfo->products_weight); ?></td>
</tr>
admim/includes/modules/Code://auto replace with defined missing image
if ($_POST['products_image_manual'] != '') {
$products_image_name = $_POST['img_dir'] . $_POST['products_image_manual'];
$pInfo->products_name = $products_image_name;
}
if ($_POST['image_delete'] == 1 || $products_image_name == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == '1') {
echo zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->products_description;
} else {
echo zen_image(DIR_WS_CATALOG_IMAGES . $products_image_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->products_description;
}
?>
<!--BO FACEBOOK-->
</tr><tr>
<td><hr></td>
</tr><tr>
<td class="smallText">
<?php
if ($facebook_update == "Yes") {
echo "Facebook Will be Updated.";
} else {
echo "Facebook Will NOT be Updated.";
}
?>
</td> </tr>
<tr>
<!--EO FACEBOOK-->
</td>
</tr>
<?php
if ($pInfo->products_url) {
?>
<tr>
<td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo sprintf(TEXT_PRODUCT_MORE_INFORMATION, $pInfo->products_url); ?></td>
</tr>
<?php
update_product.php around the autofacebook code
Actually in the if else, I don't know if something has to be placed in there when the box isn't checked.Code:if ($facebook_update == "Yes") {
//AutoFacebook light
$pageID = "edited"; //received when signing up.
// no need to edit below this line
$prod_vars = array(
'page' => $pageID,
'prod_image' => $_POST['products_image'],
'price' => $products_price,
'prod_name' => $_POST['products_name'][$_SESSION['languages_id']],
'prod_description' => $_POST['products_description'][$_SESSION['languages_id']],
'prod_url' => '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id, );
$url = "http://apps.htmyell.com/fbpageid/sendvars.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $prod_vars);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
if (isset($result['success'])){ $messageStack->add_session('Facebook was successfully updated!', 'success');}
else if (isset($result['error'])){ $messageStack->add_session('Facebook Error: '.$result['error'], 'error'); }
else { $messageStack->add_session('Error: '. $result, 'error'); }
//end of autoFacebook
}
else
{
}
No database updates needed, but make copies of the three files edited incase you have to go back and use them
Dan
First of all, thanks a lot for this great contribution.
I have just finished installing it and it works great, except the photo which doesn't appear.
why?
thanks to all
but it's jpg..
and I see different stores which use this addon and they have the same problem.
my FB Page is:
http://www.facebook.com/home.php?sk=...07267829327027
thank you
Okay the next thing to check is the image size that you are uploading to zencart is it a very large image that you are using for your products? If so resize them to smaller and see if that works
Also note .JPG is not accepted by facebook either it is has to be .jpg small letter extensions just something to check for.
I am using this module on several websites and I cannot see where the problem maybe as you see here all images are working and these were posted a few hours ago looking for any issues :unsure:
when I see your page, I find the same problem. then I decided to use a program to open blocked site.
then the page work correctly.
I note that the images use URL contain ( "Proxy" word ), in my country "Syria" ISP block all URL contain this word "proxy".
can I use different URL?
the URL is:
http://platform.ak.fbcdn.net/www/app_full_proxy.php?app=153337474723207&v=1&size=z&cksum=9676546873abf610597c1c4f90ea1873&src=h ttp%3A%2F%2Fcart.mc4sy.com%2Fimages%2Ffilms2%2F1053.jpg
thank you very much
The proxy address you mention is part of the Facebook Platform unfortunately there is nothing that can be done on the zencart side.