Forums / All Other Contributions/Addons / AutoFacebook [Support]

AutoFacebook [Support]

Views: 141,424

Results 161 to 180 of 691
14 Sep 2010, 11:52 PM
#161
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

AutoFacebook [Support]

So instead of:

$prod_description = urlencode($prod_description);  

Try:

$prod_description = strip_tags($prod_description);  
15 Sep 2010, 4:11 AM
#162
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: AutoFacebook [Support]

jamielife:

Wait a minute, why is there HTML/CSS in your product description? Are you using a WYSIWYG editor or hand coding HTML in your descriptions or something like that? What other mods have you installed to your Zen-Cart?

I'm willing to bet that's the problem.
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.

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

15 Sep 2010, 4:15 AM
#163
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: AutoFacebook [Support]

jamielife:

So instead of:

$prod_description = urlencode($prod_description);

> ```php
$prod_description = strip_tags($prod_description);  

I will test this tomorrow and let you know.

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

15 Sep 2010, 6:06 AM
#164
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoFacebook [Support]

WHOSYOURDADDY:

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.

15 Sep 2010, 1:30 PM
#165
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: AutoFacebook [Support]

jamielife:

So instead of:

$prod_description = urlencode($prod_description);

> ```php
$prod_description = strip_tags($prod_description);  

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.

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

15 Sep 2010, 2:23 PM
#166
whosyourdaddy avatar

whosyourdaddy

New Zenner

Join Date:
Oct 2009
Posts:
50
Plugin Contributions:
0

Re: AutoFacebook [Support]

jamielife:

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

Zen Cart Version 1.39h
PHP 5

15 Sep 2010, 2:39 PM
#167
desh avatar

desh

New Zenner

Join Date:
Sep 2010
Posts:
2
Plugin Contributions:
0

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.

15 Sep 2010, 3:07 PM
#168
adnanrana avatar

adnanrana

New Zenner

Join Date:
Jun 2008
Posts:
16
Plugin Contributions:
0

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

15 Sep 2010, 3:12 PM
#169
whosyourdaddy avatar

whosyourdaddy

New Zenner

Join Date:
Oct 2009
Posts:
50
Plugin Contributions:
0

Re: AutoFacebook [Support]

DesH:

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.

Zen Cart Version 1.39h
PHP 5

15 Sep 2010, 6:44 PM
#170
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoFacebook [Support]

countrycharm:

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.

YAY!!!:clap::clap::clap: Finally!

Thank you as well for being patient and working with me on so many experiments.

adnanrana:

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

Thanks for sharing it's always nice to hear everything worked right.

WHOSYOURDADDY:

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.

I agree, odds are it's posting to another one of your pages, check that and follow WHOSYOURDADDY's instructions a page back to authenticate your new page.

15 Sep 2010, 8:25 PM
#171
confusedforever avatar

confusedforever

New Zenner

Join Date:
Sep 2010
Posts:
10
Plugin Contributions:
0

Re: AutoFacebook [Support]

Hi all, sorry to be a pain. Ive spent 4 hours on this module and Im about to give up. Ive search all over the website and read through all 18 pages but I seem to be the only one not able to find this fbcanvas file for facebook.

I know I must be missing something extremely simple but can someone please put me out of my misery!

  1. Next click "Canvas." This is important: facebook uses your canvas callback url to pull content from a page on your server and bring it into your facebook app. Essentially it runs your app as a web page from within facebook. This is going to link to your fbcanvas folder included in the downloaded autoFacebook zip. However before we can upload the fbcanvas folder to your server we have to finish what we're doing now. fbcanvas will need to be uploaded to your public/www root folder. So we'll fill in where we plan to host our fbcanvas folder. So if my store is http://www.htmyell.com, when I upload fbcanvas to my server I'll upload it to the public root directory so that it's url will be http://www.htmyell.com/fbcanvas/. So my Canvas Page url will be "htmyell_backend" (since odds are that hasn't been taken) and my Canvas Callback URL will be "http://htmyell.com/fbcanvas/". Also while you're here make sure to click "FBML" instead of "iFrame."
15 Sep 2010, 8:56 PM
#172
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: AutoFacebook [Support]

confusedforever:

Hi all, sorry to be a pain. Ive spent 4 hours on this module and Im about to give up. Ive search all over the website and read through all 18 pages but I seem to be the only one not able to find this fbcanvas file for facebook.

I know I must be missing something extremely simple but can someone please put me out of my misery!

  1. Next click "Canvas." This is important: facebook uses your canvas callback url to pull content from a page on your server and bring it into your facebook app. Essentially it runs your app as a web page from within facebook. This is going to link to your fbcanvas folder included in the downloaded autoFacebook zip. However before we can upload the fbcanvas folder to your server we have to finish what we're doing now. fbcanvas will need to be uploaded to your public/www root folder. So we'll fill in where we plan to host our fbcanvas folder. So if my store is http://www.htmyell.com, when I upload fbcanvas to my server I'll upload it to the public root directory so that it's url will be http://www.htmyell.com/fbcanvas/. So my Canvas Page url will be "htmyell_backend" (since odds are that hasn't been taken) and my Canvas Callback URL will be "http://htmyell.com/fbcanvas/". Also while you're here make sure to click "FBML" instead of "iFrame."

There is no fbcanvas folder in AutoFacebook Version 2. That was AutoFacebook Version 1 that had it. If you have downloaded that version you need to grab Version 2.

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

15 Sep 2010, 9:13 PM
#173
confusedforever avatar

confusedforever

New Zenner

Join Date:
Sep 2010
Posts:
10
Plugin Contributions:
0

Re: AutoFacebook [Support]

It is the 2.0 that I have. What is the canvas bit for then on fb developers?

I did all the steps on the readme and all went ok but now im just stuck as there is no info on how to set the fb intergration up.

15 Sep 2010, 9:28 PM
#174
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: AutoFacebook [Support]

confusedforever:

It is the 2.0 that I have. What is the canvas bit for then on fb developers?

I did all the steps on the readme and all went ok but now im just stuck as there is no info on how to set the fb intergration up.

If you followed these instructions there is no reason to mess around with the fbcanvas. It was use before the oauth 2.0 authorization to integrate with Facebook's new Graph API calls.

autoFacebook 2.0

By: Jamie Taylor
Htmyell.com
What's New:

Installation:

**New Users: **

  1. Log in to your facebook account and go to http://www.facebook.com/developers and click the "+ Set up New Application" button.

  2. Name your application. I suggest something like "MyStoreDomain.com" but it can be whatever you like. Agree to the terms and click "Create Application." On the next page, if required fill in the security check and click "Submit."
    Note: if an error occurs simply go back you should see your application was created anyway. If so, click "edit settings" otherwise, try again.

  3. Now you should see your new Application settings. You can come back and edit these later though it's not required (I'd suggest atleast uploading an Icon image once everything is working).

  4. For now we need to click "Web Site" on the left and edit our **"Site URL" **and our "Site Domain".
    The Site URL is simply your store's web address followed by a '/' forward slash. So it should look something like "http://mystore.com/"
    Your Site Domain is just your domain name 'dot' whatever and could look like "mystore.com". No "http://", no "www.", and no "/"

  5. Now click "Facebook Integration" on the left. Towards the bottom you should see "Installable to?". Uncheck "Users" and add a check next to "Facebook Pages" instead.

  6. Now click "Save Changes". If all goes well you should see your app on the My Applications page, along your app settings. We'll need to use the "Application ID" and "Application Secret".

  7. Now that we're done with our app open up the included facebook_authorization.php file and edit lines 4 and 5 with your App information.
    *Note: facebook_authorization.php is a simple file that we're going to upload to our server and run from our browser to authorize our application to do things for us like post to our page's wall. After if gives us certain information it is no longer needed and should be deleted. *
    So on line 6 where you see: $app_location = "http://yoursite/facebook/facebook_authorization.php"; This is simply the URL to where you plan to upload facebook_authorization.php. I suggest making a temporary folder on your folder called "facebook". However, where ever you plan to upload it, it must be on the same server you specified in Step 4 and make sure you reflect it's location on line 6. Once you're done editing lines 4-6 save and upload it to where ever you specified in your $app_location.

  8. Once uploaded run the file in your browser and you will be taken to facebook's Permission Request prompt to authorize your app. Click "Allow."

  9. You should now see a Success page with your page's ID and Page's Token. We need those for our next step.
    Note: if you see a period (or any other punctuation) at the end of your page's Token consider it part of the token.

  10. Open up the included update_product.php file in the admin/includes/modules folder and edit lines 90 through 97 with your Application Info and the Info given from the last step (Step 9). Note: $store_url needs to be the full url to your store without the trailing ('/'). So it should look like "http://www.mystore.com" or "http://www.mystore.com/store". Alos: lines 96 and 97 can be personallized or just left as they are.

  11. Now upload the the new update_procut.php and the facebook folder to your store's admin/includes/modules folder on your server (or just drag the admin folder from autoFacebook2 folder to your zencart root directoy)

  12. Now when you add a new product to your store your facebook will automatically be updated with the new product info.* Note: you may now delete the facebook_authorization.php uploaded in step 6 as well as the temporary folder from your server.*
    **Existing Users: **

If all is fine with your old version of autofacebook, there really isn't any major improvements with this version. This version mainly address facebook's changing of the user authorization process for people who did not create their application before july 1st. However if you want to upgrade be aware of the following:

  • You will have to create a new Application since the methods have changed

  • I am unable to test this on any live sites running the old version of autoFacebook so to be safe and ensure maximum compatibility:

    1. Delete the "facebook" folder in your admin folder.
    2. Start at step 1 for new users.
      **Adding to autoFacebook to autoTweet. **

    to add to autoTweet just complete steps 1 - 10 but istead of uploading update_product.php copy lines 89 - 132 of the autoFacebook 2.0 update_product.php and paste them above line 90 (above "// start autoTweet 3.0") of your current update_product.php **Adding autoTweet to autoFacebook **

    copy lines 90 - 157 of your autoTweet update_product.php and paste them just below line 132 (where you see "//end of autoFacebook") For more info and to give feedback check the forums.
    Hope ya like it
    Jamie

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

15 Sep 2010, 9:42 PM
#175
confusedforever avatar

confusedforever

New Zenner

Join Date:
Sep 2010
Posts:
10
Plugin Contributions:
0

Re: AutoFacebook [Support]

Sorry I am not brilliant with facebook. I have followed all the instructions very very slowly (I started this about 5 hours ago).

I now have the app on facebook and looking at the tabs that say about, website, facebook intergration etc.

In the intergration, the profile tab and canvas sections are not filled in. Do I need to fill them in? If so, with what?

Also, I have added the app to one of my fanpages but it doesnt do anything. I do not understand how the new products on my zen can get to my facebook pages?

I really am totally lost with this.

15 Sep 2010, 11:15 PM
#176
whosyourdaddy avatar

whosyourdaddy

New Zenner

Join Date:
Oct 2009
Posts:
50
Plugin Contributions:
0

Re: AutoFacebook [Support]

confusedforever:

Sorry I am not brilliant with facebook. I have followed all the instructions very very slowly (I started this about 5 hours ago).

I now have the app on facebook and looking at the tabs that say about, website, facebook intergration etc.

In the intergration, the profile tab and canvas sections are not filled in. Do I need to fill them in? If so, with what?

Also, I have added the app to one of my fanpages but it doesnt do anything. I do not understand how the new products on my zen can get to my facebook pages?

I really am totally lost with this.

Maybe I can help you.
You have your application created so the hard part is done. Yea Right whatever you say buddy LOL Actually it is
:smile:

My first suggestion don't make it any harder than necessary - Yea easy for you to say buddy LMAO

Starting with the web site profile what you see is at the top is the application ID and the application secret then directly below is site URL and Site domain

this is simple in site URL copy and paste the URL that you see in your browser when you go to your zen cart

example: http://www.yoursite.com or http://www.yoursite.com/cart/ that is it nothing more nothing less

next site domain this is the name of your domain
example yoursite.com that is it no http no www just the name of your domain

Sweet your now done with web site tab - moving on to the next tab this is even more simple since the hard part has already been taken care of in the web site tab.

Facebook Integration Tab the only thing you do and I repeat and stress the only thing you do is go to the very bottom where it says "Installable to" and uncheck the user and check facebook page

Thats it your done now click save changes

Wow pretty cool right you just did your first app!!! :clap:

Yes then add it becuase you need to make sure you have admin privileges to post to your page

Now go back to your editor and make sure that you have the update_product.php with all the correct information as outlined by Jamielife

Save that and upload to your server.

Setup a test cat and create a test product and attach an image to the product.

When you add the new product what happens is the zen cart calls the update_product.php the new autofacebook code talks to the facebook application and says hey buddy how you doing - the FB application says sweet I know you what you got for me - zen cart then instructs the application to post this new information to the page that has been authorized to accept it.

If everything went well then you will see the New Product posted to your page!!

Hope this helps this helps you out - if not I just confused the heck out of you LOL :blink:

Zen Cart Version 1.39h
PHP 5

15 Sep 2010, 11:44 PM
#177
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: AutoFacebook [Support]

WHOSYOURDADDY:

Maybe I can help you.
You have your application created so the hard part is done. Yea Right whatever you say buddy LOL Actually it is
:smile:

My first suggestion don't make it any harder than necessary - Yea easy for you to say buddy LMAO

Starting with the web site profile what you see is at the top is the application ID and the application secret then directly below is site URL and Site domain

this is simple in site URL copy and paste the URL that you see in your browser when you go to your zen cart

example: http://www.yoursite.com or http://www.yoursite.com/cart/ that is it nothing more nothing less

next site domain this is the name of your domain
example yoursite.com that is it no http no www just the name of your domain

Sweet your now done with web site tab - moving on to the next tab this is even more simple since the hard part has already been taken care of in the web site tab.

Facebook Integration Tab the only thing you do and I repeat and stress the only thing you do is go to the very bottom where it says "Installable to" and uncheck the user and check facebook page

Thats it your done now click save changes

Wow pretty cool right you just did your first app!!! :clap:

Yes then add it becuase you need to make sure you have admin privileges to post to your page

Now go back to your editor and make sure that you have the update_product.php with all the correct information as outlined by Jamielife

Save that and upload to your server.

Setup a test cat and create a test product and attach an image to the product.

When you add the new product what happens is the zen cart calls the update_product.php the new autofacebook code talks to the facebook application and says hey buddy how you doing - the FB application says sweet I know you what you got for me - zen cart then instructs the application to post this new information to the page that has been authorized to accept it.

If everything went well then you will see the New Product posted to your page!!

Hope this helps this helps you out - if not I just confused the heck out of you LOL :blink:
Good post. I was going there next. You got there before me:yes:

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

16 Sep 2010, 12:41 PM
#178
whosyourdaddy avatar

whosyourdaddy

New Zenner

Join Date:
Oct 2009
Posts:
50
Plugin Contributions:
0

Re: AutoFacebook [Support]

countrycharm:

Good post. I was going there next. You got there before me:yes:

LMAO I'm working on my post count so i can be totally zenned just like you - :cool:

Zen Cart Version 1.39h
PHP 5

16 Sep 2010, 4:10 PM
#179
confusedforever avatar

confusedforever

New Zenner

Join Date:
Sep 2010
Posts:
10
Plugin Contributions:
0

Re: AutoFacebook [Support]

Thank you for the detailed reply. Ive double and treble checked all this info.

It has worked which is a good thing.

The bad thing is its worked on the wrong page. Its worked on another fanpage I admin. Ive now removed myself as an admin to that particular page and then posted up a new product and it has stopped adding to that page.

Only thing now is it wont add to any other page.

Is there something else I am doing wrong? I went to the applications page and clicked "add to my pages" and slected one page but nothing posts on it.

Help much appreciated.

Jay.

16 Sep 2010, 4:19 PM
#180
jamielife avatar

jamielife

Zen Follower

Join Date:
Dec 2009
Location:
Richmond, VA
Posts:
161
Plugin Contributions:
0

Re: AutoFacebook [Support]

Each page has to be independently authorized. Here are detailed instructions for those adding a different page (thanks to whosyourdaddy)

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

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

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

graph.facebook.com/me/accounts?access_token=TOKEN

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

That should fix it