hmm... try
deleting:
and adding:PHP Code:
$prod_description = urlencode($prod_description);
in it's placePHP Code:
settype($prod_description , "string");
Printable View
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
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.Quote:
Application Number|user ID and User Access Token|Fan Page ID|Fan Page Access Token
Think about it, it is a extra level of security to help insure fraudulent access and posting onto face book does not occur
The above information is what is gleamed from FB by using the procedure I have outlined earlier.Quote:
{
"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."
},
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.
So instead of:
Try:PHP Code:
$prod_description = urlencode($prod_description);
PHP Code:
$prod_description = strip_tags($prod_description);
I'm using editor__fckeditor_plugin_2-6-4-1 for my editor.
Here are a list of add ons I have installed.
captcha_using_ttf__gd__tel
ceon_back_in_stock2.6.0
ceon_uri_mapping_3.8.0_for_zc
css_flyout_menu_1-3-8a
email_archive_manager_1-4
footer_menu_v1-0
google base 1-8-2
image_handler__for_vx_Ver2-0rev7
links_manager_v3-5-3a
msrp_display_1-2
recover_cart_sales_3-1-0
return_authorization_v2-3-3a
rss_feed_2-1-4
simple_google_analytics_1-2-2(2)
sitemapxml__formerly_google_sitemap_2-1-0
1.7 Lightbox
about_us_page_1-3-1
css_javascript_loader
easypopulate
email_address_exporter_1-2c
email_archive_manager_1-4
emptycart_manager_1-2
faq_page_v1-0
jscroller_sidebox_package_2-1
login_box_1-5
minimum_order_1-0-1a
newsletter_subscribe_2-2
quantity_discounts_1-11
quick_configuration_edit_for_x_1-0-1
recover_cart_sales_3-1-0
return_authorization_v2-3-3a
rss_feed_2-1-4
search_log_2-0
testimonial_manager_v1-5-2
ty_package_tracker_for_x_2-3a
sitemapxml__formerly_google_sitemap_2-1-0
I think this is all.
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.
Jamielift you nailed it. This code works great. The description is now sent to facebook.:clap:
Thank you for your on going effort to solve this problem. Does autoTwitter suppose to send the description to, if it is I have the same problem there. You can post you answer over there if you will. Thank You again.
LOL it happens to the best of us - I'm just glad I was able add something positive to this thread :cool:
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!!!