Page 1 of 3 123 LastLast
Results 1 to 10 of 695

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: AutoFacebook [Support]

    ***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

    graph.facebook.com/oauth/authorize?type=user_agent&client_id=~APPID~&redirect_uri=~URL~&scope=publish_str eam,offline_access,manage_pages

    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.

    graph.facebook.com/me/accounts?access_token=~TOKEN~
    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
    Last edited by WHOSYOURDADDY; 13 Sep 2010 at 04:06 PM.

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

    Default Re: AutoFacebook [Support]

    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





    You can do this, but you don't have to as you've already allowed your app to access all your pages.

    You could just take the individual page's number (which will be in your browser's address bar when you navigate to the facebook page):



    and fill it in for line 96 where you see:

    PHP Code:
    $page_id "Your page ID"

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

    Default Re: AutoFacebook [Support]

    Ok so this MIGHT fix it:

    However, I can't recreate the problem so I am unable to test.

    I think that it is server related and has to do with DNS/cURL settings. So if you're having a problem where something isn't getting posted to facebook (but just about everything else is) Download: http://htmyell.com/images/share/autoFacebook_fix.zip extract the included facebook.php file and replace the facebook.php file located on your server in: "admin/includes/modules/facebook/"

    You don't need to change anything else, this will just change the core facebook api fille.

    Once you replace it, hopefully everything will work.

    ...fingers crossed...

    Please let me know.





    NOTE: This is not an upgrade to the existing autoFacebook 2 mod, it is just a potential fix for those people having issues with the current mod. If everything works fine for you, you do not need to download this.

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

    Default Re: AutoFacebook [Support]

    Quote Originally Posted by jamielife View Post
    Ok so this MIGHT fix it:

    However, I can't recreate the problem so I am unable to test.

    I think that it is server related and has to do with DNS/cURL settings. So if you're having a problem where something isn't getting posted to facebook (but just about everything else is) Download: http://htmyell.com/images/share/autoFacebook_fix.zip extract the included facebook.php file and replace the facebook.php file located on your server in: "admin/includes/modules/facebook/"

    You don't need to change anything else, this will just change the core facebook api fille.

    Once you replace it, hopefully everything will work.

    ...fingers crossed...

    Please let me know.





    NOTE: This is not an upgrade to the existing autoFacebook 2 mod, it is just a potential fix for those people having issues with the current mod. If everything works fine for you, you do not need to download this.
    Still doesn't post the description of the product..
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  5. #5
    Join Date
    Oct 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: AutoFacebook [Support]

    Quote Originally Posted by jamielife View Post
    You can do this, but you don't have to as you've already allowed your app to access all your pages.

    You could just take the individual page's number (which will be in your browser's address bar when you navigate to the facebook page):



    and fill it in for line 96 where you see:

    PHP Code:
    $page_id "Your page ID"
    I'm not talking about the User Access Token - have you tested through your method to insure that it works as you prescribe?

    According to my post in this thread (post #147) when I tested using your prescribed method FB gives back an error code of 200

    As I stated in my post here in this thread (post #149) according to FB Developers Wiki error 200 is a permission error.

    So yes you have the User Access Token that allows posting through the admin privileges granted for that fan page but by not changing the page access token that is different for each page, to the specific access token for that page FB will not allow access by the script.

    what you will see in the page access token is the following

    Application Number|user ID and User Access Token|Fan Page ID|Fan Page Access Token
    the Application Number, User ID and User Access Token remains the same but the Page ID and Page Access Token are what changes from fan page to fan page.

    Think about it, it is a extra level of security to help insure fraudulent access and posting onto face book does not occur

    {
    "name": "Bugs Bunny Frontier",
    "category": "Websites",
    "id": "29469045921",
    "access_token": "some secret string."

    "name": "Daffy Duck Play Pen",
    "category": "Websites",
    "id": "15326801473",
    "access_token": "some secret string."

    "name": "Mother Goose Brothel",
    "category": "Websites",
    "id": "19785012358",
    "access_token": "some secret string."
    },
    The above information is what is gleamed from FB by using the procedure I have outlined earlier.

    So by simple changing the page ID without changing the page access token that matches produces an FB error code of 200 (Permission Denied) when the update_product.php is called when adding a new product to the zen cart.

    When the facebook authorization runs for the first time, FB will look at what session was last used and stored in the cookie session on the users computer to determine which page ID and associated page access token to authorize. Which for those such as myself that mange several pages my not be the one that we want the cart to post to.

    I'm not a programmer but I am one hell of a researcher.

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

    Default Re: AutoFacebook [Support]

    Quote Originally Posted by WHOSYOURDADDY View Post
    I'm not talking about the User Access Token - have you tested through your method to insure that it works as you prescribe?
    You are right, I was thinking about the authentication process for autoFacebook1. I'm starting to think I manage too many mods to keep track of em all.

    I've got a fix for this developed that lets you select your page from a drop down which will be available in the next version.

  7. #7
    Join Date
    Oct 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: AutoFacebook [Support]

    Quote Originally Posted by jamielife View Post
    You are right, I was thinking about the authentication process for autoFacebook1. I'm starting to think I manage too many mods to keep track of em all.

    I've got a fix for this developed that lets you select your page from a drop down which will be available in the next version.
    LOL it happens to the best of us - I'm just glad I was able add something positive to this thread

    I have programmer friend that uses me as his beta tester for work he does - If there is a bug I will find it LMAO

    It really is a great mod with a lot future development possibilities!

    Now to start working on what you and countrycharm just went through on posting descriptions!!!

  8. #8
    Join Date
    Sep 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: AutoFacebook [Support]

    Installed AutoFacebook v2, seemed to install ok, but when i add a new product in zencart at the top it informs me that Facebook was successfully updated, but nothing showing on facebook. I'v uninstalled and re installed the app 3 times without any errors showing at all but can not get anything to show in facebook at all. Anybody any ideas what i can check to try and find whats going wrong.

  9. #9

    Default Re: AutoFacebook [Support]

    I installed Version 2 a few days ago, and it is working perfectly. Also installed Autotweet, which is also working fine.

    Thanks very much for this excellent modules and all your help.

    Adnan Rana
    PC Point Ltd

  10. #10
    Join Date
    Oct 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: AutoFacebook [Support]

    Quote Originally Posted by DesH View Post
    Installed AutoFacebook v2, seemed to install ok, but when i add a new product in zencart at the top it informs me that Facebook was successfully updated, but nothing showing on facebook. I'v uninstalled and re installed the app 3 times without any errors showing at all but can not get anything to show in facebook at all. Anybody any ideas what i can check to try and find whats going wrong.
    If you mange several pages check them all to see which one it posted too!

    If it is posting to the wrong page I have provided a temporary procedure to get the information you need earlier in this thread.
    (post #156 on page 16 of this thread)

    Jamielife is working an upgrade for those of us that manage several pages.

 

 
Page 1 of 3 123 LastLast

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