Re: AutoFacebook [Support]
Hi,
I had this module installed and working perfectly, however now it says "Facebook Error: Error validating access token." when i try and insert a new product and will not post to my facebook page.
I am completely sure that there is nothing that has caused this error as i have not been on the store since i last posted a product and it was working then, i am also not the only person experiencing this error. On page 25 of this thread lina0962 has the same problem -- post number #244
As i have not done anything to cause this, could it be something facebooks end? I would greatly appreciate any help anyone can give me on this as i have Googled for hours to no avail. The only other mention of this error is from lina0962 as mentioned earlier.
:(
Here is a link to the post from the other person with this error http://www.zen-cart.com/forum/showpo...&postcount=244
Re: AutoFacebook [Support]
Quote:
Originally Posted by
dnbreloaded
Hi,
I had this module installed and working perfectly, however now it says "Facebook Error: Error validating access token." when i try and insert a new product and will not post to my facebook page.
I am completely sure that there is nothing that has caused this error as i have not been on the store since i last posted a product and it was working then, i am also not the only person experiencing this error. On page 25 of this thread lina0962 has the same problem -- post number #244
As i have not done anything to cause this, could it be something facebooks end? I would greatly appreciate any help anyone can give me on this as i have Googled for hours to no avail. The only other mention of this error is from lina0962 as mentioned earlier.
:(
Here is a link to the post from the other person with this error
http://www.zen-cart.com/forum/showpo...&postcount=244
Not knowing which version you are using lite or the original but the Lite version seems to be having issues all the time nevertheless the original still works but does have small and ignorable problems.
The developers app has changed and because of it this app (original version) quit working and forced us to do it all over again.
Have you tried resetting up the app to see if that works?
Re: AutoFacebook [Support]
Hi,
Thank you for your reply, i am not sure which version i have so here is the link to where i downloaded it from http://www.zen-cart.com/index.php?ma...oducts_id=1623 It is the module labeled AutoFacebook in the Free Software addons section.
I have tried resettingup the ap and i experience the following problem, when i try the facebook_autorization.php it returns back to my site without displaying the token as it did before. I know that it works as i have done this once before and it was working flawlessly. Now i cant even generate a new autorization code page.
Is there a particular method to reinstalling that i am missing, as all i have done is delete the files and repeat the process in the instructions.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
dnbreloaded
Hi,
Thank you for your reply, i am not sure which version i have so here is the link to where i downloaded it from
http://www.zen-cart.com/index.php?ma...oducts_id=1623 It is the module labeled AutoFacebook in the Free Software addons section.
I have tried resettingup the ap and i experience the following problem, when i try the facebook_autorization.php it returns back to my site without displaying the token as it did before. I know that it works as i have done this once before and it was working flawlessly. Now i cant even generate a new autorization code page.
Is there a particular method to reinstalling that i am missing, as all i have done is delete the files and repeat the process in the instructions.
It seems you are using the latest version for the original modification by Jamie so I will try to put together a little instruction guide for you to follow with the new FaceBook application settings.
I recommend resetting the entire update_product.php file if you do not have trace or notes of what may have happened so starting over maybe the best solution at this point. Also you could try using the AutoFaceBook lite version by Jamie as well.
Start over to gain the new Developer App facebook has changed your old app maybe corrupted due to the old is deprecated
Small Guide First Half
One important note I do not guarantee this will work but has worked for us and for best results use a browser other then IE if possible and be sure to keep the browser open until you have the Page ID and the Key
1. Login to facebook
2. Go to facebook.com/developer
3. Add new application
4. Application Name - Name It Whatever You Want
5. Agree to the terms
6. Create Application
7. Fill in Security words if prompted
If success then you will be sent to the main application page
----
Second Half Of Guide.
1. You will now be on the About Page - Make sure everything is the way you want it mainly the App Name and Email address is all you need here
2. On the left click WebSite - fill in the Site URL Ex; http:// www. yourdomain .com/ without the spaces of course make sure the trailing slash is in place
3. On this same page Site Domain fill this in with example.com of course using your own domain no trailing slash
Ignore FaceBook Integration this is not needed unless you know what you are doing
Ignore Mobile Devices it is also not needed unless you know what you are doing
Ignore Advanced Tab leave everything as is no need to change anything here
Now
- Click Save Changes
Second Half Completed
------
Third Half
1. Take the file facebook_authorization.php fill in all the blanks as you have done before
A. Application ID
B. Application Secret
C. Make SURE the address of the facebook_authorization.php is correct before trying to connect if you have it in a sub directory other then your root directory be sure to list it in this file
-Save File Upload to your location specified in this file
2. Make sure you fill in the same fields required in the admin --> includes --> modules --> update_product.php and use a fresh file to ensure it is not the twitter code messing with the app secrets and keys.
-Save File and upload
-If this works you can always add twitter back in
3. Now go to the applications page you just created and allow that application post to the page of your choice either an existing or a new one
4. Now in another window or tab but the same browser go to http:// www. yourwebsite .com/facebook_authorization.php or whatever you have it uploaded and see what happens if done correctly you should get FaceBook Allow Access Page, Click Allow
Then you should get your Page ID and Key.
Hope this works for you and every one else.
If this does not work you can try the lite version as I mentioned earlier
Re: 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!
Re: AutoFacebook [Support]
Re: AutoFacebook [Support]
Quote:
Originally Posted by
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.
Quote:
//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
Re: AutoFacebook [Support]
Quote:
Originally Posted by
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!
Re: AutoFacebook [Support]
Quote:
Originally Posted by
gonewild
That worked. Thanks!
Glad to be of assistance
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.