Re: AutoFacebook [Support]
Quote:
Originally Posted by
artistcsi
I finally got this contribution to work! YEAH! However, it was posting to the wrong FB page, but thanks to the replies here, that's fixed.
But now, since I have set it to the correct FB page, it is giving me an error when I input a new product:
Error Facebook Error: (#200) Posts where the actor is a page cannot also include a target_id
Has anyone else experienced this one?
http://www.zen-cart.com/forum/showth...=1#post1006094
I searched first, but didn't see this answer until after I posted, sorry :blush: However, its all good now.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Ducati87
nobody can help me?
Did you follow this guide? It has step by step instructions and still confirmed working. Also be sure your host allows JSON to connect but JSON is pretty much obsolete for facebook appilications so it should not be a huge problem if they do not support it.
Re: AutoFacebook [Support]
Has anyone managed to get the "£" sign working in autofacebook 2 yet?
Re: AutoFacebook [Support]
Quote:
Originally Posted by
knuckle-101
Did you follow this
guide? It has step by step instructions and still confirmed working. Also be sure your host allows JSON to connect but JSON is pretty much obsolete for facebook appilications so it should not be a huge problem if they do not support it.
ok now it works! Thx a lot! :clap:
Re: AutoFacebook [Support]
Quote:
Originally Posted by
sergiojg
I did the intallation without problems but now when i add an item on my zencart it say. Facebook was successfully updated! but in my facebook i don't see nothing. any idea ??
Same problem here any help would be greatly appreciated
Re: AutoFacebook [Support]
Quote:
Originally Posted by
3dsgiftsnThings
Same problem here any help would be greatly appreciated
I have the same problem, it's not showing up on FB at all.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
kashyyyk
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
Code:
<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>
preview_info.php
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
admim/includes/modules/
update_product.php around the autofacebook code
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
{
}
Actually in the if else, I don't know if something has to be placed in there when the box isn't checked.
No database updates needed, but make copies of the three files edited incase you have to go back and use them
Dan
Hi Dan,
I am not sure how you have gotten this to work with the code you have provided, there are many reasons why this doesn't work - too many to list.
I do have it working 100% correctly, it will add to Facebook when creating a new product from scratch or when updating a product and both methods are configurable in the create/update product page in the admin.
There is a fair amount to alter to get it to work, but the payoff is totally worth it. No more will you update FB every time you update a product. And now you can select which products to add to FB if you don't want every product added.
I will put together a post with the details of what to do and will also package it and update the contribution in the downloads area.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Dawl
I have the same problem, it's not showing up on FB at all.
To all that are having this problem, I have had it too and had to revert to the mod in the free downloads instead of the lite version. The version in the downloads does work.
Re: AutoFacebook [Support]
Hi, I just attempted to install this addon, and I followed all the instructions that were included, but when I get to step 8, to upload the file and run it, I get this:
Code:
Parse error: syntax error, unexpected T_NEW in /homepages/25/d210379780/htdocs/GarterShop/facebook_authorization.php on line 14
This is lines 10-18 from the facebook_authorization.php page, I don't know if it's needed for me to include it in this post, but I am just incase it needs to be seen.
Code:
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
if (!function_exists('curl_init')) {
throw new Exception('Facebook needs the CURL PHP extension.');
}
if (!function_exists('json_decode')) {
throw new Exception('Facebook needs the JSON PHP extension.');
}
Re: AutoFacebook [Support]
Regarding my last message: I found the problem, my PHP needed to be upgraded, so I went ahead and upgraded it and I was able to access the facebook_authorization.php page. Now the problem I am having is, when I submit a new product, it just takes me to a blank white page. It does not list the product to my shop or facebook.