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

AutoFacebook [Support]

Views: 141,424

Results 101 to 120 of 691
29 Aug 2010, 5:04 PM
#101
countrycharm avatar

countrycharm

Totally Zenned

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

AutoFacebook [Support]

jamielife:

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

Jamie thank you for updating the module works great except one thing. I can not get it to pull the item description for some reason. It will just post the item name, price, picture and link but no description. Any help would be appreciated. Thank you.

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

29 Aug 2010, 6:01 PM
#102
jamielife avatar

jamielife

Zen Follower

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

Re: AutoFacebook [Support]

countrycharm:

Jamie thank you for updating the module works great except one thing. I can not get it to pull the item description for some reason. It will just post the item name, price, picture and link but no description. Any help would be appreciated. Thank you.

Hmmm, try changing line 104 to:

$prod_description = implode(" ", $_POST['products_description']);
29 Aug 2010, 8:44 PM
#103
countrycharm avatar

countrycharm

Totally Zenned

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

Re: AutoFacebook [Support]

jamielife:

Hmmm, try changing line 104 to:

$prod_description = implode(" ", $_POST['products_description']);


Hi Jamielife that didn't work either. You can see what i'm talking about [here](http://www.facebook.com/pages/The-Good-Shepherd-Store/211550147855). Thank you again

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

29 Aug 2010, 9:04 PM
#104
jamielife avatar

jamielife

Zen Follower

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

Re: AutoFacebook [Support]

countrycharm:

Hi Jamielife that didn't work either. You can see what i'm talking about here. Thank you again

Ok how bout just:

$prod_description = $product_description[1]; 

or

$prod_description = $_POST['products_description'][1]; 
29 Aug 2010, 10:05 PM
#105
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: AutoFacebook [Support]

Feature Request - Is it possible to somehow limit how many post per day? We literarily add 100s of products if not 1000s to our site on a weekly basis. Updating our Facebook page with every new product will drive our fans crazy and definitely will pass as a spam.

Thanks!

29 Aug 2010, 11:05 PM
#106
jamielife avatar

jamielife

Zen Follower

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

Re: AutoFacebook [Support]

BlessIsaacola:

Feature Request - Is it possible to somehow limit how many post per day? We literarily add 100s of products if not 1000s to our site on a weekly basis. Updating our Facebook page with every new product will drive our fans crazy and definitely will pass as a spam.

Thanks!

It is possible i'll look into it for the next release. Good idea.

30 Aug 2010, 12:34 AM
#107
countrycharm avatar

countrycharm

Totally Zenned

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

Re: AutoFacebook [Support]

jamielife:

Ok how bout just:

$prod_description = $product_description[1];

> 
> ```php
$prod_description = $_POST['products_description'][1]; 

Hi jamielife thank you for the help. I tried both the other codes still nothing. I have racked my brain on this but still unsuccessful.

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

30 Aug 2010, 12:44 AM
#108
jamielife avatar

jamielife

Zen Follower

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

Re: AutoFacebook [Support]

countrycharm:

Hi jamielife thank you for the help. I tried both the other codes still nothing. I have racked my brain on this but still unsuccessful.

Just about all those work for me.

Maybe try adding

echo "<pre>";
var_dump($_POST['products_description']);
exit;

just before

//AutoFacebook  

somewhere around line 90-ish

let me know what it says

30 Aug 2010, 1:05 AM
#109
countrycharm avatar

countrycharm

Totally Zenned

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

Re: AutoFacebook [Support]

jamielife:

Just about all those work for me.

Maybe try adding

echo "<pre>";
var_dump($_POST['products_description']);
exit;

> ```php
//AutoFacebook  
```somewhere around line 90-ish
> 
> let me know what it says


getting close, but the product will not insert now. It shows this when trying to insert product.


> array(1) {
>   [1]=>
>   string(499) "
> **Stylish  serving is a snap with this country themed Lazy Susan! Jaunty rooster  motif brightens any gathering with down home charm; smoothly rolling  turn table gives guests fingertip access to their favorite treats. Weight 4.6 lbs. Tempered glass and stainless steel. 14" diameter x 1" high.**
> "
> }

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

30 Aug 2010, 1:07 AM
#110
jamielife avatar

jamielife

Zen Follower

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

Re: AutoFacebook [Support]

countrycharm:

getting close, but the product will not insert now. It shows this when trying to insert product.

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.

30 Aug 2010, 1:10 AM
#111
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.
Thanks you

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

30 Aug 2010, 1:53 AM
#112
jamielife avatar

jamielife

Zen Follower

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

Re: AutoFacebook [Support]

countrycharm:

getting close, but the product will not insert now. It shows this when trying to insert product.

this is kind of a shot in the dark but try changing around line 120 where you see:

'description'       =>  $prod_description,   

to:

'description'       =>  $_POST['products_description'][1],
30 Aug 2010, 4:37 AM
#113
countrycharm avatar

countrycharm

Totally Zenned

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

Re: AutoFacebook [Support]

jamielife:

this is kind of a shot in the dark but try changing around line 120 where you see:

'description' => $prod_description,

> 
> ```php
'description'       =>  $_POST['products_description'][1],

That does not work either Jamielife.

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

30 Aug 2010, 5:37 AM
#114
bluedotted avatar

bluedotted

New Zenner

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

Re: AutoFacebook [Support]

Another issue I found when loading the facebook_authorization.php

Strict Standards: main() [function.main]: 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 'EDT/-4.0/DST' instead in /home/xxxx/public_html/facebook_authorization.php on line 970

Notice: Undefined offset: 0 in /home/xxxx/public_html/facebook_authorization.php on line 970

Success!

Your page's ID is: 


Strict Standards: main() [function.main]: 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 'EDT/-4.0/DST' instead in /home/xxxx/public_html/facebook_authorization.php on line 972

Notice: Undefined offset: 0 in /home/xxxx/public_html/facebook_authorization.php on line 972
Your page's Token is: 

Now just copy and paste these codes to the included update_product.php.
Note: if you see a period (or any other punctuation) at the end of your page token please copy and paste that as well as it is part of the token.

This is for another site I tried it on

Notice: Undefined offset: 0 in /home/xxxx/public_html/facebook_authorization.php on line 970
Success!

Your page's ID is:

Notice: Undefined offset: 0 in /home/xxxx/public_html/facebook_authorization.php on line 972
Your page's Token is:

Now just copy and paste these codes to the included update_product.php.
Note: if you see a period (or any other punctuation) at the end of your page token please copy and paste that as well as it is part of the token.

Any idea what maybe causing this?

30 Aug 2010, 6:36 AM
#115
bluedotted avatar

bluedotted

New Zenner

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

Re: AutoFacebook [Support]

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

30 Aug 2010, 3:17 PM
#117
whosyourdaddy avatar

whosyourdaddy

New Zenner

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

Re: AutoFacebook [Support]

When running the facebook_authorize.php I get the following error and cannot proceed to the success page to get the page's ID and page's token

{
"error": {
"type": "OAuthException",
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration."
}
}

here is the info that I have entered as per instructions

  1. on facebook created application: http://www.facebook.com/apps/application.php?id=137653992944479

  2. Facebook Application Web Site: Site URL: http://www.my-chef.org/cart/
    Site Domain: my-chef.org

  3. Facebook Intergration: uncheck users and checked Facebook Pages left everything else blank

  4. I get my Application ID" and "Application Secret"

  5. I insert those values into the facebook_authorize.php and upload to temp directory http://my-site.org/facebook/ and run file

The error quoted above is the return from running the script.

Does anyone have any suggestions as to what I have done incorrectly and maybe able to assist me in correcting this error?

Zen Cart Version 1.39h
PHP 5

30 Aug 2010, 7:16 PM
#118
bluedotted avatar

bluedotted

New Zenner

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

Re: AutoFacebook [Support]

WHOSYOURDADDY:

When running the facebook_authorize.php I get the following error and cannot proceed to the success page to get the page's ID and page's token

here is the info that I have entered as per instructions

  1. on facebook created application: http://www.facebook.com/apps/application.php?id=137653992944479

  2. Facebook Application Web Site: Site URL: http://www.my-chef.org/cart/
    Site Domain: my-chef.org

  3. Facebook Intergration: uncheck users and checked Facebook Pages left everything else blank

  4. I get my Application ID" and "Application Secret"

  5. I insert those values into the facebook_authorize.php and upload to temp directory http://my-site.org/facebook/ and run file

The error quoted above is the return from running the script.

Does anyone have any suggestions as to what I have done incorrectly and maybe able to assist me in correcting this error?

Did you add your domain to the application settings under "WebSite" inside the facebook app?

  1. For now we need to click "Web Site" on the left and edit our "Site URL" and our "Site Domain".
    The Site URL is simply your store's web address followed by a '/' forward slash. So it should look something like "http://mystore.com/"
    Your Site Domain is just your domain name 'dot' whatever and could look like "mystore.com". No "http://", no "www.", and no "/"
30 Aug 2010, 11:33 PM
#119
whosyourdaddy avatar

whosyourdaddy

New Zenner

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

Re: AutoFacebook [Support]

Thank you for your response Yes I have added as instructed the domain name in the Web Site tab of the application (image(s) attached for verification) as well as for the Facebook Integration

code from the facebook_authorization.php which is uploaded into the directory facebook on the my-chef.org site

//edit with your info
$app_id = "137653992944479"; //given when you created app
$app_secret = "2724333d3ea0a08ec5149cd4b0db8a88"; //given when you created app
$app_location = "http://my-chef.org/facebook/facebook_authorization.php"; //full path to location of this file. see step 7
//no need to edit below this line

Note in rerunning the script again I now have received a success along with page id and page token.

I'm not sure what was going on but I am sure happy for the positive results.

Thank you for your response!!!

Zen Cart Version 1.39h
PHP 5

31 Aug 2010, 12:47 AM
#120
countrycharm avatar

countrycharm

Totally Zenned

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

Re: AutoFacebook [Support]

WHOSYOURDADDY:

Thank you for your response Yes I have added as instructed the domain name in the Web Site tab of the application (image(s) attached for verification) as well as for the Facebook Integration

code from the facebook_authorization.php which is uploaded into the directory facebook on the my-chef.org site

Note in rerunning the script again I now have received a success along with page id and page token.

I'm not sure what was going on but I am sure happy for the positive results.

Thank you for your response!!!
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.

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