I followed the video to the letter, even watched it through once and then started it again and followed the steps, anyway though that's the error I get![]()
I followed the video to the letter, even watched it through once and then started it again and followed the steps, anyway though that's the error I get![]()
hmmm, took it out of Sandbox mode and put www in front of the URL and now I get this
{
"error": {
"message": "Invalid redirect_uri: Given URL is not permitted by the application configuration.",
"type": "OAuthException",
"code": 191
}
}
It's ok I've sorted it - stupid STUPID mistake, when I copied and pasted the app id and secret to the php file there was a space at the start, deleted that and now it works fine
HOWEVER
when I post to facebook the product comes out with the price as £19.990 - how do I limit the decimal points?
My facebook acc. has been login by someone! So I changed the password. But when I update the product information, it shows:
Facebook Error: Error validating access token: The session has been invalidated because the user has changed the password.
Does anyone could tell me how to fix it? Thanks in advance for your help!
I have just installed this addon and uploaded the corrected file. When using i try to open the facebook_authorization.php file i get this error
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
}
I have changed the file with my token id etc exactly as shown in the youtube video. Is this something to do with face book developers site being slightly different now.
Any help on this matter would be heaps appreciated.
My website is www.toycave.com.au and im trying to upload my items to my facebook site. www.facebook.com/toycavebabytoys
I have only just set up my facebook and facebook page.
It's supposed to come after the closing bracket so it should look like this:
The other poster had it like this:PHP Code:
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$facebook_add = $_POST['facebook_add'];
PHP Code:
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
$facebook_add = $_POST['facebook_add'];
}
Thankyou Lankee for your response and I apologize for being a bit terse but I had been working on this file for an hour.
I am still getting a white screen and I have double checked all of the code do you have any suggestions.
with thanks
No worries. Look in your error log to see what error(s) are occurring to give the white screen. It will be something simple. You can also post the code from that page here and I can look at it. Put it in between theto make it easier to read.PHP Code:
php brackets from the toolbar of the message text editor
From update_product.php
PHP Code:
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$facebook_add = $_POST['facebook_add'];
if (isset($_GET['pID'])) $products_id = zen_db_prepare_input($_GET['pID']);
PHP Code:
'products_price_sorter' => zen_db_prepare_input($_POST['products_price_sorter'])
'facebook_add' => zen_db_prepare_input($_POST['facebook_add'])
);
PHP Code:
//// INSERT PRODUCT-TYPE-SPECIFIC *INSERTS* HERE //////
if ($facebook_add == 1) {
//AutoFacebook
From preview_info.phpPHP Code:
$messageStack->add_session('Facebook Error: '.$fberror, 'error');
}
}
//// *END OF PRODUCT-TYPE-SPECIFIC INSERTS* ////////
PHP Code:
p.product_is_always_free_shipping, p.products_qty_box_status, p.products_quantity_order_max,
p.products_sort_order, p.facebook_add
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
From collect_info.phpPHP Code:
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
$facebook_add = $_POST['facebook_add'];
if ($facebook_add == 1) {
echo "Facebook Will be Updated.";
} else {
echo "Facebook Will NOT be Updated.";
}
?>
</td> </tr>
<tr>
<!--EO FACEBOOK-->
</td>
PHP Code:
'master_categories_id' => ''
'facebook_add' => ''
);
$pInfo = new objectInfo($parameters);
PHP Code:
p.products_price_sorter, p.master_categories_id, p.facebook_add
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
PHP Code:
default: $in_products_quantity_mixed = true; $out_products_quantity_mixed = false;
}
if (!isset($pInfo->facebook_add)) $pInfo->facebook_add = '0';
switch ($pInfo->facebook_add) {
case '0': $is_facebook_add_enabled = false; $not_facebook_add_enabled = true; break;
case '1': $is_facebook_add_enabled = true; $not_facebook_add_enabled = false; break;
default: $is_facebook_add_enabled = false; $not_facebook_add_enabled = true;
}
// set image overwrite
when I use this the product screen in admin goes blank.PHP Code:
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main">Add/update Facebook?</td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('facebook_add', '1', $is_facebook_add_enabled) . ' Yes ' . zen_draw_radio_field('facebook_add', '0', $not_facebook_add_enabled) . ' No ' . ($pInfo->facebook_add == 1 ? 'Add to facebook?' : ''); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCT_IS_FREE; ?></td>
I used the cut and paste method to do this.
any help please.
Peter
Bookmarks