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

AutoFacebook [Support]

Views: 140,955

Results 441 to 460 of 691
12 Jan 2012, 20:21
#441
frankyboy avatar

frankyboy

New Zenner

Join Date:
Dec 2011
Posts:
20
Plugin Contributions:
0

AutoFacebook [Support]

First of all thank you for your replies and help.

I have downloaded filezilla and found the file i need to edit but could anyone tell me which line the codes have to be entered into?

13 Jan 2012, 10:27
#442
frankyboy avatar

frankyboy

New Zenner

Join Date:
Dec 2011
Posts:
20
Plugin Contributions:
0

Re: AutoFacebook [Support]

I have re-run the facebook_authorization.php to get a new access token which i now have but does anyone know which line this has to go into when i edit the file.

I have been looking and it must be me missing something as i cannot see where i need to copy and paste the new code. :(

14 Jan 2012, 05:45
#443
countrycharm avatar

countrycharm

Totally Zenned

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

Re: AutoFacebook [Support]

frankyboy:

I have re-run the facebook_authorization.php to get a new access token which i now have but does anyone know which line this has to go into when i edit the file.

I have been looking and it must be me missing something as i cannot see where i need to copy and paste the new code. :(

/admin/includes/modules/update_product.php. Scroll down to the facebook code and on the 4th line enter the new access token.

14 Jan 2012, 19:57
#444
bluelightnin6 avatar

bluelightnin6

New Zenner

Join Date:
Dec 2011
Location:
USA
Posts:
77
Plugin Contributions:
0

Re: AutoFacebook [Support]

How do you install the auto facebook? All of the instructions I have read are related to the old version of facebook developers program. I couldn't find any installation instructions for the new facebook developers page. The majority of the steps include changing something that is no longer even listed on the app editing page.. i.e. there is no website url or domain url to list , there is no "facebook integration" link to click etc...

15 Jan 2012, 16:29
#445
frankyboy avatar

frankyboy

New Zenner

Join Date:
Dec 2011
Posts:
20
Plugin Contributions:
0

Re: AutoFacebook [Support]

countrycharm:

/admin/includes/modules/update_product.php. Scroll down to the facebook code and on the 4th line enter the new access token.

Many thanks for your help although this does not seem to have worked for me.

15 Jan 2012, 16:56
#446
frankyboy avatar

frankyboy

New Zenner

Join Date:
Dec 2011
Posts:
20
Plugin Contributions:
0

Re: AutoFacebook [Support]

countrycharm:

/admin/includes/modules/update_product.php. Scroll down to the facebook code and on the 4th line enter the new access token.

I have done this 3 or 4 times now, i have changed line 4 which is the i.d and also line 5 which is the secret i take it that is what i needed to do or is it just line 4 i need to edit with the shorter of the 2 numbers.

The 1st number i get is an i.d number and the second is a token number.

15 Jan 2012, 17:57
#447
frankyboy avatar

frankyboy

New Zenner

Join Date:
Dec 2011
Posts:
20
Plugin Contributions:
0

Re: AutoFacebook [Support]

Ok i have been doing a little digging and i think i can see the problem.

I can see /admin/includes/modules/ but there is no update_product.php file there.

I have looked else where in my directory but cannot see this file anywhere.

Would it be better if i just re installed the application from scratch?

Im not sure how to do it but i can see that there are instructions so should in theory be straight forward.

Would i need to delete the facebook authorization.php file first or any other files before i do a clean install?

17 Jan 2012, 10:51
#448
frankyboy avatar

frankyboy

New Zenner

Join Date:
Dec 2011
Posts:
20
Plugin Contributions:
0

Re: AutoFacebook [Support]

Anyone ?

18 Jan 2012, 00:51
#449
countrycharm avatar

countrycharm

Totally Zenned

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

Re: AutoFacebook [Support]

frankyboy:

Ok i have been doing a little digging and i think i can see the problem.

I can see /admin/includes/modules/ but there is no update_product.php file there.

I have looked else where in my directory but cannot see this file anywhere.

Would it be better if i just re installed the application from scratch?

Im not sure how to do it but i can see that there are instructions so should in theory be straight forward.

Would i need to delete the facebook authorization.php file first or any other files before i do a clean install?

If you downloaded the AutoFacebook moduole and open the file you will see admin/includes/modules/update_product.php file and a file named Facebook. The update_product.php file is located already in your stores admin folder or a custom folder you change it to for security reason. It should look like this Custom name folder/includes/modules/update_product.php. If you have made changes to that file at all you need to open the file and add the Facebook code to that file. That will be it. If you haven't made any changes just upload that file to custom_folder/includes/modules/update_product.php

18 Jan 2012, 08:56
#450
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: AutoFacebook [Support]

frankyboy:

Anyone ?

In the file update_product.php you should be looking for the lines of cade that look like this. in a clean file without any mods this is round about line 103 to 108 the space is at line 105 and 106.

///////////////////////////////////////////////////////
//// INSERT PRODUCT-TYPE-SPECIFIC UPDATES HERE //////

  ////    *END OF PRODUCT-TYPE-SPECIFIC UPDATES* ////////
  ///////////////////////////////////////////////////////

Add the facebook update code in the space between the first and second lot of ///

That code should look like this (or similar) I have changed my entries to something generic (naturally)

//AutoFacebook
$app_id = "111111111111111"; //given when you created app
$app_secret = "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1"; //given when you created app
$page_id = "222222222222222"; //obtained from running facebook_authorization.php from your browser
$page_token = "ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4"; //long number obtained from facebook_authorization.php
$store_name = "BillyBoyle"; // store name i.e. "Mary's Car Shop", or "MikesCupcakes.com."
$store_url = 'http://your-shop.co.uk'; //path to your store without the trailing "/"
$cur = '£'; //change to your currency symbol. Assumes symbol comes in front of numbers
$new_message = "Your Message in a bottle!"; // 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'];
$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']];

$products_description = strip_tags($products_description);
// $products_description = $_POST['products_description'][$_SESSION['languages_id']];
// $products_description = implode(" ", $_POST['products_description']);
$vat = .20;
$price = (number_format(( $products_price + $products_price * $vat), 2, '.', ''));

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,
'description' => $products_description,
'picture' => $prod_image,
'caption' => 'For only: '.$cur . $price,
);

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

//

Hope this helps you frankyboy

18 Jan 2012, 09:03
#451
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: AutoFacebook [Support]

frankyboy:

Anyone ?

Also if you don't see update_product.php in the file structure after you downloaded from your server, it may be that you have not downloaded all files.
This can happen sometimes (power or data can get curupt in the ftp transfer) just use Filezila to download the folder you need again, or just surf the folder tree and download the file only from your server.

Just remember to put it back exactly where you got it from.

Billy.

18 Jan 2012, 09:18
#452
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: AutoFacebook [Support]

Oh! one other thing I've just remembered... :blink:

I think you need to install OAuth authentication from the autoTweet 3.0 module to get it to work with Fb's new set up. Might be wrong.

5 or 6 months since I installed the mod but, I may be remembering wrongly. I am sure I had to install both mods to get it to work for me. Don't need to use autoTweet, just need the OAuth authentication for processing.

Mind you it wouldn't hurt to have both anyway if you use Twitter.

Billy:unsure:

25 Jan 2012, 06:49
#453
frankyboy avatar

frankyboy

New Zenner

Join Date:
Dec 2011
Posts:
20
Plugin Contributions:
0

Re: AutoFacebook [Support]

Ok I have spent the last few weeks on this and to say I am a little hacked off would be an under statement.

I would like to know if there is either an idiots guide to uninstalling the autofacebook from my site so that I can attempt to upload it from scratch.

I really do need to get this working and having now been through every file TWICE in my admin folder I can safely say that the update_products.php file is nowhere to be found which means I cannot update the token to allow the bloody thing to work. :censored:

Anyone please?

Just a quick question, i have downloaded the autofacebook from this website and i can see the file i need so would it be possible to just upload that single file into /admin/includes/modules/ ?

If so what would i need to enter into this file to get it to work?

One last thing how would i upload the file using filezilla?

25 Jan 2012, 14:04
#454
frankyboy avatar

frankyboy

New Zenner

Join Date:
Dec 2011
Posts:
20
Plugin Contributions:
0

Re: AutoFacebook [Support]

I was wondering if anyone can tell me how i go about deleting or uninstalling this mod please.

I have filezilla on my p.c and was wondering do i just delete the files from there?

Thanks in advance

26 Jan 2012, 06:45
#455
frankyboy avatar

frankyboy

New Zenner

Join Date:
Dec 2011
Posts:
20
Plugin Contributions:
0

Re: AutoFacebook [Support]

Is there anybody at all on here that can tell me how to uninstall the autofacebook please.

I would like to try a new install but not sure if i can install over the current files that are already in my folders?

Anyone

27 Jan 2012, 09:49
#456
amandavz avatar

amandavz

Zen Follower

Join Date:
Mar 2009
Location:
Crockett, Texas
Posts:
139
Plugin Contributions:
0

Re: AutoFacebook [Support]

Hi...I installed this module and went through all the configuring and was able to get this module working beautifully right to my page (as I have many) and then out of nowhere I started getting this warning:

Facebook Error: Error validating access token: The session has been invalidated because the user has changed the password.

Is there a simple fix or do I need to go back through the process again? I think this is because FaceBook doesn't know how to leave FaceBook alone. LOL.

Thank you in advance. :blink:

27 Jan 2012, 21:29
#457
rjugalbot avatar

rjugalbot

New Zenner

Join Date:
Jan 2012
Posts:
14
Plugin Contributions:
0

Re: AutoFacebook [Support]

got this error when trying to run the facebook_authorization.php in FireFox.

"Fatal error: Uncaught OAuthException: Error validating application. thrown in /home6/indyappa/public_html/facebook/facebook_authorization.php on line 532"

i've got multiple pages.

thanks.

01 Feb 2012, 14:55
#458
scottrdj avatar

scottrdj

New Zenner

Join Date:
May 2006
Posts:
26
Plugin Contributions:
0

Re: AutoFacebook [Support]

RJugalbot:

got this error when trying to run the facebook_authorization.php in FireFox.

"Fatal error: Uncaught OAuthException: Error validating application. thrown in /home6/indyappa/public_html/facebook/facebook_authorization.php on line 532"

i've got multiple pages.

thanks.
I am getting this error as well
Fatal error: Uncaught OAuthException: Error validating application. thrown in /home/djdepot/public_html/facebook/facebook_authorization.php on line 532

02 Feb 2012, 23:15
#459
islandboii242 avatar

islandboii242

New Zenner

Join Date:
Feb 2012
Posts:
9
Plugin Contributions:
0

Re: AutoFacebook [Support]

I am currently running Zencart v1.5.0 and i am trying to get the AutoFacebook to work, but i think it hates me. Ok i followed the steps in the readme file for the facebook mod, but im getting a error message. Some of the steps given in the file do not exist in the New Facebook Developers page. The other issue im having trying to run the facebook_authorization.php file is that i get a ```
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 'America/New_York' for 'EST/-5.0/no DST' instead in Unknown on line 0 Fatal error: Uncaught OAuthException: Error validating application. thrown in facebook/facebook_authorization.php on line 532


I need some help getting this install successfully please, i am not even sure if i got the facebook developer side setup properly below is the screenshot. Please Help :cry::cry::cry:

![](http://www.spicyradio.net/screenshot.jpg)
09 Feb 2012, 01:18
#460
caprimia avatar

caprimia

New Zenner

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

Re: AutoFacebook [Support]

Trying to install the Light version. Cannot get passed Please Select Page on the facebook storeupdater. I have a page created from my main account, but it can not see it. Even tried to create a new one just for the sake of it, and still, storeupdater will not see it..

I saw that some people has the same issues, but mostly people with no existing page.

Please, someone help!!