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?
Re: AutoFacebook [Support]
Re: AutoFacebook [Support]
Quote:
Originally Posted by
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
Re: AutoFacebook [Support]
Quote:
Originally Posted by
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.
Quote:
///////////////////////////////////////////////////////
//// 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)
Quote:
//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 = "ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4a b3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4"; //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
Re: AutoFacebook [Support]
Quote:
Originally Posted by
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.
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:
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?
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
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
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: