Zen Cart Logo
Forums / All Other Contributions/Addons / AutoFacebook [Support]

AutoFacebook [Support]

Views: 140,955

Results 281 to 300 of 691
07 Dec 2010, 22:54
#281
dnbreloaded avatar

dnbreloaded

New Zenner

Join Date:
Aug 2010
Posts:
7
Plugin Contributions:
0

AutoFacebook [Support]

The above mentioned guide works, kudos to you sir!

Thank you very much,

f you experience the Facebook Error: Error validating access token you can follow ther guide, if that fails use the light version which dosnt have the error and is easier to install

Thank you Knuckle your a genius!

08 Dec 2010, 03:36
#282
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: AutoFacebook [Support]

Glad to be of assistance

08 Dec 2010, 16:16
#283
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: AutoFacebook [Support]

bauhu:

Hi - I have installed the auto facebook and it works fine BUT like others I would be really interested to know if (or when) you have a mod which auto posts on Facebook when you UPDATE a product instead of having to make a new product from scratch. Almost everyone uses the copy function to add new products. Thanks - hope to hear from you. Paul

Open admin/includes/modules/update_product.php find the code below and move it just before the zen_redirect right at the end of the file. Now when you add new products or update a product it will update facebook. You can do the same thing for twitter.

//AutoFacebook
$app_id = "Your Application ID"; //given when you created app
$app_secret = "Your Application Secret"; //given when you created app
$page_id = "Your page ID"; //obtained from running facebook_authorization.php from your browser
$page_token = "Your page token"; //long number obtained from facebook_authorization.php
$store_name = "yourstore.com"; // store name i.e. "Mary's Car Shop", or "MikesCupcakes.com."
$store_url = 'http://www.yourstore.com'; //path to your store without the trailing "/"
$cur = '$'; //change to your currency symbol. Assumes symbol comes in front of numbers
$new_message = "New Product!"; // change to whatever or leave the same. i.e "New Cupcake!"

// 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 = $_POST['products_name'][$_SESSION['languages_id']];
$prod_description = $_POST['products_description'][$_SESSION['languages_id']];
//$prod_description = implode(" ", $_POST['products_description']);

include_once 'facebook/facebook.php';

$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
'cookie' => true, ));

$attachment = array(
'access_token' => $page_token,
'message' => $new_message,
'name' => $prod_name,
'link' => $prod_url,
'caption' => 'Price: '.$cur . $price,
'description' => $prod_description,
'picture' => $prod_image
);

try {
$status = $facebook->api($page_id.'/feed', 'post', $attachment);
$messageStack->add_session('Facebook was successfully updated!', 'success');
}
catch (FacebookApiException $fbe){
$fberror = $fbe->result['error']['message'];
$messageStack->add_session('Facebook Error: '.$fberror, 'error');
}
//end of autoFacebook

08 Dec 2010, 18:32
#284
gonewild avatar

gonewild

Zen Follower

Join Date:
Apr 2005
Posts:
145
Plugin Contributions:
0

Re: AutoFacebook [Support]

countrycharm:

Open admin/includes/modules/update_product.php find the code below and move it just before the zen_redirect right at the end of the file. Now when you add new products or update a product it will update facebook. You can do the same thing for twitter.

That worked. Thanks!

09 Dec 2010, 17:04
#285
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: AutoFacebook [Support]

gonewild:

That worked. Thanks!

Glad to be of assistance

17 Dec 2010, 16:11
#286
parisbubbler avatar

parisbubbler

New Zenner

Join Date:
Dec 2009
Posts:
37
Plugin Contributions:
0

Re: AutoFacebook [Support]

I've got a bookstore, and I'm using the model no. as the ISBN, and I was wondering if it is possible to display the Model No.(ISBN) in the Lite Version.

Any suggestions would be great.

17 Dec 2010, 18:05
#287
gonewild avatar

gonewild

Zen Follower

Join Date:
Apr 2005
Posts:
145
Plugin Contributions:
0

Re: AutoFacebook [Support]

countrycharm:

Glad to be of assistance

Need one more assistance please.....
Is there a way to have only newly created products be sent to FB? Or a product only sent once in it's lifetime?
As it works now anytime a change is made to a product it is sent to FB. Correct a spelling error and it is sent to FB, correct another spelling error and it is sent to FB again, change the price and it is sent to FB.
thanks!

18 Dec 2010, 01:25
#288
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: AutoFacebook [Support]

gonewild:

Need one more assistance please.....
Is there a way to have only newly created products be sent to FB? Or a product only sent once in it's lifetime?
As it works now anytime a change is made to a product it is sent to FB. Correct a spelling error and it is sent to FB, correct another spelling error and it is sent to FB again, change the price and it is sent to FB.
thanks!
gonewild:

I recently installed this mod.

It works......

But it only sends to FB the newly created products that are actually created from a blank "new product" form. When we create a new product by copying a current product and then change info to make the new product then these new products don't show on FB. Not really good because we almost always create new products from old product pages.

Any solution to this?

If you installed it like the instructions says to, it will only be sent to FB once in it's lifetime. You and someone else wanted to know how to update a product on facebook every time you made a new change to it. I showed how to do that. If you did what I suggested, just undo it. The code will only work in one place or the other. If you need it to do something else you will have to rewrite the FB code.

18 Dec 2010, 01:33
#289
gonewild avatar

gonewild

Zen Follower

Join Date:
Apr 2005
Posts:
145
Plugin Contributions:
0

Re: AutoFacebook [Support]

countrycharm:

If you installed it like the instructions says to, it will only be sent to FB once in it's lifetime. You and someone else wanted to know how to update a product on facebook every time you made a new change to it. I showed how to do that. If you did what I suggested, just undo it. The code will only work in one place or the other. If you need it to do something else you will have to rewrite the FB code.

Yes the change you suggested worked perfectly. The problem now is my girls like to make little changes to the products often, this causes the same products to flood FB. So I changed it back to the normal script.
Thanks.

24 Dec 2010, 20:12
#290
metallica25 avatar

metallica25

New Zenner

Join Date:
Oct 2010
Posts:
7
Plugin Contributions:
0

Re: AutoFacebook [Support]

Hy!
I've followed all the instructions from readme and when i try to access the authorization file i get the following error(s):

Strict Standards: main() [function.main]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/ftp/public_html/mydomain/facebook/facebook_authorization.php on line 956

Notice: Undefined offset: 1 in /home/ftp/public_html/mydomain/facebook/facebook_authorization.php on line 956

Strict Standards: Unknown: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in Unknown on line 0

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 /home/ftp/public_html/mydomain/facebook/facebook_authorization.php on line 599

Anybody knows why i have this issue?

24 Dec 2010, 22:19
#291
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: AutoFacebook [Support]

Does anybody know how to limit how many product update is posted to FB? For example, if we add 300 new products today, we obviously don't want to post 300 updates. I have brought up this issue before but there's still no resolution.

26 Dec 2010, 04:04
#292
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: AutoFacebook [Support]

MetallicA25:

Hy!
I've followed all the instructions from readme and when i try to access the authorization file i get the following error(s):

Strict Standards: main() [function.main]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/ftp/public_html/mydomain/facebook/facebook_authorization.php on line 956

Notice: Undefined offset: 1 in /home/ftp/public_html/mydomain/facebook/facebook_authorization.php on line 956

Strict Standards: Unknown: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in Unknown on line 0

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 /home/ftp/public_html/mydomain/facebook/facebook_authorization.php on line 599

>  
> Anybody knows why i have this issue?
 
A couple of possible reasons
 
1. Your browser is timing out if you are using IE for the application try Firefox it is usually best for this script reason is unknown why.
 
2. You are trying to run the facebook_authorization under an SSL URL such as [\https://www.yourdomain.com/\[FONT=Courier New\]facebook/facebook\_authorization.php\[/FONT\]\[/COLOR\]](https://www.yourdomain.com/facebook/facebook_authorization.php)
[COLOR=black]and facebook is rejecting the request (rare but has happened)
 
3. Or Maybe because you are using an ftp URL with port 21 and facebook cannot access that folder try adding the facebook_authorization to your www or public_html folder and then try running the script with Firefox instead of IE and see what happens.
 
Try using this guide <http://www.zen-cart.com/forum/showpost.php?p=969202&postcount=284> instead and see if that works 
 
------------------------------------
 
> **BlessIsaacola:**
>
> Does anybody know how to limit how many product update is posted to FB? For example, if we add 300 new products today, we obviously don't want to post 300 updates. I have brought up this issue before but there's still no resolution .The advanced script does not have this feature (unless I missed something somewhere) the lite version may have this feature not to sure as I have never used it with to much success.
26 Dec 2010, 11:38
#293
deathman2006 avatar

deathman2006

New Zenner

Join Date:
Apr 2010
Location:
London, UK
Posts:
38
Plugin Contributions:
0

Re: AutoFacebook [Support]

Anyone figured out how to get the lite version to only post the price including tax?

27 Dec 2010, 09:26
#294
zeerock avatar

zeerock

New Zenner

Join Date:
Dec 2009
Posts:
31
Plugin Contributions:
0

Re: AutoFacebook [Support]

Nice mod and uses on a few sites.

One of the sites I use, the page token gets changed every second day for some reason and then it gives me error so I have to change the code.

Can someone tell me why does the token change ?

Thanks

03 Jan 2011, 02:53
#295
outeredge2 avatar

outeredge2

Zen Follower

Join Date:
Mar 2010
Location:
Green Bay, WI
Posts:
362
Plugin Contributions:
1

Re: AutoFacebook [Support]

in step 8 it says to run from your browser.... What does this mean?

03 Jan 2011, 03:00
#296
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: AutoFacebook [Support]

outeredge2:

in step 8 it says to run from your browser.... What does this mean?

Run the facebook script within your browser (IE, FIrefox, Safari) FF or Safari recommended for best results

03 Jan 2011, 03:27
#297
zeerock avatar

zeerock

New Zenner

Join Date:
Dec 2009
Posts:
31
Plugin Contributions:
0

Re: AutoFacebook [Support]

outeredge2:

in step 8 it says to run from your browser.... What does this mean?

https://www.yoursite.com/facebook/facebook_authorization.php (it is recommended to create a directory named facebook and add authorization file in it.

03 Jan 2011, 04:22
#298
outeredge2 avatar

outeredge2

Zen Follower

Join Date:
Mar 2010
Location:
Green Bay, WI
Posts:
362
Plugin Contributions:
1

Re: AutoFacebook [Support]

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!?!?

11 Jan 2011, 18:33
#299
beau91324 avatar

beau91324

Zen Follower

Join Date:
Jul 2009
Posts:
149
Plugin Contributions:
0

Re: AutoFacebook [Support]

deleted by author

11 Jan 2011, 18:36
#300
beau91324 avatar

beau91324

Zen Follower

Join Date:
Jul 2009
Posts:
149
Plugin Contributions:
0

Re: AutoFacebook [Support]

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: