-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
outeredge2
in step 8 it says to run from your browser.... What does this mean?
http://www.yoursite.com/facebook/fac...horization.php (it is recommended to create a directory named facebook and add authorization file in it.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
knuckle-101
Run the facebook script within your browser (IE, FIrefox, Safari) FF or Safari recommended for best results
when I tried I got a fail message!?!?
-
Re: AutoFacebook [Support]
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
countrycharm
Version 2.0 is what I'm running. Did you do anything different on the Facebook Integration? The install document states. Now click "Facebook Integration" on the left. Towards the bottom you should see "Installable to?". Uncheck "Users" and add a check next to "Facebook Pages" instead.
It's not on that page any longer. Either that or I don't know what I'm doing I guess.
I've run inot this issue too and I don't really want to continue till I know it is ok to proceed. :huh:
-
Re: AutoFacebook [Support]
Its ok, you can leave that I have installed it atleast 10 times without that thing.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Beau91324
I've run inot this issue too and I don't really want to continue till I know it is ok to proceed. :huh:
Beau91234
If you follow this small guide I posted a few days ago you should be okay that option you quoted is no longer avaliable
-
Re: AutoFacebook [Support]
Hello, Iīve intalled this mod and it works, but I have a little problem...
I have multiple facebook pages and used the wrong ID...
Now I canīt get the facebook_authorize.php to generate the correct page ID.
Iīve installed and unnistalled everything and also removed everything from facebook but the problem remains the same...
Can anyone help?
Thx In advance
-
Re: AutoFacebook [Support]
PS
Uninstalled this and installed the facebooklite version...
Now I donīt get updates to my page but on zen cart it says it does...
Anyone with the same problem or a possible soulution?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
nummell
Hello, Iīve intalled this mod and it works, but I have a little problem...
I have multiple facebook pages and used the wrong ID...
Now I canīt get the facebook_authorize.php to generate the correct page ID.
Iīve installed and unnistalled everything and also removed everything from facebook but the problem remains the same...
Can anyone help?
Thx In advance
Try reading this and see if this helps.
http://www.zen-cart.com/forum/showpo...&postcount=156
-
Re: AutoFacebook [Support]
I can't find 5. Now click "Facebook Integration" on the left. Towards the bottom you should see "Installable to?". Uncheck "Users" and add a check next to "Facebook Pages" instead.
did facebook change something? I imagine this is why nothing is posting automatically right now.
-
Re: AutoFacebook [Support]
I just read facebook integration no longer needed....but still nothing posting I got the Success! page any suggestions
-
Re: AutoFacebook [Support]
-
Re: AutoFacebook [Support]
Still not working...redid everything same thing went there clicked allow it was a success tried adding a new product and nothing new on the wall
-
Re: AutoFacebook [Support]
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Ducati87
does anyone fixed it?
Not to sure on this one I have created several apps using my guide here http://www.zen-cart.com/forum/showpo...&postcount=284 and it still works fine.
So either you are missing a configuration in the facebook_authorization.php file or you maybe timing out when created the tokens to connect to facebook make sure you allow facebook to connect or it will not work.
I recommend trying this on a test store rather then a live store where you know no other modifications are interfering.
-
Re: AutoFacebook [Support]
sorry but that guide doesn't function....:cry:
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Ducati87
sorry but that guide doesn't function....:cry:
Are you using an old app you created in facebook or a brand new one?
-
Re: AutoFacebook [Support]
The guide posted is not working due to the Facebook developer site is throwing errors in some locales. Unfortunately, there's nothing we can do about this once they have fixed this bug or small problem they are having the guide I posted will work. I will keep you updated.
-
Re: AutoFacebook [Support]
Hi, I installed for use with facebook autofacebook2 in Italy on ZC 1.3.9h but when I insert the product appears to me "Facebook Error: Unsupported post request." at the top of the page with red background. What should I do? Thanks for the help. Valerio
-
Re: AutoFacebook [Support]
Hi ,I have delete autofacebook2 and i have activate facebooklite, bat don't work.... In tha ZC page new say all OK , but in facebook page is no ok...... What's the problem? The page of face is http://www.facebook.com/apps/applica...99521256727904
. Thank for help. With regard, Valerio
-
Re: AutoFacebook [Support]
go ...go...goooo.... it's OKKKKKKKK :clap: :bigups:
-
Re: AutoFacebook [Support]
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?
-
Re: AutoFacebook [Support]
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
-
Re: AutoFacebook [Support]
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
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
bahaa87
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
Check your images extension facebook developer apps only accepts .jpg, .gif and .png.
.bmp's are not accepted and if I am correct I think zencart does not like the bmp format that well either.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
knuckle-101
Check your images extension facebook developer apps only accepts .jpg, .gif and .png.
.bmp's are not accepted and if I am correct I think zencart does not like the bmp format that well either.
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
-
Re: AutoFacebook [Support]
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:
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
knuckle-101
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
-
Re: AutoFacebook [Support]
The proxy address you mention is part of the Facebook Platform unfortunately there is nothing that can be done on the zencart side.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
knuckle-101
The proxy address you mention is part of the Facebook Platform unfortunately there is nothing that can be done on the zencart side.
ok thank you
-
Re: AutoFacebook [Support]
1.3.9h
I've installed:
CEON URI Mapping
Javascript Snow
Categories Dressing (not activated)
Additional Product Images
Image Handler
http://www.akihabaracosplay.com
On Facebook, it's http://www.facebook.com/akihabara.co...00001251347012
My Zencart says my facebook was updated automatically, but I don't see that it's working. :(
Thank you!
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
K It looks as if Facebook changed their connect proceedure. of course this happened after the application was submitted to Zen Cart.
Anyway heres the fix.
go into your application's settings (same area from steps 5-7) and change the following:
1st you'll see a Migration tab:
Switch "New Data Permissions" to "Disabled"
2nd now click the Connect tab:
and switch your "connect url" to:
http://apps.facebook.com/
I am guessing they have changed their connect procedure again as it looks nothing like the tutorials on your website can you ammend this or give me instructions on how to get this setup please ty
-
Re: AutoFacebook [Support]
Hi I've just installed Autofacebook2 as instructed everything went ok but when viewing the app it seems as if it is in a loop to load and I discovered this php error log in the facebook folder where the facebook_authorization.php was on my server.
[04-Mar-2011 08:14:12] PHP Notice: Undefined variable: access_token in /home/dalesbut/public_html/shop/facebook/facebook_authorization.php on line 967
[04-Mar-2011 08:14:12] PHP Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user.
thrown in /home/dalesbut/public_html/shop/facebook/facebook_authorization.php on line 532
Any ideas?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
vickula
Hi I've just installed Autofacebook2 as instructed everything went ok but when viewing the app it seems as if it is in a loop to load and I discovered this php error log in the facebook folder where the facebook_authorization.php was on my server.
[04-Mar-2011 08:14:12] PHP Notice: Undefined variable: access_token in /home/dalesbut/public_html/shop/facebook/facebook_authorization.php on line 967
[04-Mar-2011 08:14:12] PHP Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user.
thrown in /home/dalesbut/public_html/shop/facebook/facebook_authorization.php on line 532
Any ideas?
I managed to sort this out and adding a new product works but not on the Facebook page I wanted it to. I have 3 Facebook pages. Is there a way posting to s specific page or multiple pages?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
vickula
I managed to sort this out and adding a new product works but not on the Facebook page I wanted it to. I have 3 Facebook pages. Is there a way posting to s specific page or multiple pages?
You can only post to one page specified, in which you have to put in the Page ID in the field
Code:
$page_id = "Your page ID"; //obtained from running facebook_authorization.php from your browser
Whatever page you add here you must allow the app to connect to it, once complete it will post to the page you entered.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
vickula
I managed to sort this out and adding a new product works but not on the Facebook page I wanted it to. I have 3 Facebook pages. Is there a way posting to s specific page or multiple pages?
Quote:
Originally Posted by
vickula
Hi I've just installed Autofacebook2 as instructed everything went ok but when viewing the app it seems as if it is in a loop to load and I discovered this php error log in the facebook folder where the facebook_authorization.php was on my server.
[04-Mar-2011 08:14:12] PHP Notice: Undefined variable: access_token in /home/dalesbut/public_html/shop/facebook/facebook_authorization.php on line 967
[04-Mar-2011 08:14:12] PHP Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user.
thrown in /home/dalesbut/public_html/shop/facebook/facebook_authorization.php on line 532
Any ideas?
Just a friendly tip it is not wise to add your server account name to this forum or any other forum in which could give a wanna be hacker a reason to slam your server or account
Note: I answered your other request.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
knuckle-101
You can only post to one page specified, in which you have to put in the Page ID in the field
Code:
$page_id = "Your page ID"; //obtained from running facebook_authorization.php from your browser
Whatever page you add here you must allow the app to connect to it, once complete it will post to the page you entered.
I appreciate this but how to I specify which page I want so the facebook_authorization.php can generate the page ID for the desired page? It seems to just do the last page I added to facebook!
Thanks for the other tip too!
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
vickula
I appreciate this but how to I specify which page I want so the facebook_authorization.php can generate the page ID for the desired page? It seems to just do the last page I added to facebook!
Thanks for the other tip too!
Can you please state what page you want to add the products to, are you wanting to use the page id generated by the facebook authorization or your personal profile page?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
knuckle-101
Can you please state what page you want to add the products to, are you wanting to use the page id generated by the facebook authorization or your personal profile page?
I have created 3 pages on my facebook account for different things and these are not my personal profile.
No 1 is my shop
No 2 is a community page
No 3 is my catering business
I wanted autofacebook to update Facebook Page No 1 when I add new products to my online webshop but after following all instructions it updated Facebook Page No 3.
I can't see anywhere in the instructions I have followed that lets me select which facebook page on my account I would like to post to, so I'm assuming the facebook_authorization.php generates the page ID for the last page I added to my account.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
vickula
I have created 3 pages on my facebook account for different things and these are not my personal profile.
No 1 is my shop
No 2 is a community page
No 3 is my catering business
I wanted autofacebook to update Facebook Page No 1 when I add new products to my online webshop but after following all instructions it updated Facebook Page No 3.
I can't see anywhere in the instructions I have followed that lets me select which facebook page on my account I would like to post to, so I'm assuming the facebook_authorization.php generates the page ID for the last page I added to my account.
What you want to do is go through the entire process create the page id etc with the facebook authorization file.
Once this is completed you have all your API secret and app id add all that to the proper lines in update_product.php put the page ID of your Shop page instead of the Page ID created in the process, once this is completed saved and uploaded to your ftp go to your application page (profile) and allow the appilication access the Shop Profile page this is all you have to do
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
knuckle-101
What you want to do is go through the entire process create the page id etc with the facebook authorization file.
Once this is completed you have all your API secret and app id add all that to the proper lines in update_product.php put the page ID of your Shop page instead of the Page ID created in the process, once this is completed saved and uploaded to your ftp go to your application page (profile) and allow the appilication access the Shop Profile page this is all you have to do
Yes but I thought the whole point of the facebook_authorization.php was to find the page ID.
How do I find my page ID otherwise?
Sorry if I'm being thick
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
vickula
I have created 3 pages on my facebook account for different things and these are not my personal profile.
No 1 is my shop
No 2 is a community page
No 3 is my catering business
I wanted autofacebook to update Facebook Page No 1 when I add new products to my online webshop but after following all instructions it updated Facebook Page No 3.
I can't see anywhere in the instructions I have followed that lets me select which facebook page on my account I would like to post to, so I'm assuming the facebook_authorization.php generates the page ID for the last page I added to my account.
Quote:
Originally Posted by
vickula
Yes but I thought the whole point of the facebook_authorization.php was to find the page ID.
How do I find my page ID otherwise?
Sorry if I'm being thick
Go to your store profile page and it will be the numbers you see at the end of the URL for example pages/Host-99-Web-Hosting/246582107824 <-- you only need the numbers not the full URL of your profile page.
-
Re: AutoFacebook [Support]
Thanks for that - it works now!
-
Re: AutoFacebook [Support]
Hi I have a problem with autoFacebook lite's setting. It doesn't saves my info, every time I reload the page the fields are empty! Therefore I can't use the script on my zen cart shop.
Can you help me?
Thx!
-
Re: AutoFacebook [Support]
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Ducati87
nobody can help me?
Not much I can do for you on this one, I do not and never used the light version. My apologies.
-
Re: AutoFacebook [Support]
I tried to install autofacebook 2.0 but doesn't function. I don't know where is the problem...
-
Re: AutoFacebook [Support]
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?
-
Re: AutoFacebook [Support]
Can anyone tell me how to setup autofacebook 2.0? Because there are some things that I don't understand.
Thanks so much.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
WHOSYOURDADDY
***IMPORTANT UPDATE FOR THOSE WHO MANAGE SEVERAL FACEBOOK PAGES***
Like most I have been scratching my head on how to get this app from Jamielife (Thanks Jamielife:cool:) to post new products in our zen cart to the proper Fan Page/Business Page.
Each fan page has its own page id and access token. The easy part was getting the page ID the hard part was figuring out how to get the the access token for the specific page.
After you have gone through the initial steps outlined by Jamielife to get the app authorized the next steps will allow you to have this app post to the page of your choosing.
Here is the solution.:
1. Run this link in your Browser. Please replace ~URL~ with your connect URL (Facebook Application dialog) and ~APPID~ with your application ID
You will need to add https// to the following links
If done correctly you get your zen cart with the URL Parameter Access Token
2. This URL will return to you a URL parameter access_token.
3. Save the token somewhere;
4. Load This URL. Replace ~TOKEN~ with the token received from Facebook at point 2.
5. As a result you will get the json with all your pages and all access tokens. Save them somewhere;
Once you have this data it is simple going into the update_product.php at lines 88-92 and change them according to the information associated with the specific page that you want to mod to post to.
Test to make sure it works
I have tested it on 1.3.9f with the latest version of Jamielife's mod with success :clap:
Good Luck
THANK YOU, THANK YOU, THANK YOU!!! This worked, finally. Whew!:clap:
-
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.
-
Re: AutoFacebook [Support]
Hi,
I have mulitple fan pages with FB accounts and I need to publish on particular page dynamically.
So I am thinking to do in this way:
1. Getting access_token in curl
2. Getting pageid and page token
3. Executing update_product.php in cron job
I have executed facebook_authorization.php script to get access_token value but getting following error:
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in XXXX\autofacebooknew1\facebook_authorization.php on line 532
Could anyone please let me know how to fix this error?
Page tokens: How can I get particular page id and/or page token values when there are multiple pages?
access_tokens: I am able to get access_token value using a curl script. Is it enough to publish on particular page? I mean - no permission request dialogue needed?
Please help. Thanks in advance.
Regards,
Naresh Kumar N
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
nareshap
Hi,
I have mulitple fan pages with FB accounts and I need to publish on particular page dynamically.
So I am thinking to do in this way:
1. Getting access_token in curl
2. Getting pageid and page token
3. Executing update_product.php in cron job
I have executed facebook_authorization.php script to get access_token value but getting following error:
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in XXXX\autofacebooknew1\facebook_authorization.php on line 532
Could anyone please let me know how to fix this error?
Page tokens: How can I get particular page id and/or page token values when there are multiple pages?
access_tokens: I am able to get access_token value using a curl script. Is it enough to publish on particular page? I mean - no permission request dialogue needed?
Please help. Thanks in advance.
Regards,
Naresh Kumar N
Sometimes you just need to read through the thread to find your answer.
Quote:
Originally Posted by
WHOSYOURDADDY
What I have figured out so far is that according the the Face book Graph API each fan page has its own Page ID It but also needs to have its own access token to have the required extended permissions needed for this mod to be able to access the correct fanpage.
When Facebook redirects back to the requesting script during authorization, the script needs to be able to provide the proper access token for the specific fan page.
Quote:
Originally Posted by
WHOSYOURDADDY
***IMPORTANT UPDATE FOR THOSE WHO MANAGE SEVERAL FACEBOOK PAGES***
Like most I have been scratching my head on how to get this app from Jamielife (Thanks Jamielife:cool:) to post new products in our zen cart to the proper Fan Page/Business Page.
Each fan page has its own page id and access token. The easy part was getting the page ID the hard part was figuring out how to get the the access token for the specific page.
After you have gone through the initial steps outlined by Jamielife to get the app authorized the next steps will allow you to have this app post to the page of your choosing.
Here is the solution.:
1. Run this link in your Browser. Please replace ~URL~ with your connect URL (Facebook Application dialog) and ~APPID~ with your application ID
You will need to add https// to the following links
If done correctly you get your zen cart with the URL Parameter Access Token
2. This URL will return to you a URL parameter access_token.
3. Save the token somewhere;
4. Load This URL. Replace ~TOKEN~ with the token received from Facebook at point 2.
5. As a result you will get the json with all your pages and all access tokens. Save them somewhere;
Once you have this data it is simple going into the update_product.php at lines 88-92 and change them according to the information associated with the specific page that you want to mod to post to.
Test to make sure it works
I have tested it on 1.3.9f with the latest version of Jamielife's mod with success :clap:
Good Luck
-
Re: AutoFacebook [Support]
I was going to add this app, but unfortuantely facebook wants a credit card number or cell phone number. I'm not giving them either one.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
PullingOutHair
I was going to add this app, but unfortuantely facebook wants a credit card number or cell phone number. I'm not giving them either one.
I wonder when they stated that. I haven't heard of it until now. Must be something new they started.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
PullingOutHair
I was going to add this app, but unfortuantely facebook wants a credit card number or cell phone number. I'm not giving them either one.
I'm not seeing this anywhere, I just uploaded some new products to fb without anything asking for cc or phone.
-
Re: AutoFacebook [Support]
So I have this set up to where I can specify if a new OR updated products is or isn't listed. Is anyone interested in having this ability? I don't want to spend time outlining everything if no one else is interested.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
mac08
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.
Quoting a previous message of mine hoping there is someone that is able to help/tell me what this problem means and how to fix it. Still having this problem.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
mac08
Quoting a previous message of mine hoping there is someone that is able to help/tell me what this problem means and how to fix it. Still having this problem.
Here is a link for white page in this thread.
http://www.zen-cart.com/forum/search...rchid=14391820
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
countrycharm
That link just takes me to a page that says no matches found.
I've also already read through this entire thread, and I found nothing on the same problem that I'm having.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
mac08
Quoting a previous message of mine hoping there is someone that is able to help/tell me what this problem means and how to fix it. Still having this problem.
Did you double check the update_product.php file make sure you did not overwrite core code or misplaced the connector before the proper variable? This is usually the most common problem for white pages for adding or updating products.
Make sure you have the connector variables between the following lines not before or after
//// INSERT PRODUCT-TYPE-SPECIFIC *INSERTS* HERE //////
//// *END OF PRODUCT-TYPE-SPECIFIC INSERTS* ////////
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
knuckle-101
What you want to do is go through the entire process create the page id etc with the facebook authorization file.
Once this is completed you have all your API secret and app id add all that to the proper lines in update_product.php put the page ID of your Shop page instead of the Page ID created in the process, once this is completed saved and uploaded to your ftp go to your application page (profile) and allow the appilication access the Shop Profile page this is all you have to do
how to allow the application access the shop profile page?.. i couldn't find anything in application page that indication to allow..sory newbie question :blink:
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
JokerMOde
how to allow the application access the shop profile page?.. i couldn't find anything in application page that indication to allow..sory newbie question :blink:
Please read the last portion of this guide I posted several weeks ago this will help you.
-
Re: AutoFacebook [Support]
Good morning everyone. I've gotten this to work, as a matter of fact, a couple of times now, lol, but I'm still getting no Description. I've added
'description' => 'Description: '.$prod_description,
to line 120 of update file and get the word Description: on the Facebook post soeverything else is working but still no description. I saw early on in these posts where someone else had this issue but never saw a resolution to it. Is there some fix that I'm missing?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
tally622
Good morning everyone. I've gotten this to work, as a matter of fact, a couple of times now, lol, but I'm still getting no Description. I've added
'description' => 'Description: '.$prod_description,
to line 120 of update file and get the word Description: on the Facebook post soeverything else is working but still no description. I saw early on in these posts where someone else had this issue but never saw a resolution to it. Is there some fix that I'm missing?
Try this and see what happens.
Quote:
Originally Posted by
countrycharm
Jamielift you nailed it. This code works great. The description is now sent to facebook.:clap:
Thank you for your on going effort to solve this problem. Does autoTwitter suppose to send the description to, if it is I have the same problem there. You can post you answer over there if you will. Thank You again.
Quote:
Originally Posted by
jamielife
So instead of:
PHP Code:
$prod_description = urlencode($prod_description);
Try:
PHP Code:
$prod_description = strip_tags($prod_description);
-
Re: AutoFacebook [Support]
Hi...
I recently had a 'store using zen cart' built (Nov2010). I really know zero about it, but did notice that on the note that autoFB puts on FB... there is a blurb which was put on at the time it was re-added after problems and the cart had to be reinstalled (Dec2010) I want to remove that blurb that shows up with every single auto update but I have no clue where/how. :blink: :oops: The issue of re-registering has long since been over but the blurb continues.
Can you help me? :blush:
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
WHOSYOURDADDY
This is what your URL will look like
Your FB App ID is the FB Application ID
Your site path is what you defined in your FB application under the Web Site Profile.
http://www.yoursite.com or
http://www.yoursite.com/cart/
If you have done it correctly when you activate that in your browser it will take you to your zen cart.
Look back into your browser address bar and copy and paste the entire string that you see (to be saved locally on your computer)
what you will see is something like this.
copy and paste everything between the
access_token= and the
&expires
this is called your URL parameter access_token - this is the big bad boy that will gleam the rest of the information that you need to tell FB what page for zen cart to access and post the new products to.
Next step take that very long string that you just copy and pasted locally and insert it into the following URL
activate the string in your browser
if you have done it correctly what is then gleamed is all the fan pages that you manage, along with the page ID and Page Access token for each fan page managed
copy and paste this locally for future reference
Now you have the Page ID and the Associated Access Token for that page
Go back to your editor in the update_product.php
replace the Page ID with the one that matches the page you want zen cart to post to.
then replace the Page Access Token on the line directly below with the one that matches the Page ID you put in the line above.
Save and upload to your server then test - if all went well it will now be posting the page of your choosing.
Jamielife will be adding a drop down option on his next release that will make it simpler in the future to pick which page for zen cart to post to - this is only a temporary procedure for the release that is currently out for us.
Thank you for your guide, work perfect. Possible to post to multiple Fan Page?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
PullingOutHair
I was going to add this app, but unfortuantely facebook wants a credit card number or cell phone number. I'm not giving them either one.
This applies new FB developer accounts (required for anyone using autoFacebook 2.0 or earlier to create their own app on facebook). This is merely facebook's way to authenticate that you are a person. I have come across this when creating new apps for clients. I usually just give a cell number and have never had a problem (although i've never given a credit card).
NOTE: AutoFacebook lite (http://apps.facebook.com/storeupdater/) users do not need to give out phone or credit card info.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
knuckle-101
Please read the last portion of this
guide I posted several weeks ago this will help you.
Thank you for taking the time to put that together.:clap:
-
Re: AutoFacebook [Support]
Hi I am having problems making the app on facebook, is this a facebook problem as all it keeps saying is there is an error and they are working on this. Thanks Scott
-
Re: AutoFacebook [Support]
Still trying to get rid of that blurb... when I ask for a source I get this:
<span class="messageBody">The Store had to get an update, anyone who registered, please re-register!! Thank you!</span>
Where would I find that to remove it? It is a blurb showing up consistently each time the store does an auto-update?
No one seems to be able to tell me where to find it so I can remove it. :no:
Original question #375
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
PullingOutHair
I was going to add this app, but unfortuantely facebook wants a credit card number or cell phone number. I'm not giving them either one.
I just installed this and did not have to supply either one.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
mac08
That link just takes me to a page that says no matches found.
I've also already read through this entire thread, and I found nothing on the same problem that I'm having.
Redo the mod again. The only file overwritten is the update product file. If you're stock update product is still being used then rename that with the extension OEM i.e. Filename.php.OEM. That way you'll have the original file. Uploaded the modded update product file and you should be good.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
PatinParis
Still trying to get rid of that blurb... when I ask for a source I get this:
<span class="messageBody">The Store had to get an update, anyone who registered, please re-register!! Thank you!</span>
Where would I find that to remove it? It is a blurb showing up consistently each time the store does an auto-update?
No one seems to be able to tell me where to find it so I can remove it. :no:
Original question #375
That doesn't look like it's from autoFacebook. I would look into your other mods. That looks like some kind of registration plugin, maybe a newsletter.
-
Re: AutoFacebook [Support]
Hi Jamie,
I have searched for this issue but can't find a solution. I was able to get the app working no problem. My issue now is linking this app to my already created page, instead of the app having its own page, is that possible?
Thanks a lot for this great add-on!
-
Re: AutoFacebook [Support]
I installed this mod to the letter (I thought) on Zen 9
When I post a new product I get:
"Facebook Error: The user must be an administrator in order to impersonate it"
Any ideas?
-
Re: AutoFacebook [Support]
Please Help...:blink: I have loaded this mod three times with no avail. There are a few discrepancies in the instructions but I did the best I could. My main issue is the fact that I followed the instructions with no errors but when I add a product to my site nothing happens. The site functions as normal and adds the product but no update on FB? It could possibly have something to do with the "installable to" verbage in the instructions on line 5? Thanks in advance for the help and this mod.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
clayowensby
Please Help...:blink: I have loaded this mod three times with no avail. There are a few discrepancies in the instructions but I did the best I could. My main issue is the fact that I followed the instructions with no errors but when I add a product to my site nothing happens. The site functions as normal and adds the product but no update on FB? It could possibly have something to do with the "installable to" verbage in the instructions on line 5? Thanks in advance for the help and this mod.
Ok I think my misunderstanding is of facebook. I went to the app and saw that it posted two products but they do not show up on my wall. how do I send this app to my frends?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Rizla
I installed this mod to the letter (I thought) on Zen 9
When I post a new product I get:
"Facebook Error: The user must be an administrator in order to impersonate it"
Any ideas?
Spent too much time on this.. So I'll uninstall in the morning and try once more... Got to be something simple but I can't trace it
-
Re: AutoFacebook [Support]
All working as described on the tin... and to the page I needed.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Rizla
All working as described on the tin... and to the page I needed.
It's a great mod. Now if the author would answer why AutoTweet will not work.
-
Re: AutoFacebook [Support]
Hi i have try looking through the forum.
Reinstall a few time.
but i still get this.
Notice: Undefined offset: 1 in F:\HostingSpaces\snowbeau\mytakshop.com\wwwroot\facebook_authorization.php on line 956
Fatal 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 F:\HostingSpaces\snowbeau\mytakshop.com\wwwroot\facebook_authorization.php on line 599
Hope some one can help.
Thanks alots
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
WHOSYOURDADDY
***IMPORTANT UPDATE FOR THOSE WHO MANAGE SEVERAL FACEBOOK PAGES***
1. Run this link in your Browser. Please replace ~URL~ with your connect URL (Facebook Application dialog) and ~APPID~ with your application ID
You will need to add https// to the following links
If done correctly you get your zen cart with the URL Parameter Access Token
2. This URL will return to you a URL parameter access_token.
3. Save the token somewhere;
4. Load This URL. Replace ~TOKEN~ with the token received from Facebook at point 2.
5. As a result you will get the json with all your pages and all access tokens. Save them somewhere;
Once you have this data it is simple going into the update_product.php at lines 88-92 and change them according to the information associated with the specific page that you want to mod to post to.
Test to make sure it works
I have tested it on 1.3.9f with the latest version of Jamielife's mod with success :clap:
Good Luck
hello
does that mean? connect with your URL (Facebook Application dialog)
my English is not very good, so please explain easy
thank you very much
-
Re: AutoFacebook [Support]
I have installed this mod and it is working fine, with the exception that it is posting to the wrong Facebook page.
I've gone through this entire thread, followed the guide included with the mod, followed the simple guide from knuckle-101 at http://www.zen-cart.com/forum/showpo...&postcount=284
Also followed the advice from whoseyourdaddy at http://www.zen-cart.com/forum/showpo...&postcount=156
For the life of me I can't get an access token that is associated with the Facebook page id on which like the updates posted.
Any help would be greatly appreciated. Thanks.
-
Re: AutoFacebook [Support]
Question for the author. This shows the regular price on FB. Sometimes we'll put a new item with an introductory sale price. Is there a way for FB to show the regular and sale price? I'm not sure how it can be done since you have to create the product first.
-
Re: AutoFacebook [Support]
Has anyone got this to work for an update of an existing product yet? I have a client that has a 2 part product process that doesn't jive with just posting a new product.
is their a page similar to update_product.php for when the products get updated.
-
Re: AutoFacebook [Support]
I updated my password on facebook and now get the following error in Zen Cart when I insert a new product:
Facebook Error: Error validating access token: The session has been invalidated because the user has changed the password.
Anyone know how to resolve this issue - can't see it in the FAQ
Thanks
paul
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
pstarling
I updated my password on facebook and now get the following error in Zen Cart when I insert a new product:
Facebook Error: Error validating access token: The session has been invalidated because the user has changed the password.
Anyone know how to resolve this issue - can't see it in the FAQ
Thanks
paul
Just re-run the facebook_authorization.php to get a new access token and everything will be OK.
-
Re: AutoFacebook [Support]
First of all would like to say thanks for creating this mod.
One question though I am using the AutoFacebook Lite version and as asked by a couple of people already in this thread. How do you modify it so that the gross price is posted to your Facebook account instead of the net price? As per this fellows post.
Quote:
Originally Posted by
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 saw this reply.
Quote:
Originally Posted by
jamielife
I'm not too familiar with all the zencart tax stuff but I would imagine find:
PHP Code:
$price = $products_price;
around line 101 of your update_product.php file and change it to:
PHP Code:
$price = $_POST['products_price_gross'];
I think that should do it.
But this does not work as all I get is a blank white page when I insert the product.
So I tried using :
PHP Code:
$price = $products_price_gross;
And this seemed to partially work. As in the blank white page did not come up and at the top of the admin page it said "Facebook was successfully updated!" However when I go to my Facebook page the product is listed perefectly but there is no price listed. As in only the $ symbol is showing with no price after it.
So does anyone know how I can correct this issue?
Any assistance will be greatly appreciated.
Thanks.
-
Re: AutoFacebook [Support]
@Countrycharm - Thanks worked a treat
-
Re: AutoFacebook [Support]
I am having problems getting this to work
{
"error": {
"type": "OAuthException",
"message": "Error validating application."
}
}
i get this error when i run facebook_authorization.php
any suggestions.
Thanks Lexxe