Results 1 to 10 of 695

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    160
    Plugin Contributions
    3

    Default Re: AutoFacebook [Support]

    Well thanks, I'm glad you liked it :)

  3. #3
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    160
    Plugin Contributions
    3

    Default 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.

  5. #5
    Join Date
    Jan 2007
    Posts
    92
    Plugin Contributions
    2

    Default 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

  6. #6
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default Re: AutoFacebook [Support]

    Quote Originally Posted by jamielife View Post
    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

  7. #7
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    160
    Plugin Contributions
    3

    Default 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?

  8. #8
    Join Date
    Apr 2010
    Location
    London, UK
    Posts
    38
    Plugin Contributions
    1

    Default 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
    Clever AV Ltd
    http://www.cleveravltd.co.uk
    ZenCart 1.3.9g

  9. #9
    Join Date
    Jan 2010
    Posts
    12
    Plugin Contributions
    0

    Default Re: AutoFacebook [Support]

    I've been using this for a while now and had to reinstall when i changed servers and domains.

    This time around the updates are posting to the wrong facebook page. (I admin 3 other pages in addition to my store page) How can I make sure the updates go to the correct page?

  10. #10
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: AutoFacebook [Support]

    Quote Originally Posted by Tyger View Post
    I've been using this for a while now and had to reinstall when i changed servers and domains.

    This time around the updates are posting to the wrong facebook page. (I admin 3 other pages in addition to my store page) How can I make sure the updates go to the correct page?
    Go back and do what WHOSYOURDADDY says to do to fix it.


    Quote Originally Posted by WHOSYOURDADDY View Post
    ***IMPORTANT UPDATE FOR THOSE WHO MANAGE SEVERAL FACEBOOK PAGES***

    Like most I have been scratching my head on how to get this app from Jamielife (Thanks Jamielife) to post new products in our zen cart to the proper Fan Page/Business Page.

    Each fan page has its own page id and access token. The easy part was getting the page ID the hard part was figuring out how to get the the access token for the specific page.

    After you have gone through the initial steps outlined by Jamielife to get the app authorized the next steps will allow you to have this app post to the page of your choosing.

    Here is the solution.:

    1. Run this link in your Browser. Please replace ~URL~ with your connect URL (Facebook Application dialog) and ~APPID~ with your application ID


    You will need to add https// to the following links




    If done correctly you get your zen cart with the URL Parameter Access Token

    2. This URL will return to you a URL parameter access_token.
    3. Save the token somewhere;
    4. Load This URL. Replace ~TOKEN~ with the token received from Facebook at point 2.



    5. As a result you will get the json with all your pages and all access tokens. Save them somewhere;

    Once you have this data it is simple going into the update_product.php at lines 88-92 and change them according to the information associated with the specific page that you want to mod to post to.

    Test to make sure it works

    I have tested it on 1.3.9f with the latest version of Jamielife's mod with success

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

 

 

Similar Threads

  1. v151 autofacebook help
    By sean g in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 27 Nov 2014, 08:52 PM
  2. AutoFacebook and Canada Post Modules
    By DJLQD in forum General Questions
    Replies: 0
    Last Post: 27 Feb 2013, 02:32 PM
  3. v139h Help please with Autofacebook - Support thread is no longer supported
    By shags38 in forum General Questions
    Replies: 0
    Last Post: 18 Jul 2012, 01:49 PM
  4. Problems with AutoFacebook
    By amanda099 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 31 Aug 2010, 10:12 AM
  5. AutoFacebook OG 1.3.9 addon problems
    By eOstrE in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Jul 2010, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg