Forums / All Other Contributions/Addons / AutoFacebook [Support]

AutoFacebook [Support]

Views: 141,424

Results 121 to 140 of 691
31 Aug 2010, 9:57 AM
#121
pfgcomputers avatar

pfgcomputers

New Zenner

Join Date:
May 2007
Posts:
2
Plugin Contributions:
0

AutoFacebook [Support]

A big THANK YOU! for you Jamie.
Installation work like a charm.

31 Aug 2010, 1:03 PM
#122
whosyourdaddy avatar

whosyourdaddy

New Zenner

Join Date:
Oct 2009
Posts:
50
Plugin Contributions:
0

Re: AutoFacebook [Support]

countrycharm:

Glad you got it work out., but never put your actually facebook
app_id number, app_secret number down so other people can see it, Big mistake. I would delete that application and make another one if this is your actual numbers.

Thank you for the advice and I'll do just that - makes for good practice anyway LOL

again Thank you for you response and advice!

Zen Cart Version 1.39h
PHP 5

31 Aug 2010, 1:54 PM
#123
whosyourdaddy avatar

whosyourdaddy

New Zenner

Join Date:
Oct 2009
Posts:
50
Plugin Contributions:
0

Re: AutoFacebook [Support]

I must be the biggest dummy here. I have gotten through the installation part. Received the page ID and Page token placed that into the update_products.php where instruction uploaded that back to my server.

I have gone back to Facebook added the application to my business page as favorites page or should I have just added it to my page?

I am creating test products for the purpose of testing the upload feature. From the admin side of zen cart when I add the test product zen carts shows that facebook has been successfully updated. When I go to the application profile or any of my business/personal pages to check for it I can not see where the test product has been posted

I have read through this thread and changed the update_product.php from the one supplied in the mod to the original and inserted the facebook code at line 88. still I see no updates on facebook.

I know I must be the biggest dummy here but maybe someone can help me figure out what I am doing wrong since there are so many that have gotten this to work properly.

I've talked to my web host he says he has JSON cURL and running PhP 5+ installed on the server and I am using zen cart version 1.39f

Zen Cart Version 1.39h
PHP 5

1 Sep 2010, 11:02 AM
#124
hobby_link avatar

hobby_link

New Zenner

Join Date:
Sep 2010
Posts:
5
Plugin Contributions:
0

Re: AutoFacebook [Support]

Hi Jamie.

Installation V2 on 1.3.8a works a charm.

Quick question - what do I need to tweak in the code for the price to be quoted INCLUDING tax on facebook? Currently quotes excluding tax which is a bit backwards for the Aussie market. I can see it creating confusion!

1 Sep 2010, 5:39 PM
#125
whosyourdaddy avatar

whosyourdaddy

New Zenner

Join Date:
Oct 2009
Posts:
50
Plugin Contributions:
0

Re: AutoFacebook [Support]

This has got me really confused apparently its working but publishes to the wrong page.

Well at least I have something to go on here LOL

Zen Cart Version 1.39h
PHP 5

1 Sep 2010, 6:16 PM
#126
whosyourdaddy avatar

whosyourdaddy

New Zenner

Join Date:
Oct 2009
Posts:
50
Plugin Contributions:
0

Re: AutoFacebook [Support]

Here are a couple of the pages I manage on Facebook

The one that I am trying to get zen cart auto publish too is this one.

http://www.facebook.com/pages/Mychef-test-page/148920981796793?v=wall#!/pages/My-Cheforg-Meals-by-Chef-James/198139020370?ref=sgm

The one that it is publishing to is this one.

http://www.facebook.com/pages/Mychef-test-page/148920981796793?v=wall#!/pages/Charter-of-Freedom/232089568598?ref=sgm

Does anyone know enough about Facebook that can help me understand why this is publishing to one but not to all my pages?

Zen Cart Version 1.39h
PHP 5

2 Sep 2010, 1:29 AM
#127
cavatappo avatar

cavatappo

New Zenner

Join Date:
May 2010
Location:
New York, NY
Posts:
10
Plugin Contributions:
0

Re: AutoFacebook [Support]

I manage multiple pages. this new update was very streamlined and very easy to implement. But it's not updated the correct page. How do i designate which page the AutoFacebook updates?

2 Sep 2010, 3:25 AM
#128
bluedotted avatar

bluedotted

New Zenner

Join Date:
Oct 2008
Posts:
64
Plugin Contributions:
0

Re: AutoFacebook [Support]

cavatappo:

I manage multiple pages. this new update was very streamlined and very easy to implement. But it's not updated the correct page. How do i designate which page the AutoFacebook updates?

Are you referring to your main profile page?

As of right now it seems it is a requirement to create a new Page on facebook to make this work where the application you create on Facebook, it does not like to update your main profile for some reason but this is not mod related as far as I can tell.

2 Sep 2010, 3:11 PM
#129
cavatappo avatar

cavatappo

New Zenner

Join Date:
May 2010
Location:
New York, NY
Posts:
10
Plugin Contributions:
0

Re: AutoFacebook [Support]

bluedotted:

Are you referring to your main profile page?

As of right now it seems it is a requirement to create a new Page on facebook to make this work where the application you create on Facebook, it does not like to update your main profile for some reason but this is not mod related as far as I can tell.

Not my main profile page. I maintain 7 different business fanpages. When i set this up, it automatically posted to the wrong fanpage. How do I change which fanpage it autoposts to? It was not good for the dinner special to be posted on the spanish harlem movie page. :)

2 Sep 2010, 9:17 PM
#130
rbchase avatar

rbchase

New Zenner

Join Date:
Aug 2009
Location:
Beaverton, OR
Posts:
3
Plugin Contributions:
0

Re: AutoFacebook [Support]

Attempting to run facebook_authorization.php and received the following error:

Notice: Undefined offset: 1 in C:\Inetpub\shopping.imagineighborhoods.com\facebook_authorization.php on line 956

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 C:\Inetpub\shopping.imagineighborhoods.com\facebook_authorization.php on line 599

I got to the facebook login page ok, logged in, clicked the "Allow" button, then received this error. I'm on zen-cart v1.3.9f, fresh install of AutoFacebook 2.0, PHP 5.2 build 3790, with:

  • CURL (libcurl/7.14.0 OpenSSL/0.9.8a zlib/1.2.3 )
  • gd2 (bundled (2.0.28 compatible) )
  • JSON 1.2.1
  • MySQL 5.0.22

My platform is Windows Server 2003, IIS6.

Any help would be appreciated.

2 Sep 2010, 10:16 PM
#131
rbchase avatar

rbchase

New Zenner

Join Date:
Aug 2009
Location:
Beaverton, OR
Posts:
3
Plugin Contributions:
0

Re: AutoFacebook [Support]

Resolved the SSL Error above shortly after I posted it. Problem was that cURL needed an updated CA list. Used http://davidwalsh.name/php-ssl-curl-error to help with the fix.

To fix:
Step 1. Goto http://curl.haxx.se/docs/caextract.html downlaod cacert.pem and add it to your PHP root directory.

Step 2. Modify facebook_authorization.php by adding the following code right after any occurance of curl_init();

curl_setopt($ch,CURLOPT_CAINFO,"C:\PHP\cacert.pem");

Where C:\PHP is your path to your PHP root.

Step 3. Make the same modification from Step 2 to the following file: admin\includes\modules\facebook\facebook.php

Once I made these mods, Auto Facebook works like a charm.

I didn't get a chance to try this, however, it may be possible to use the direct link to the cacert.pem file http://curl.haxx.se/ca/cacert.pem in the curl_setopt code.

3 Sep 2010, 3:31 AM
#132
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Re: AutoFacebook [Support]

It looks the old autofacebook version 1 doesn't work any more. I cannot insert new products to my website. It showed a HTTP 500 Internal server error page. But i can still update exsiting products.

But, when I delete all the autofacebook code from update_product.php in admin/includes/modules, I can insert products again. Anybody has the same problem?

3 Sep 2010, 3:39 AM
#133
countrycharm avatar

countrycharm

Totally Zenned

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

Re: AutoFacebook [Support]

lina0962:

It looks the old autofacebook version 1 doesn't work any more. I cannot insert new products to my website. It showed a HTTP 500 Internal server error page. But i can still update exsiting products.

But, when I delete all the autofacebook code from update_product.php in admin/includes/modules, I can insert products again. Anybody has the same problem?

You need to Upgrade to version 2

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

4 Sep 2010, 12:12 AM
#134
cavatappo avatar

cavatappo

New Zenner

Join Date:
May 2010
Location:
New York, NY
Posts:
10
Plugin Contributions:
0

Re: AutoFacebook [Support]

Does anyone know how to designate which fanpage the autofacebook module posts to?

4 Sep 2010, 2:33 AM
#135
countrycharm avatar

countrycharm

Totally Zenned

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

Re: AutoFacebook [Support]

jamielife:

Yeah it was designed to do that, I just needed to see the structure of the products_description array.

Go a head and delete those 3 lines for now.

I'm looking into this.

jamielife did you happen find a fix yet? Thank you in advance

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

6 Sep 2010, 5:27 PM
#136
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoFacebook [Support]

cavatappo:

Does anyone know how to designate which fanpage the autofacebook module posts to?

that's definited by in the $page_id

if you'd like to specify go to your page in your browser and you should see the page's id number in the address bar. then in (update_product.php) just page $page_id ="your page id" that specific number.

6 Sep 2010, 5:46 PM
#137
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoFacebook [Support]

countrycharm:

jamielife did you happen find a fix yet? Thank you in advance

No sadly I haven't. I can't reproduct the problem myself on my servers to test anything, so it make's it much harder to find a solution.

I think that because of this, the problem is random and probably based on settings in your server's php.ini file. I have asked developers better than me and we all seem to be stumped on this.

The variale info is there and obviously fine (judging by from var_dump). Something is happening when it's being sent to facebook.

Perhaps you could try encoding the data;
find line 104 where you see:

    $prod_description = $_POST['products_description'][$_SESSION['languages_id']];  

and add a new line under it that looks like;

$prod_description = urlencode($prod_description); 

I'm sorry I can't be more help on this.

Also, thanks for helping out on the forum!

6 Sep 2010, 6:09 PM
#138
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoFacebook [Support]

Hobby Link:

Hi Jamie.

Installation V2 on 1.3.8a works a charm.

Quick question - what do I need to tweak in the code for the price to be quoted INCLUDING tax on facebook? Currently quotes excluding tax which is a bit backwards for the Aussie market. I can see it creating confusion!

I'm not too familiar with all the zencart tax stuff but I would imagine find:

    $price = $products_price;

around line 101 of your update_product.php file and change it to:

    $price = $_POST['products_price_gross'];

I think that should do it.

6 Sep 2010, 6:32 PM
#139
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoFacebook [Support]

bluedotted:

Turn erorr reporting off and now getting this via ftp

[30-Aug-2010 02:30:58] PHP Fatal error: Uncaught QueryParseException: An active access token must be used to query information about the current user.
thrown in /home/xxxx/public_html/facebook/facebook_authorization.php on line 532

> 
> Only thing is I have checked the ID and Secret a hundred times

Have you made any progress on this? Are you getting to the facebook allow access page? 

somethings to check;
- make sure the domain is set up correctly and the script is hosted on the domain specified durring set up
- check all vars (id, urls, etc)
- make sure have JSON installed
- make sure that the page is linked to an actual user account.

let me know if that helps.

Also thanks as well for helping out on the forum.
6 Sep 2010, 6:51 PM
#140
bluedotted avatar

bluedotted

New Zenner

Join Date:
Oct 2008
Posts:
64
Plugin Contributions:
0

Re: AutoFacebook [Support]

Problem has been solved, I contacted the web host and they found the issue and fixed it, according to them they already contacted you about the Facebook App not completely being created from the facebook side of the process.