Re: AutoFacebook [Support]
Quote:
Originally Posted by
countrycharm
jamielife did you happen find a fix yet? Thank you in advance
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!
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Hobby Link
Hi Jamie.
Installation V2 on 1.3.8a works a charm.
Quick question - what do I need to tweak in the code for the price to be quoted INCLUDING tax on facebook? Currently quotes excluding tax which is a bit backwards for the Aussie market. I can see it creating confusion!
I'm not too familiar with all the zencart tax stuff but I would imagine find:
PHP Code:
$price = $products_price;
around line 101 of your update_product.php file and change it to:
PHP Code:
$price = $_POST['products_price_gross'];
I think that should do it.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
bluedotted
Turn erorr reporting off and now getting this via ftp
Code:
[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
Have you made any progress on this? Are you getting to the facebook allow access page?
somethings to check;
- make sure the domain is set up correctly and the script is hosted on the domain specified durring set up
- check all vars (id, urls, etc)
- make sure have JSON installed
- make sure that the page is linked to an actual user account.
let me know if that helps.
Also thanks as well for helping out on the forum.
Re: AutoFacebook [Support]
Problem has been solved, I contacted the web host and they found the issue and fixed it, according to them they already contacted you about the Facebook App not completely being created from the facebook side of the process.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
bluedotted
Problem has been solved, I contacted the web host and they found the issue and fixed it, according to them they already contacted you about the Facebook App not completely being created from the facebook side of the process.
Haha, Yeah never heard from them. Not sure what they mean by that. The app follows all of facebooks guidelines for authorizing access to a user's page. It also uses the facebook recomended php-sdk. Think they were just trying to point the finger to someone else.
Anyway glad you got it working.
and thanks again.
Re: AutoFacebook [Support]
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
that's definited by in the $page_id
if you'd like to specify go to your page in your browser and you should see the page's id number in the address bar. then in (update_product.php) just page $page_id ="your page id" that specific number.
I inserted the number to the fan page and the following error in zen cart was generated
Quote:
Facebook Error: (#200) Posts where the actor is a page cannot also include a target_id
Re: AutoFacebook [Support]
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.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
WHOSYOURDADDY
I inserted the number to the fan page and the following error in zen cart was generated
Checking with Facebook Developer Wiki the 200 error code is a "Permissions error" code.
In addition to the Page Id change suggested does the Page token need to be changed as well? I'm looking into whether that is possible during the authorization setup.
If I figure that out I'll post the results here.
Re: AutoFacebook [Support]
What I have figured out so far is that according the the Face book Graph API each fan page has its own Page ID It but also needs to have its own access token to have the required extended permissions needed for this mod to be able to access the correct fanpage.
When Facebook redirects back to the requesting script during authorization, the script needs to be able to provide the proper access token for the specific fan page.