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

AutoFacebook [Support]

Views: 141,424

Results 601 to 620 of 691
29 Jul 2013, 2:43 AM
#601
joannem avatar

joannem

Zen Follower

Join Date:
Jul 2009
Posts:
110
Plugin Contributions:
0

AutoFacebook [Support]

Hi there,

I've had Auto Facebook working for quite a while now, but it seems like they've changed something :( So, I deleted my app and set up another one, but when I run the facebook_authorization.php script, I get the following error:

*Strict Standards: Unknown: 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/Chicago' for 'CDT/-5.0/DST' instead in Unknown on line 0

Fatal error: Uncaught OAuthException: Malformed access token CAAFHflI18GsBALnTT9wyylUj72gs8RZB0RQcs83EJm3ZBC90RVeCEpjIECJu6lrvGXtpZCo8tjkH6ltrAZCQVv3NtejJLWQ9nYNTBgecYaDPs7OYa5TmJmYab0ziR69oiQLNFnUrVNC3jPQ934FWCQUb0VeFHosZD&expires thrown in /home/joannes/public_html/facebook/facebook_authorization.php on line 532*

I'm still using zencart 1.38 so it's nothing to do with a new version or anything - can anyone help?

Thanks,
Joanne :(

4 Aug 2013, 5:37 PM
#602
heather_ghillyer avatar

heather_ghillyer

New Zenner

Join Date:
May 2013
Location:
Plymouth, United Kingdom
Posts:
6
Plugin Contributions:
0

Re: AutoFacebook [Support]

I have been skimming through posts on here for the best part of 3 hours and have not found anyone with quite the same issue I'm having and I just don't have time to keep skimming through pages so, I apologize if this has been reported and solved already.

I managed to get this installed and working almost completely, lol!

When I make a new product and click "Insert", I get sent to a blank page. I have to send my browser back 3 pages to get back to my category page.

Now, unlike some of the guys here who say that when that happens, the product doesn't get posted on FB... mine does. So the process seems to be executing correctly, it's just not redirecting me back to the category after inserting a new product.

Any idea how to fix this? o.0

6 Aug 2013, 11:50 AM
#603
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: AutoFacebook [Support]

blank page means a php error. Check your cache folder if on 1.3.9 or lowers or your logs folder on 1.5x. The debug text files have the info in them that will help track down what you've done wrong.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

7 Aug 2013, 11:24 PM
#604
collin_ntspb_com avatar

collin_ntspb_com

New Zenner

Join Date:
Mar 2007
Location:
West Palm Beach, FL.
Posts:
95
Plugin Contributions:
0

Re: AutoFacebook [Support]

I'm using autofacebook with zen 1.5.1

The plugin is working great except extra zeros are added to the prices like $949.00000
heres a link https://www.facebook.com/ntsolutionsllc?ref=hl

How do I get the plugin to include the discounted price and fix the zeros or just not include the price at all?

I also want to use the autotwitter plugin how do I install both plugins?

9 Aug 2013, 12:31 PM
#605
bigjayce avatar

bigjayce

New Zenner

Join Date:
Nov 2008
Posts:
7
Plugin Contributions:
0

Re: AutoFacebook [Support]

I have installed the mod as per the youtube video yet when I run the facebook_auth file I get this:

Status: array (
0 => '
'"http://www.w3.org/1999/xhtml"
xml:lang',
2 => '"en" lang',
3 => '"en" id',
4 => '"facebook">

 '"Content-Type"  content',

6 => '"text/html; charset',
7 => 'utf-8" />
'"Cache-Control" content',
9 => '"no-cache" />
'"robots" content',
11 => '"noindex,nofollow" />

 '"menu" href',

16 => '"http://www.facebook.com/">

'"core">
Sorry, something went wrong.

We're working on getting this fixed as soon as we can.

'"return back();" href', 19 => '"http://www.facebook.com/">Go Back
'"footer" id', 21 => '"pagefooter_copyright"> Facebook © 2013 · '"http://www.facebook.com/help/">Help

',
)

Any ideas?

Jayce

9 Aug 2013, 1:27 PM
#606
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: AutoFacebook [Support]

That looks like a facebook message and facebook problem but if you have installed this wrong, perhaps that message would come up as well. Has anyone else seen this message?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

9 Aug 2013, 8:02 PM
#607
bigjayce avatar

bigjayce

New Zenner

Join Date:
Nov 2008
Posts:
7
Plugin Contributions:
0

Re: AutoFacebook [Support]

I followed the video to the letter, even watched it through once and then started it again and followed the steps, anyway though that's the error I get :(

9 Aug 2013, 8:57 PM
#608
bigjayce avatar

bigjayce

New Zenner

Join Date:
Nov 2008
Posts:
7
Plugin Contributions:
0

Re: AutoFacebook [Support]

hmmm, took it out of Sandbox mode and put www in front of the URL and now I get this

{
"error": {
"message": "Invalid redirect_uri: Given URL is not permitted by the application configuration.",
"type": "OAuthException",
"code": 191
}
}

11 Aug 2013, 10:16 AM
#609
bigjayce avatar

bigjayce

New Zenner

Join Date:
Nov 2008
Posts:
7
Plugin Contributions:
0

Re: AutoFacebook [Support]

It's ok I've sorted it - stupid STUPID mistake, when I copied and pasted the app id and secret to the php file there was a space at the start, deleted that and now it works fine

HOWEVER

when I post to facebook the product comes out with the price as £19.990 - how do I limit the decimal points?

20 Aug 2013, 7:37 AM
#610
jaychan2013 avatar

jaychan2013

New Zenner

Join Date:
Jun 2013
Location:
Hong Kong
Posts:
27
Plugin Contributions:
0

Re: AutoFacebook [Support]

My facebook acc. has been login by someone! So I changed the password. But when I update the product information, it shows:

Facebook Error: Error validating access token: The session has been invalidated because the user has changed the password.

Does anyone could tell me how to fix it? Thanks in advance for your help!

24 Aug 2013, 10:31 AM
#611
toycave avatar

toycave

New Zenner

Join Date:
Aug 2013
Location:
Jindabyne australia
Posts:
4
Plugin Contributions:
0

Re: AutoFacebook [Support]

I have just installed this addon and uploaded the corrected file. When using i try to open the facebook_authorization.php file i get this error

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

I have changed the file with my token id etc exactly as shown in the youtube video. Is this something to do with face book developers site being slightly different now.
Any help on this matter would be heaps appreciated.

My website is https://www.toycave.com.au and im trying to upload my items to my facebook site. https://www.facebook.com/toycavebabytoys
I have only just set up my facebook and facebook page.

6 Sep 2013, 4:56 AM
#612
tenthilltoys avatar

tenthilltoys

New Zenner

Join Date:
Aug 2013
Location:
Brisbane
Posts:
25
Plugin Contributions:
0

Re: AutoFacebook [Support]

lankeeyankee:

I looked at the code again in update_products and noticed that you put the first line of my code in the wrong spot, it was inside the

if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

> 
> so this was never being run
> ```php
$facebook_add = $_POST['facebook_add'];

Try the new file and see if it finally works.

Lankee I am having the same problem Can you explain "it was inside" WHAT

6 Sep 2013, 1:26 PM
#613
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: AutoFacebook [Support]

tenthilltoys:

Lankee I am having the same problem Can you explain "it was inside" WHAT

It's supposed to come after the closing bracket so it should look like this:

if (!defined('IS_ADMIN_FLAG')) { 
    die('Illegal Access'); 
  } 

$facebook_add = $_POST['facebook_add']; 

The other poster had it like this:

if (!defined('IS_ADMIN_FLAG')) { 
    die('Illegal Access'); 
$facebook_add = $_POST['facebook_add'];
  } 


Zen Cart and it's community are the best!!

8 Sep 2013, 7:06 AM
#614
tenthilltoys avatar

tenthilltoys

New Zenner

Join Date:
Aug 2013
Location:
Brisbane
Posts:
25
Plugin Contributions:
0

Re: AutoFacebook [Support]

Thankyou Lankee for your response and I apologize for being a bit terse but I had been working on this file for an hour.

I am still getting a white screen and I have double checked all of the code do you have any suggestions.

with thanks

8 Sep 2013, 2:34 PM
#615
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: AutoFacebook [Support]

tenthilltoys:

Thankyou Lankee for your response and I apologize for being a bit terse but I had been working on this file for an hour.

I am still getting a white screen and I have double checked all of the code do you have any suggestions.

with thanks
No worries. Look in your error log to see what error(s) are occurring to give the white screen. It will be something simple. You can also post the code from that page here and I can look at it. Put it in between the ```php
php brackets from the toolbar of the message text editor


Zen Cart and it's community are the best!!

20 Sep 2013, 12:51 AM
#616
tenthilltoys avatar

tenthilltoys

New Zenner

Join Date:
Aug 2013
Location:
Brisbane
Posts:
25
Plugin Contributions:
0

Re: AutoFacebook [Support]

From update_product.php

  if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
  }
  $facebook_add = $_POST['facebook_add'];  
  if (isset($_GET['pID'])) $products_id = zen_db_prepare_input($_GET['pID']);
'products_price_sorter' => zen_db_prepare_input($_POST['products_price_sorter'])
							'facebook_add' => zen_db_prepare_input($_POST['facebook_add'])  
                            );
     //// INSERT PRODUCT-TYPE-SPECIFIC *INSERTS* HERE //////
if ($facebook_add == 1) { 
          //AutoFacebook
 $messageStack->add_session('Facebook Error: '.$fberror, 'error');
          }
}
      ////    *END OF PRODUCT-TYPE-SPECIFIC INSERTS* ////////

From preview_info.php

                                p.product_is_always_free_shipping, p.products_qty_box_status, p.products_quantity_order_max,
                    p.products_sort_order, p.facebook_add 
                               from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
            echo zen_image(DIR_WS_CATALOG_IMAGES . $products_image_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->products_description;
            }
          ?>
        ?>
          <!--BO FACEBOOK-->
             </tr><tr>
          <td><hr></td> 
            </tr><tr>
<td class="smallText">
 <?php
 $facebook_add = $_POST['facebook_add'];
if ($facebook_add == 1) {
                  echo "Facebook Will be Updated.";

                } else {
                  echo "Facebook Will NOT be Updated.";

                }
 ?>
               </td>  </tr>
           <tr>
<!--EO FACEBOOK--> 
        </td>

From collect_info.php

 'master_categories_id' => ''
                       'facebook_add' => '' 
					   );

    $pInfo = new objectInfo($parameters);
p.products_price_sorter, p.master_categories_id, p.facebook_add  

                              from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
 default: $in_products_quantity_mixed = true; $out_products_quantity_mixed = false;
    }
if (!isset($pInfo->facebook_add)) $pInfo->facebook_add = '0';
    switch ($pInfo->facebook_add) {
      case '0': $is_facebook_add_enabled = false; $not_facebook_add_enabled = true; break;
      case '1': $is_facebook_add_enabled = true; $not_facebook_add_enabled = false; break;
      default: $is_facebook_add_enabled = false; $not_facebook_add_enabled = true;
    }  

// set image overwrite
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
          </tr>
<tr>
          <td class="main">Add/update Facebook?</td>
            <td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('facebook_add', '1', $is_facebook_add_enabled) . '  Yes ' . zen_draw_radio_field('facebook_add', '0', $not_facebook_add_enabled) . ' No ' . ($pInfo->facebook_add == 1 ? 'Add to facebook?' : ''); ?></td>

          </tr> 
          <tr>
            <td class="main"><?php echo TEXT_PRODUCT_IS_FREE; ?></td>

when I use this the product screen in admin goes blank.
I used the cut and paste method to do this.

any help please.

Peter

20 Sep 2013, 2:34 AM
#617
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: AutoFacebook [Support]

From my code posted before:

In admin/includes/modules/product/collect_info.php around line 41 look for this line
```php
'master_categories_id' => ''



and change it to
 	```php
'master_categories_id' => '',
'facebook_add' => '' 

You have left out the comma after 'master_categories_id' => ''

And again, you left out the comma here in update_products:

'products_price_sorter' => zen_db_prepare_input($_POST['products_price_sorter']),
'facebook_add' => zen_db_prepare_input($_POST['facebook_add']) 

When changing code you should just replace the entire snippet instead of trying to insert only the new code so you don't forget to miss the little things like commas.


Zen Cart and it's community are the best!!

20 Sep 2013, 2:48 AM
#618
tenthilltoys avatar

tenthilltoys

New Zenner

Join Date:
Aug 2013
Location:
Brisbane
Posts:
25
Plugin Contributions:
0

Re: AutoFacebook [Support]

Thankyou very much for your help got it all working on the spare site now to see how we go on the main site.

Kind Regards

Peter

29 Sep 2013, 2:11 AM
#619
arlette avatar

arlette

New Zenner

Join Date:
May 2006
Posts:
29
Plugin Contributions:
0

Re: AutoFacebook [Support]

I am having this same issue.. Did not see where anyone posted a solution but went to your fb page and see you have it working correctly.. Could you please share how you fixed this issue?
Thank you
Arlette

[email protected]:

I'm using autofacebook with zen 1.5.1

The plugin is working great except extra zeros are added to the prices like $949.00000
heres a link https://www.facebook.com/ntsolutionsllc?ref=hl

How do I get the plugin to include the discounted price and fix the zeros or just not include the price at all?

I also want to use the autotwitter plugin how do I install both plugins?

28 Oct 2013, 4:01 AM
#620
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: AutoFacebook [Support]

likely a dumb question - I have used a few versions of AutoFacebook so not sure which plugin has the feature which allows you to say yes update or no do not update Facebook when you add a new product or modify a new product. Any help will be appreciated. I am using v1.3.9h

cheers,
Mike