Re: AutoFacebook [Support]
Quote:
Originally Posted by
deathman2006
Hi Jamie,
Thanks for the updated version.
Ive got a couple of issues.
1. The currency symbol doesnt appear
2. Can't get the description to show either. Ive tried all that has been suggested on here and the closest i got was using one of the different lines of code it came up with "null" in the description.
Can't get the description to show either. Ive tried all that has been suggested on here and the closest i got was using one of the different lines of code it came up with "null" in the description
I'm having the same issue with the "null" as you are. I think we might have to live without having a description. If I go to my site and press the facebook share button it sends the description. I don't know.
Re: AutoFacebook [Support]
I added the auto facebook code and my auto tweet code to my updateproduct file, and twitter updates fine (actually I get the message that both have been updated), but it's not showing up on my Facebook store page. What am I doing wrong do you think?
I entered all the codes and numbers that I was given correctly, so I know it isn't that. :(
Help!
Joanne
Re: AutoFacebook [Support]
Quote:
Originally Posted by
joannem
I added the auto facebook code and my auto tweet code to my updateproduct file, and twitter updates fine (actually I get the message that both have been updated), but it's not showing up on my Facebook store page. What am I doing wrong do you think?
I entered all the codes and numbers that I was given correctly, so I know it isn't that. :(
Help!
Joanne
That does seem odd. Does the facebook code work without the twitter code? and Do you have more than one page? Is anywhere else on facebook receiving the updates?
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
That does seem odd. Does the facebook code work without the twitter code? and Do you have more than one page? Is anywhere else on facebook receiving the updates?
Url encoding didnt work i take it? grrr
Well, I'm thinking it has something to do with the way cURL is configured on varius servers. It's the only thing I can think of that would cause the same line of code to work on some servers and not on others. Obviously the variable has the information, it just isn't being sent.
What hosting do you use and do they give any cURL specific examples/instructions?
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
Url encoding didnt work i take it? grrr
Well, I'm thinking it has something to do with the way cURL is configured on varius servers. It's the only thing I can think of that would cause the same line of code to work on some servers and not on others. Obviously the variable has the information, it just isn't being sent.
What hosting do you use and do they give any cURL specific examples/instructions?
LOL, you know what, it works perfectly, except it posted it to another page that I'm an admin on. Sooo I've removed myself as admin from those other pages and now I'm going to try it again :P
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:cool:) 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
Quote:
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.
Quote:
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 :clap:
Good Luck
Re: AutoFacebook [Support]
Quote:
Originally Posted by
WHOSYOURDADDY
***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:cool:) 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 :clap:
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):
http://htmyell.com/images/share/fbnumber.jpg
and fill it in for line 96 where you see:
PHP Code:
$page_id = "Your page ID";
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.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
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..
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
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:
PHP Code:
$prod_description = $_POST['products_description'][$_SESSION['languages_id']];
and add a new line under it that looks like;
PHP Code:
$prod_description = urlencode($prod_description);
I'm sorry I can't be more help on this.
Also, thanks for helping out on the forum!
I tried this and it almost works. Here what the description looks like when posting to facebook.
All In One Media Center
Price: $275.90
%3Cp%3E%3Cspan+style%3D%5C%22font-size%3A+small%3B%5C%22%3E%3Cstrong%3E%3Cfont+color%3D%5C%22%23000000%5C%22%3ECol orful+++entertainment+credenza+puts+a+full+function+media+center+anywhere+you+