-
AutoFacebook [Support]
This is the official thread for the AutoFacebook mod recently made available in the add-ons section at http://www.zen-cart.com/index.php?ma...oducts_id=1623.
The modification allows you to automatically update your facebook's buisness page everytime you add a new product.
AutoFacebook has only been tested on English (one language) Zen Cart 1.3.8 with php 5.3 however it should work fine as long as you're using php > 5.
Also please make sure you're server supports JSON
Hope ya like it :smile:
-
2 Attachment(s)
Re: AutoFacebook [Support]
hi...
i got thir error after click "" link
Quote:
API Error Code: 100
API Error Description: Invalid parameter
Error Message: Param fbconnect must be a boolean
pls refer attachments for refference.
thanks.
-
Re: AutoFacebook [Support]
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/
-
Re: AutoFacebook [Support]
Thanks.
Successfully configures.
But I get this error after adding product.
Quote:
Warning: include_once(facebook/php/facebook.php) [function.include-once]: failed to open stream: No such file or directory in /home/vshopgr9/public_html/admin/includes/modules/update_product.php on line 145
Warning: include_once() [function.include]: Failed opening 'facebook/php/facebook.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vshopgr9/public_html/admin/includes/modules/update_product.php on line 145
Fatal error: Class 'Facebook' not found in /home/vshopgr9/public_html/admin/includes/modules/update_product.php on line 147
-
Re: AutoFacebook [Support]
try changing (around) line 149 of your update_product.php file in the admin/includes/modules folder
where you see
PHP Code:
include_once 'facebook/php/facebook.php';
to:
PHP Code:
include_once 'includes/modules/facebook/php/facebook.php';
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
try changing (around) line 149 of your update_product.php file in the admin/includes/modules folder
where you see
PHP Code:
include_once 'facebook/php/facebook.php';
to:
PHP Code:
include_once 'includes/modules/facebook/php/facebook.php';
same result :
Quote:
Warning: include_once(includes/modules/facebook/php/facebook.php) [function.include-once]: failed to open stream: No such file or directory in /home/vshopgr9/public_html/admin/includes/modules/update_product.php on line 145
Warning: include_once() [function.include]: Failed opening 'includes/modules/facebook/php/facebook.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vshopgr9/public_html/admin/includes/modules/update_product.php on line 145
Fatal error: Class 'Facebook' not found in /home/vshopgr9/public_html/admin/includes/modules/update_product.php on line 147
-
Re: AutoFacebook [Support]
It looks like your include_path is set to a specific folder... Check your php.ini settings or try adding before the include_once line so it looks like:
PHP Code:
set_include_path('/home/vshopgr9/public_html/admin/includes/modules/)';
include_once 'facebook/php/facebook.php';
-
Re: AutoFacebook [Support]
maybe play around with the paths
-
Re: AutoFacebook [Support]
Thanks.
works fine.
But new problem came out.
My website has been suspended due to usage of CPU was more than allowed by hosting provider.
Is it because of this module?
Just curious because my website has been suspended after I add few new products right after i've installed autofacebook mod.
Thanks again.
-
Re: AutoFacebook [Support]
I'd doubt it. When writing/testing it, I probably used it about 100 times a day(at least), of course that's on an ipower server. All it is doing is making a single JSON request to facebook. I wouldn't imagine that this would have got you suspended but I don't know your server's settings. Best to call them and find out.
-
Re: AutoFacebook [Support]
tqvm.
i'll check it with my host provider.
-
Re: AutoFacebook [Support]
Thanks for the great mod.
All I need know is to get some follows on facebook.
Plus
I have Ultimate SEO URLs installed. Is there any way of making the url posted on was facebook use SEO url.
I will be having a look over the weekend if I get a few minutes. Just wonted to see if any one has all ready done it.
-
Re: AutoFacebook [Support]
Hello,
I installed auto facebook in zen cart 1.3.9 (newest version). But update_product page is not working. When I add a new product it show white page and facebook page is not posting the new prorduct data but product is being inserted to to cart. Please help me.
Thanks.
-
Re: AutoFacebook [Support]
copy lines 131 - 173 of the update_prodcut.php file included with AutoFacebook and paste them into line 88 of the original update_product.php file that came with version 1.3.9 in your admin/includes/modules folder. Use the updated original instead.
-
Re: AutoFacebook [Support]
@rdenham: If there is a way I don't know it. I tried installing Ultimate SEO URLs to test it real quick but ended up breaking my store haha. I would think though, that because the URL are rewritten via the htaccess file, that it is not possible. The bit.ly link should use the original url, that will be coverted to the seo friend url once the user enters your site, but I don't know for sure. You might have better luck in the Ultimate SEO URLs forum.
-
Re: AutoFacebook [Support]
Have installed it so far and so far so good. Now I'm not sure if its in there already but is it possible to include auto update for any specials as well?
-
Re: AutoFacebook [Support]
Not presently, that is a good idea though. For the time being, anything other than new products will have to be added to facebook like normal. I'll look into it though, it may be something for future versions of AutoFacebook.
-
Re: AutoFacebook [Support]
Thanks for your response. I did that but same result. I got "API Error Code: 100
API Error Description: Invalid parameter
Error Message: Param fbconnect must be a boolean" and I corrected it according to your direction give in the page 1. I also followed your direction now. I paste the line to the 1.3.9 version update_product.php file but the result is the same. Please do a favour.
Thanks.
-
Re: AutoFacebook [Support]
Im running this on 1.3.9a without any problems.
Ive also got ceon's mapping installed too.
-
Re: AutoFacebook [Support]
First of all thank you for a great mod.
I have installed it and it seems to be working fine with one exception. I uploaded a test product to my website and the mod generated a post on my facebook page. The only problem is the post was generated on my personal facebook page and not on my business fan page.
No doubt I have given the application the wrong permission somewhere, but I have no idea where to go to change it. I would like it to only generate a post on my FB business page and not on my personal FB page.
Thanks in advance for any help you can give me :D
-
Re: AutoFacebook [Support]
I was also curious about what triggers the mod to make a post on FB?
If you add products via Easy Populate will it trigger the mod?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
VisExp
I have installed it and it seems to be working fine with one exception. I uploaded a test product to my website and the mod generated a post on my facebook page. The only problem is the post was generated on my personal facebook page and not on my business fan page.
This could be due to any number of things missed in the installation.
I would remove the Application from your fan page (you can do this from your applications page) go back and repeat the tutorial starting at step 8. (http://htmyell.com/autofacebook-for-zen-cart/)
also
1. make sure the $user_id in steps 11 and 18 are set to the id of your facebook fan page.
2. make sure you add your application to your fan page (step 13)
and
3. that you install the application to your fan page. (steps 14-16).
@VisExp the mod uses the facebook api and jquery to make the calls, you could (in theory) copy the code and (if needed) adjust the paths to the php folder and use it with Easy Populate if you know what vars they're using etc, however I don't know anything about Easy Populate, and if you arent sure what you're doing I wouldnt advise it.
@deathman2006: thanks for letting us know. Glad to hear it.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
This could be due to any number of things missed in the installation.
I would remove the Application from your fan page (you can do this from your applications page) go back and repeat the tutorial starting at step 8. (
http://htmyell.com/autofacebook-for-zen-cart/)
also
1. make sure the $user_id in steps 11 and 18 are set to the id of your facebook fan page.
2. make sure you add your application to your fan page (step 13)
and
3. that you install the application to your fan page. (steps 14-16).
@VisExp the mod uses the facebook api and jquery to make the calls, you could (in theory) copy the code and (if needed) adjust the paths to the php folder and use it with Easy Populate if you know what vars they're using etc, however I don't know anything about Easy Populate, and if you arent sure what you're doing I wouldnt advise it.
@deathman2006: thanks for letting us know. Glad to hear it.
Thanks for the reply :D
I deleted the applications and started again. I figured out what I was doing wrong. A while back I had changed my FB to the name of my business instead of a number (when they offered the option of vanity URL's). I was using that name instead of the number as the user_id
Once I changed that to the number everything worked fine.
Thank you again for the mod and for your help with it :clap:
-
Re: AutoFacebook [Support]
It is not showing price or discription on Facebook. Any one know how to fix this?
-
Re: AutoFacebook [Support]
So everything else works? Products name? the image is showing up on FB? etc?
For the price you could try changing line 144 (of update_product.php in admin/includes/modules) where you see:
PHP Code:
$price = $products_price;
to:
PHP Code:
$price = $_POST["products_price"];
As for the discription, I'm not sure. Are there any special characters in the discription?
Maybe try changing line 147 where you see:
PHP Code:
$prod_description = implode(" ", $_POST['products_description']);
to:
PHP Code:
$prod_description = $sql_data_array["products_description"];
Let me know if that helps
-
Re: AutoFacebook [Support]
Ive tried that and it didnt work for me either :(
I still dont get the price on FB
Also going back to the problem of posts on both the business and personal fb walls, how do you make it post only on the business page?
-
Re: AutoFacebook [Support]
Working on the price/description problem now.
@deathman2006: it should only be posting to your business page. When testing I noticed if i didnt perform steps 13, 14, or 16 properly I would end up with mixed up personal/business pages. Also make sure you are using your business page's id for $user_id in both edited php files.
-
Re: AutoFacebook [Support]
Just wanted to say thanks for the very nicely put together add-on And the very complete step-by-step how-to. Worked like a charm!
-
Re: AutoFacebook [Support]
Well thanks, I'm glad you liked it :)
-
Re: AutoFacebook [Support]
Question: One of my carts is a Zen version 1.3.6. Do you know of any reason why this add-on might not function with it?
Thanks
-
Re: AutoFacebook [Support]
Well I can't say for sure, as I started zen cart @ 1.3.8, but in theory the code isn't that integrated to the new versions. You might have to find some variable names, but maybe not.
I wouldnt overwrite the existing update_product.php, instead copy the AutoFacebook code into it.
pm me the code for the existing file if need be.
-
Re: AutoFacebook [Support]
Hi Jamie
I was going to PM you my update_product.php to see if you could see why it is not posting price and description. But you have your PMs on not allowed.
I added the code below to my update_product.php as it has been modified. Is there anything else I need to add?
Code:
//AutoFacebook
$store_name = "My Store"; // store name i.e. "Mary's Car Shop", or "MikesCupcakes.com."
$store_url = 'http://www.mystore.co.uk'; //path to your store without the trailing "/"
$cur = '£'; //change to your currency symbol. Assumes symbol come in front of numbers
$new_message = "New Product!"; // change to whatever or leave the same. i.e "New Cupcake!"
//your facebook developer app info.
$appapikey = 'mykey';
$appsecret = 'mysecret';
$user_id = 'myid'; //id of your facebook store page
$infinite_session_key = 'Mysessionkey'; //from facebook app
// 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 = implode(" ", $_POST['products_name']);
$prod_description = implode(" ", $_POST['products_description']);
include_once 'facebook/php/facebook.php';
$facebook = new Facebook($appapikey, $appsecret);
$facebook->api_client->user = $user_id;
$facebook->api_client->session_key = $infinite_session_key;
$facebook->api_client->expires = 0;
$attachment = array(
'name' => $prod_name,
'href' => $prod_url,
'caption' => 'Price: '. $cur . $price,
'description' => $prod_description,
'media' => array(array('type' => 'image',
'src' => $prod_image,
'href' => $prod_url)));
$action_links = array(
array('text' => $store_name,
'href' => $store_url));
$attachment = json_encode($attachment);
$action_links = json_encode($action_links);
$facebook->api_client->stream_publish($new_message, $attachment, $action_links);
//end of autoFacebook
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
Well I can't say for sure, as I started zen cart @ 1.3.8, but in theory the code isn't that integrated to the new versions. You might have to find some variable names, but maybe not.
I wouldnt overwrite the existing update_product.php, instead copy the AutoFacebook code into it.
pm me the code for the existing file if need be.
Concerning Zen version 1.3.6: Using Winmerge I merged the two update_product.php. Everything seems to be working fine except that the product image is missing. Any idea what that may be an indication of?
Thanks
-
Re: AutoFacebook [Support]
@meltdown let me see the code. pm's should be on now.
Anyway this price issue is baffling me. It works fine on my end everywhere i try it. For those who aren't seeing price, what does it look like on facebook? Are you seeing the dollar sign '$' and then nothing? are you seeing 'Price: ' and then nothing?
-
Re: AutoFacebook [Support]
Hi jamielife
Want to say thanks for the mod.
Ifigured out the reason mine was posting to both my personal and business pages was because id selected both users and pages in the app settings lol
As for the price issue, im not getting anything show on facebook other than the image and the model name
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
deathman2006
As for the price issue, im not getting anything show on facebook other than the image and the model name
But is that on purpose?
-
Re: AutoFacebook [Support]
No, id like the price too, dont want the description but would like the price
-
Re: AutoFacebook [Support]
Hi Jamie,
I am trying to install autofacebook.
I am using 1.39b
All goes fine until I get to the page where it says Click Here to allow your page all permissions to your app.
Every time I click this it doesn't go anywhere and stays on that page so I dont get my infinite key and can't complete the install.
Any ideas what I am doing wrong?
Cheers
Paul
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
skipper_2
Hi Jamie,
I am trying to install autofacebook.
I am using 1.39b
All goes fine until I get to the page where it says Click Here to allow your page all permissions to your app.
Every time I click this it doesn't go anywhere and stays on that page so I dont get my infinite key and can't complete the install.
Any ideas what I am doing wrong?
Cheers
Paul
It might be face book... what happens after you click the 'step 2' link? Ive noticed facebook is going through a lot of problems right now. I kept getting redirected to a black page in recent tests... if i clicked the empty (black) screen it would move forward. If you ever get to look at the facebook forums you'll see that just about every developer is extremely annoyed with facebook right now. They moved to their "open graph" platform without telling anyone (so that we could adjust our scripts) and now everythings breaking right and left. and the worst part is their new API (that was supposed to be a "renewed support for developers" or whatever) is incomplete and totally undocumented. Anyway (make sure you followed the steps in this forum) try again later, and i'll look into it tomorrow or sunday.
-
Re: AutoFacebook [Support]
First of all, thanks a lot for this great contribution, i'm sure more and more store owners will use it in the future.
I have just finished installing it and it works great, except 2 little details:
1. Price is in $. I sell in £. How would i change the currency?
2. The product description is not showing. I tried your fix as per post 25 with no result. The image, tittle, everything else is working properly. If you would like to see it for yourself, here is the link to the facebook store page:
http://www.facebook.com/pages/Peterl...8428230?ref=ts
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
andreitero
First of all, thanks a lot for this great contribution, i'm sure more and more store owners will use it in the future.
I have just finished installing it and it works great, except 2 little details:
1. Price is in $. I sell in £. How would i change the currency?
2. The product description is not showing. I tried your fix as per post 25 with no result. The image, tittle, everything else is working properly. If you would like to see it for yourself, here is the link to the facebook store page:
http://www.facebook.com/pages/Peterl...8428230?ref=ts
Ok, i managed the price, it was easy, still struggling with the description, any suggestions would help a lot, Cheers!
-
Re: AutoFacebook [Support]
When I click on Go to Application in step 13, I get the following error
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/toucho3/public_html/pagansupplyshop/fbcanvas/php/facebook.php on line 38
Could someone please help me figure out what I did wrong?
Thanks!
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
savanah
When I click on Go to Application in step 13, I get the following error
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/toucho3/public_html/pagansupplyshop/fbcanvas/php/facebook.php on line 38
Could someone please help me figure out what I did wrong?
Thanks!
Nevermind, my PHP5 wasn't on. *smack myself*
-
Re: AutoFacebook [Support]
I know I'm tired, but I have no clue what I did wrong here. After I add the product, I get the following message:
Fatal error: Uncaught exception 'FacebookRestClientException' with message 'The user hasn't authorized the application to perform this action' in /home/toucho3/public_html/pagansupplyshop/admin/includes/modules/facebook/php/facebookapi_php5_restlib.php:3374 Stack trace: #0 /home/toucho3/public_html/pagansupplyshop/admin/includes/modules/facebook/php/facebookapi_php5_restlib.php(932): FacebookRestClient->call_method('facebook.stream...', Array) #1 /home/toucho3/public_html/pagansupplyshop/admin/includes/modules/update_product.php(170): FacebookRestClient->stream_publish('New Product!', '{"name":"Test3"...', '[{"text":"Htmye...') #2 /home/toucho3/public_html/pagansupplyshop/admin/product.php(62): require('/home/toucho3/p...') #3 {main} thrown in /home/toucho3/public_html/pagansupplyshop/admin/includes/modules/facebook/php/facebookapi_php5_restlib.php on line 3374
Any help would be greatly appreciated.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
It might be face book... what happens after you click the 'step 2' link? Ive noticed facebook is going through a lot of problems right now. I kept getting redirected to a black page in recent tests... if i clicked the empty (black) screen it would move forward. If you ever get to look at the facebook forums you'll see that just about every developer is extremely annoyed with facebook right now. They moved to their "open graph" platform without telling anyone (so that we could adjust our scripts) and now everythings breaking right and left. and the worst part is their new API (that was supposed to be a "renewed support for developers" or whatever) is incomplete and totally undocumented. Anyway (make sure you followed the steps in this forum) try again later, and i'll look into it tomorrow or sunday.
Hi Jamie,
nothing happens when I click the step 2 link it just stays on the same page, I have had loads of tries but same thing always happens.
-
Re: AutoFacebook [Support]
Sorry everyone, I was away all weekend and didnt have my laptop:
Quote:
Originally Posted by
andreitero
Ok, i managed the price, it was easy, still struggling with the description, any suggestions would help a lot, Cheers!
Hey how did you manage to fix the price... I'm still working on a solution for the rest, although i've posted just about every idea I can think of, it works on 3 of my servers and my local with no problems, it just seems as if different things work for different people.
Quote:
Originally Posted by
savanah
I know I'm tired, but I have no clue what I did wrong here. After I add the product, I get the following message:
Fatal error: Uncaught exception 'FacebookRestClientException' with message 'The user hasn't authorized the application to perform this action' in /home/toucho3/public_html/pagansupplyshop/admin/includes/modules/facebook/php/facebookapi_php5_restlib.php:3374 Stack trace: #0 /home/toucho3/public_html/pagansupplyshop/admin/includes/modules/facebook/php/facebookapi_php5_restlib.php(932): FacebookRestClient->call_method('facebook.stream...', Array) #1 /home/toucho3/public_html/pagansupplyshop/admin/includes/modules/update_product.php(170): FacebookRestClient->stream_publish('New Product!', '{"name":"Test3"...', '[{"text":"Htmye...') #2 /home/toucho3/public_html/pagansupplyshop/admin/product.php(62): require('/home/toucho3/p...') #3 {main} thrown in /home/toucho3/public_html/pagansupplyshop/admin/includes/modules/facebook/php/facebookapi_php5_restlib.php on line 3374
Any help would be greatly appreciated.
It seems as though something went wrong in the application creation/installation during the tutorial. I would go back and try again maybe. It seems like you're missing offline access or wall post permissions. However it might just be an application setting on the facebook end.
Quote:
Originally Posted by
skipper_2
Hi Jamie,
nothing happens when I click the step 2 link it just stays on the same page, I have had loads of tries but same thing always happens.
Did you enter your app url right? and is everything in the application settings set up right? Unfortunately facebook is buggy as hell lately since they've switched to the new Open Graph API. I was having a problem with a black page loading on step two myself but the problem went away.
Keep me posted and I'll try to help as best I can.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
Sorry everyone, I was away all weekend and didnt have my laptop:
Hey how did you manage to fix the price... I'm still working on a solution for the rest, although i've posted just about every idea I can think of, it works on 3 of my servers and my local with no problems, it just seems as if different things work for different people.
I simply used the html code for the pound sign, which is , when replacing the $ sign in update_product.php. This worked on all 3 of my zen carts, 2 using 1.38a and one using 1.39b. However, the description is not working on any of them.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
savanah
Nevermind, my PHP5 wasn't on. *smack myself*
hey savanah,
I have this same problem, but I have no idea how to turn PHP5 on... Can you please assist me on how you had this fixed?
thanks
JVSS
-
Re: AutoFacebook [Support]
I found a Readme File in the admin secton that says we can rollback to PHP4, because this mod only works with PHP5, anyone have any ideas on how to make this work??? I appreciate any ideas...
thank,
JVSS
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
JVSS
I found a Readme File in the admin secton that says we can rollback to PHP4, because this mod only works with PHP5, anyone have any ideas on how to make this work??? I appreciate any ideas...
thank,
JVSS
usually this is done in cPanel or your host's control panel. If you can't find it contact who ever hosts your files
-
Re: AutoFacebook [Support]
For anyone who'd like to help me figure out this problem with the descriptions/price/whatever not showing up
Try this.
PHP Code:
echo "<pre>";
var_dump($_POST);
exit;
right after where you see:
Quote:
//end of autofacebook
Now go and add a test product (make sure you fill everything out like you normally would however if you're images are working there is no need to upload another one, just leave it blank). After you click 'preview' and then 'insert' you should see a bunch of text. Copy it and paste it in a PM to me.
Now remove the code you added from above.
Note: this will still add the fake product to your store and facebook so be sure to delete them.
-
Re: AutoFacebook [Support]
Hi Jamie,
I'm using ver 138b zencart and trying to install autofacebook. Everything seems pretty straight forward, but when I am trying to do the facebook app thing I get this message:
Step 1:
Once you have added this application to your Store's Page,
Click Here to allow all permissions to your app.
Errors while loading page from application
Parse errors:
FBML Error (line 4): illegal tag "noscript" under "fb:canvas"
Any idea what that means? I've verified line four in the php file(lines 4,5,6,7) to make sure the api key, app secret, page number and canvas url are all correct. Dont know where else to look....
Thanks
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
For anyone who'd like to help me figure out this problem with the descriptions/price/whatever not showing up
Try this.
PHP Code:
echo "<pre>";
var_dump($_POST);
exit;
right after where you see:
Now go and add a test product (make sure you fill everything out like you normally would however if you're images are working there is no need to upload another one, just leave it blank). After you click 'preview' and then 'insert' you should see a bunch of text. Copy it and paste it in a PM to me.
Now remove the code you added from above.
Note: this will still add the fake product to your store and facebook so be sure to delete them.
What file does this need to go in?
-
Re: AutoFacebook [Support]
Nevermind.. figured it out lol, was having a blonde moment lol
-
Re: AutoFacebook [Support]
To add a new product I always copy a product and replace the name and image, this is because my products have atleast 10 to 20 attribute option names and I do not need to insert those attributes once I copy a a product and rename it.
This module does not recognize this as a new product so no update.
Can you tell me how to tackle this problem ??
Thanks for a great module.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
harry2cool
To add a new product I always copy a product and replace the name and image, this is because my products have atleast 10 to 20 attribute option names and I do not need to insert those attributes once I copy a a product and rename it.
This module does not recognize this as a new product so no update.
Can you tell me how to tackle this problem ??
Thanks for a great module.
I am having the same issue as this poster. Is there a workaround?
Thanks again for a great mod!
Madame Louise
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
subir
Thanks for your response. I did that but same result. I got "API Error Code: 100
API Error Description: Invalid parameter
Error Message: Param fbconnect must be a boolean" and I corrected it according to your direction give in the page 1. I also followed your direction now. I paste the line to the 1.3.9 version update_product.php file but the result is the same. Please do a favour.
Thanks.
I had the same error and this fixed it:
Disabled "New Data Permissions" under the migrations tab in your facebook application.
hope this helps.. cheers!
-
Re: AutoFacebook [Support]
I have recently added this mod and got it working with the disable new data permissions and changing the connect url but lastnight whenever i added a product all i was getting was a blank page and no update to facebook. I ran the debug error logging utility and it pointed to this mod.
Code:
[26-May-2010 13:01:33] PHP Warning: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: Invalid UTF-8 sequence in argument in /data/www/vhosts/gadg3tshop.co.uk/httpdocs/admin/includes/modules/update_product.php on line 168
[26-May-2010 13:01:35] PHP Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Session key invalid or no longer valid' in /data/www/vhosts/gadg3tshop.co.uk/httpdocs/admin/includes/modules/facebook/php/facebookapi_php5_restlib.php:3374
Stack trace:
#0 /data/www/vhosts/gadg3tshop.co.uk/httpdocs/admin/includes/modules/facebook/php/facebookapi_php5_restlib.php(932): FacebookRestClient->call_method('facebook.stream...', Array)
#1 /data/www/vhosts/gadg3tshop.co.uk/httpdocs/admin/includes/modules/update_product.php(170): FacebookRestClient->stream_publish('New Product!', '{"name":"Red an...', '[{"text":"Gadg3...')
#2 /data/www/vhosts/gadg3tshop.co.uk/httpdocs/admin/product.php(62): require('/data/www/vhost...')
#3 {main}
thrown in /data/www/vhosts/gadg3tshop.co.uk/httpdocs/admin/includes/modules/facebook/php/facebookapi_php5_restlib.php on line 3374
I looked at the settings and now my connect url has changed and it says you cannot point to a facebook domain.
Any ideas?
-
Re: AutoFacebook [Support]
I keep getting this error at step 14.
API Error Code: 100
API Error Description: Invalid parameter
Error Message: next is not owned by the application.
Anyone has any idea?
Thanks in advance
-
1 Attachment(s)
Re: AutoFacebook [Support]
Has anyone had this problem? Here is the error I get when I am finishing up 17 of the install.
Congrats, All Done! Permissions Granted.
Your Infinite Session Key is:
Fatal error: Uncaught exception 'FacebookRestClientException' in /home/sensory/public_html/fbcanvas/php/facebookapi_php5_restlib.php:3374 Stack trace: #0 /home/sensory/public_html/fbcanvas/php/facebookapi_php5_restlib.php(932): FacebookRestClient->call_method('facebook.stream...', Array) #1 /home/sensory/public_html/fbcanvas/index.php(44): FacebookRestClient->stream_publish('I have just cre...', NULL, NULL) #2 {main} thrown in /home/sensory/public_html/fbcanvas/php/facebookapi_php5_restlib.php on line 3374
Any help would be great on this error
SensoryCraver
-
Re: AutoFacebook [Support]
I've been trying for the past couple hours to get this installed and no matter what I do I can't get it working!
Everything works fine up to step 14, I get this
http://arizonahandmadesoap.com/fbcanvas/14.jpg
I click on the "Click Here to allow all permissions to your app." link.
My next page isn't the second 1/2 of step 14 but a white page that says:
API Error Code: 100
API Error Description: Invalid parameter
Error Message: When enabling the profile selector, an app may not request permissions that do not apply to all profiles in the selector. Note: You are seeing this message because you are a developer of this application. For regular users, inapplicable permissions are silently ignored.
Help, Pretty Please??
I have tried totally deleting the developer app but I got the same thing.
-
Re: AutoFacebook [Support]
I tried to get this application working for several days and finally gave up on it. It appears the author has dissapeared as well as I havent seen him on here for quite some time. Not sure what to think of it.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
hhalliburton
I've been trying for the past couple hours to get this installed and no matter what I do I can't get it working!
Everything works fine up to step 14, I get this
http://arizonahandmadesoap.com/fbcanvas/14.jpg
I click on the "Click Here to allow all permissions to your app." link.
My next page isn't the second 1/2 of step 14 but a white page that says:
API Error Code: 100
API Error Description: Invalid parameter
Error Message: When enabling the profile selector, an app may not request permissions that do not apply to all profiles in the selector. Note: You are seeing this message because you are a developer of this application. For regular users, inapplicable permissions are silently ignored.
Help, Pretty Please??
I have tried totally deleting the developer app but I got the same thing.
It took half day to fix all bug and finish up them. Find the tab of Migrations when endit the application. and disable the New Data Permissions. It may fix your problem.
BTW, here is for other issue you may get:
1. 403 errror. You will need to change the htacess make it don't rewrite the "fbcanvas" file if you have intalled some SEO addons.
2. like "The Facebook Connect cross-domain receiver URL (http://apps.facebook.com/mysite_backend/) must have the application's Connect URL (http://www.mysite.com/) as a prefix. You can configure the Connect URL in the Application Settings Editor.." this error was always confuse me as i followed the steps as the introduction. I was told change the Content url to http://apps.facebook.com/ in Facebook Connect Settings. And then it works. :flex:
-
Re: AutoFacebook [Support]
Glad to hear you got it working, unfortunatly I'm getting a whole different set of errors from the ones you are describing. I posted them back a page or two ago in this thread. I'll save your message and look at it when I get a chance, have other irons in the fire now tho, no time to mess with it. :(
-
Re: AutoFacebook [Support]
I really hate to remove this add-on because it is exactly what I was looking for. The installation went smoothly but here are the issues:
1- There is no product image posted along with product link on the FB wall.
2- When the link on FB is clicked, it take you to the homepage instead of product page. (I think this has something to do with SEO url add-on but don't know hot fix it)
3- My products have numerous attributes, so I create one, then copy it as a new product and just change the product image and name. The first product gets posted on FB, but not any of the products which have been copied.
Any help is greatly appreciated!
V. 1.3.8
php 5
SEO url
-
Re: AutoFacebook [Support]
anyone know if you can get this to post to facebook when you update a product as well as when you add a new one
-
Re: AutoFacebook [Support]
I'm trying to install this too. Everything is fine until I get to stage 13. I've added the app to my FB page but when I go to click "Go to Application." On the next page, click the "Allow" Button I get the following message from Facebook
The application "Cosycandles Backend Updater" is temporarily unavailable due to an issue with its third-party developer. We are investigating the situation and apologise for any inconvenience.
Anyone got any ideas or is it just Facebook being awkward because they keep changing things every 5 minutes.
-
Re: AutoFacebook [Support]
Installed it using the instructions provided and works perfectly. It did take about an hour to set up.
Thanks
Adnan Rana
PC Point Ltd
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
adnanrana
Installed it using the instructions provided and works perfectly. It did take about an hour to set up.
Thanks
Adnan Rana
PC Point Ltd
I am using 1.3.9a. The link to my facebook page is http://www.facebook.com/pages/edit/?...27637017266993.
-
Re: AutoFacebook [Support]
(You are presently using: v1.3.9b)
Now when I add an item and click insert item I get a white screen. When checking my inventory the item is added to my store. But somehow my process is messed up now.
On Facebook i get this error.
Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Duplicate status message' in /home/content/79/6160279/html/fbcanvas/php/facebookapi_php5_restlib.php:3374 Stack trace: #0 /home/content/79/6160279/html/fbcanvas/php/facebookapi_php5_restlib.php(932): FacebookRestClient->call_method('facebook.stream...', Array) #1 /home/content/79/6160279/html/fbcanvas/index.php(44): FacebookRestClient->stream_publish('I have just cre...', NULL, NULL) #2 {main} thrown in /home/content/79/6160279/html/fbcanvas/php/facebookapi_php5_restlib.php on line 3374
Before installing i did not have this problem
This is the only message i post on FB
I have just created my own web app that will automatically add our products here!
Please advise me
-
Re: AutoFacebook [Support]
ok i have had this installed for a while now with no problems.
recently every time i add a new product when i hit the insert button, i too am getting the blank screen, i have checked to see what was going on, the product does show up on my website, but when i look at the facebook page, there is not product added. so i am thinking that it has something to do with this mod not connecting to facebook and that is why i am getting the blank screen because the process is not completing?
has facebook changed anything?
the fb page is here:
http://www.facebook.com/purelypoultry
and the website is here:
http://www.purelypoultry.com
i checked my cache folder and i do not have a myDEBUG file for this error but i do have the Debug Error Logging Utility installed.
if anyone could point me in the right direction that would be great, as always thank you to the zc community
-
Re: AutoFacebook [Support]
Hello all,
At the end of Step 13, I get this error when "Go to Application is Clicked" : Received HTTP error code 404 while loading http://mysite_name/fbcanvas/?_fb_fro...8eb1b976c4dd54. Can't seem to see what I'm doing wrong. I'm using zencart v1.3.9d
Can anyone help?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
parisbubbler
Hello all,
At the end of Step 13, I get this error when "Go to Application is Clicked" : Received HTTP error code 404 while loading
http://mysite_name/fbcanvas/?_fb_fro...8eb1b976c4dd54. Can't seem to see what I'm doing wrong. I'm using zencart v1.3.9d
Can anyone help?
I've managed to sort this part out, was having problems with the htaccess file, ow that's ok.
My problem now even if I create new products, there is nothing added on the facebook page. Followed the instructions as stated, but can't seem to find the problem. I'm using zencart 1.3.9d and also got CEON mapping installed. I'm lost :frusty:
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
hhalliburton
I've been trying for the past couple hours to get this installed and no matter what I do I can't get it working!
Everything works fine up to step 14, I get this
http://arizonahandmadesoap.com/fbcanvas/14.jpg
I click on the "Click Here to allow all permissions to your app." link.
My next page isn't the second 1/2 of step 14 but a white page that says:
API Error Code: 100
API Error Description: Invalid parameter
Error Message: When enabling the profile selector, an app may not request permissions that do not apply to all profiles in the selector. Note: You are seeing this message because you are a developer of this application. For regular users, inapplicable permissions are silently ignored.
Help, Pretty Please??
I have tried totally deleting the developer app but I got the same thing.
This seems to be the biggest problem everyone is having. The author seems to have vanish or given up on this module and thread.
-
Re: AutoFacebook [Support]
I concur.
I too am having the 100 error.
The fixes are no longer working
FB has removed the disable button under Migrations.
This is such a great addon for users of FB. It's a shame Jamie disappeared on this.:no:
-
Re: AutoFacebook [Support]
I have tired over and over to get this mod to work.
FB is horrible at documentation but here is a link I found that is useful.
If you read the documentation for data migrations it explains the permissions are changing.
So what this looks like to me is that everyone who has it working are the lucky ones for now.:yuck:
I am going to keep trying this mod and will post any new findings I have.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
parisbubbler
I've managed to sort this part out, was having problems with the htaccess file, ow that's ok.
My problem now even if I create new products, there is nothing added on the facebook page. Followed the instructions as stated, but can't seem to find the problem. I'm using zencart 1.3.9d and also got CEON mapping installed. I'm lost :frusty:
parisbubbler
The issue is not you but FB. Please read the link to FB i posted earlier. This link should be of use as well.
I wish I was more help.
-
Re: AutoFacebook [Support]
It's a shame that this appears to be a dead duck.
I've got
API Error Code: 100
API Error Description: Invalid parameter
Error Message: next is not owned by the application.
when I click on add permissions to the app.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
countrycharm
This seems to be the biggest problem everyone is having. The author seems to have vanish or given up on this module and thread.
thanks for this add-on
but I have the same problem...
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
hhalliburton
I've been trying for the past couple hours to get this installed and no matter what I do I can't get it working!
Everything works fine up to step 14, I get this
http://arizonahandmadesoap.com/fbcanvas/14.jpg
I click on the "Click Here to allow all permissions to your app." link.
My next page isn't the second 1/2 of step 14 but a white page that says:
API Error Code: 100
API Error Description: Invalid parameter
Error Message: When enabling the profile selector, an app may not request permissions that do not apply to all profiles in the selector. Note: You are seeing this message because you are a developer of this application. For regular users, inapplicable permissions are silently ignored.
Help, Pretty Please??
I have tried totally deleting the developer app but I got the same thing.
thanks for this add-on
but I have the same problem...
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
This could be due to any number of things missed in the installation.
I would remove the Application from your fan page (you can do this from your applications page) go back and repeat the tutorial starting at step 8. (
http://htmyell.com/autofacebook-for-zen-cart/)
also
1. make sure the $user_id in steps 11 and 18 are set to the id of your facebook fan page.
2. make sure you add your application to your fan page (step 13)
and
3. that you install the application to your fan page. (steps 14-16).
@VisExp the mod uses the facebook api and jquery to make the calls, you could (in theory) copy the code and (if needed) adjust the paths to the php folder and use it with Easy Populate if you know what vars they're using etc, however I don't know anything about Easy Populate, and if you arent sure what you're doing I wouldnt advise it.
@deathman2006: thanks for letting us know. Glad to hear it.
I was just wondering if anyone had managed to make this mod work with easy populate yet? I don't see any more references to it in this thread after the above post.
when I'm adding products there is usually lots of them, doing them one by one wouldn't be fun for me so I really want to use easy pop, but I like the sound of this mod too - well done the developer
-
can updated products be published into facebook and twitter too?
First of all, thank you very much for this wonderful plug in!!
I noticed only new products are published on facebook and twitter. Is it possible to publish updated products as well, since I have a lot of sales in my store. Facebook and twitter followers will miss those sales.....
Also, whenever I make changes to the product description, I wish the updates can be published too.
Thank you for help!!
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
For anyone who'd like to help me figure out this problem with the descriptions/price/whatever not showing up
Try this.
PHP Code:
echo "<pre>";
var_dump($_POST);
exit;
right after where you see:
Now go and add a test product (make sure you fill everything out like you normally would however if you're images are working there is no need to upload another one, just leave it blank). After you click 'preview' and then 'insert' you should see a bunch of text. Copy it and paste it in a PM to me.
Now remove the code you added from above.
Note: this will still add the fake product to your store and facebook so be sure to delete them.
hi,
I would love to volunteer to have a try. An message was sent to you.
-
Re: AutoFacebook [Support]
Hi everyone, sorry for my absense, things got crazy with work and I havent had time to reaquaint myself with all the new facebook changes. I'll be developing a new version of autoFacebok here soon. I will be reviewing all the problems posted as well as any suggestions you have them, and hopefully fix them as soon as possible.
Sorry for any inconvenience,
Jamie
-
Re: AutoFacebook [Support]
Does thiis mod still work if the products are added though "Easy Populate"?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Delights
Does thiis mod still work if the products are added though "Easy Populate"?
I have no idea. As a guess I would say no. I've never used EP, but I'll look into it when I sit work on an update.
In the meantime if anyone is using autoTweet, please upgrade to version 3 (check the autoTweet thread) as the current version might stop working after August 16th.
Thanks
-
Re: AutoFacebook [Support]
Glad to see you're back and hope to see an updated version of AutoFacebook soon. I've been experiencing the Error Message: next is not owned by the application, as well.. Using v1.3.9e at the moment..
-
Re: AutoFacebook [Support]
Any update on a fix for this?
-
Re: AutoFacebook [Support]
Looking forward for the new version... Thanks Jamie...
-
Re: AutoFacebook [Support]
Having problems with the AutoFacebook OG module, I get errors on the catalog side that say:
Warning: extract() [function.extract]: First argument should be an array in /home/totalemi/public_html/includes/templates/theme390/common/html_header.php on line 49
Warning: extract() [function.extract]: First argument should be an array in /home/totalemi/public_html/includes/templates/theme390/common/html_header.php on line 50
Any ideas why this is and how to stop it?
-
Re: AutoFacebook [Support]
Hello,
just installing AutoFacebook on new installation of Zen-Cart.
After step 13 where I should go to the "Go to Application" I am getting error "Received HTTP error code 404 while loading http://mysite.com/catalog/fbcanavas/?_fb_fromhash=95eaf43550e993628e15f8eae6af5eee"
I followed all steps as described in tutorial.
I uploaded only fbcanavas folder in /catalog folder. In index.php data is ok.
Please help.
Gordan
-
Re: AutoFacebook [Support]
I did follow your instruction at http://htmyell.com/autofacebook-for-zen-cart/
I got this error after click "Click Here to allow all permissions to your app." link at step 14
Quote:
API Error Code: 100
API Error Description: Invalid parameter
Error Message: next is not owned by the application.
I would greatly appreciate your suggestions.
Amanda
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
amanda099
I did follow your instruction at
http://htmyell.com/autofacebook-for-zen-cart/
I got this error after click "Click Here to allow all permissions to your app." link at step 14
I would greatly appreciate your suggestions.
Amanda
A lot of people are having the same issue. This add on will not work until the author issues a rewrite due to facebook changes.
-
Re: AutoFacebook [Support]
Thanks for the info CountryCharm:smile::smile:
-
Re: AutoFacebook [Support]
Will I get informed when AutoFacebook is updated ?
-
Re: AutoFacebook [Support]
Amanda099,
You will have to check back here every so often to see if the author has made any updates. we have been waiting for quite some time. So please be patient.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
gordan0810
Hello,
just installing AutoFacebook on new installation of Zen-Cart.
After step 13 where I should go to the "Go to Application" I am getting error "Received HTTP error code 404 while loading http://mysite.com/catalog/fbcanavas/?_fb_fromhash=95eaf43550e993628e15f8eae6af5eee"
I followed all steps as described in tutorial.
I uploaded only fbcanavas folder in /catalog folder. In index.php data is ok.
Please help.
Gordan
Gordon,
Facebook has made major changes to their applications and continue to do so almost daily.
Your 404 error is the call back from Facebook.
-
4 Attachment(s)
Re: AutoFacebook [Support]
Hello, I try configure "autofacebook" as your manual, but, my facebook as not equal as your. See the captures.
I have the problem of error Api100, as all user this foro.
help me, please! I need connect my web wich facebook.
Best regards!
:(
-
Re: AutoFacebook [Support]
hi jamie heres another for you to ponder over soory for this but as i said i new to this
message reads
API Error Code: 100
API Error Description: Invalid parameter
Error Message: When enabling the profile selector, an app may not request permissions that do not apply to all profiles in the selector. Note: You are seeing this message because you are a developer of this application. For regular users, inapplicable permissions are silently ignored
thanks again
john craftyhobbiesuk.com:lamo:
-
Re: AutoFacebook [Support]
hello,
autoFacebook 2.0 is now available! :clap:
This should fix the API Error Code: 100 issue a lot of people are having.
And hopefully a lot of other stuff as well.
It will also now give you Zen-Cart style messages letting you know what went wrong or if it was a success when you add a product.
it's been uploaded to the contirbutions section but for those of you who don't want to wait it's available at http://htmyell.com/autofacebook-2-0/
As always I will try my best to support this via this thread and my site.
Let me know what you think,
Jamie