-
Re: AutoFacebook [Support]
hello ,everybody
I just intalled,and all is okay,Now I want to delete image,and add a product model,But I can't success.
PHP Code:
'page' => $pageID,
'prod_model' => $_POST['products_model'][$_SESSION['languages_id']],
'price' => $products_price,
'prod_name' => $_POST['products_name'][$_SESSION['languages_id']],
'prod_description' => $_POST['products_description'][$_SESSION['languages_id']],
'prod_url' => '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id, );
$url = "http://apps.htmyell.com/fbpageid/sendvars.php";
-
Re: AutoFacebook [Support]
Hi
I installed this and being a bit thick took me a good while but its working now.
The one problem I do have though is if I duplicate an ad and edit it for speed reasons of putting up an ad it doesn't show. If I insert a completely new ad it works okakokay.
-
Re: AutoFacebook [Support]
Hi
Trying to install autoFacebook 2.0. When I get the step 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. I see none of this. Were did I go wrong? I am running Zencart 1.3.9.
Thanks for any help.
Bob
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Gosh Golly Gee Whizz
Hi
I installed this and being a bit thick took me a good while but its working now.
The one problem I do have though is if I duplicate an ad and edit it for speed reasons of putting up an ad it doesn't show. If I insert a completely new ad it works okakokay.
Just so you know it's not something you have done or should have done. It works that way for me too.
Not to sure if it is suppose to be like that. As I like the duplicating of products feature too of ZenCart. But if you use that feature then the duplicated product does not get posted to Facebook.
Quote:
Originally Posted by
sensory
Hi
Trying to install autoFacebook 2.0. When I get the step 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. I see none of this. Were did I go wrong? I am running Zencart 1.3.9.
Thanks for any help.
Bob
Try this version as this is the one I ended up installing and it works perfectly without any fuss.
http://htmyell.com/autofacebook-light/
It is made by the same author.
Or have a read of this.
http://htmyell.com/autofacebook-2-0/
There is some comments about that issue at the bottom of the page.
-
Re: AutoFacebook [Support]
@cybergirl
Quote:
Just so you know it's not something you have done or should have done. It works that way for me too.
Well thats a serious pain as its okay for a couple of ads but when you have a number to create a new ad AND insert ALL its attributes as well would take a lifetime in my case.
This is a very good addon but I'm afraid its not very practical in the way it works on anything but a very very small site.
-
Re: AutoFacebook [Support]
It can be made to update facebook for copied products, there are some alterations that need to be done. I offered up how to do this as well as specify when it would update fb, so for instance if you were updating a product description you could specify whether or not to post if to fb. No one took me up on the offer so I didn't bother spending the time. I guess I will post it here and perhaps update the zip in the downloads.
I couldn't get the fb app to work properly so used the older version (not the lite). My changes are for using this older version.
-
Re: AutoFacebook [Support]
Quote:
It can be made to update facebook for copied products, there are some alterations that need to be done. I offered up how to do this as well as specify when it would update fb, so for instance if you were updating a product description you could specify whether or not to post if to fb. No one took me up on the offer so I didn't bother spending the time. I guess I will post it here and perhaps update the zip in the downloads.
I couldn't get the fb app to work properly so used the older version (not the lite). My changes are for using this older version.
Hi lankeeyankee,
That sounds like a great enhancement! I think that specifying if or when you want to post to FB would be excellent. We often copy products or have products set up & deemed 'unavailable' sitting waiting until our stock arrives before we make them 'live'.
I'd love to try your version if you are still submitting it:bigups:
-
Re: AutoFacebook [Support]
Can anybody help me with this app, tried to follow procedures but they seem a bit dated, seems to hook thru but then gets stuck in a "reload" loop; this is point 14 on the authors web page
Thanks for any help
-
Re: AutoFacebook [Support]
I've been using this for a while now and had to reinstall when i changed servers and domains.
This time around the updates are posting to the wrong facebook page. (I admin 3 other pages in addition to my store page) How can I make sure the updates go to the correct page?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Tyger
I've been using this for a while now and had to reinstall when i changed servers and domains.
This time around the updates are posting to the wrong facebook page. (I admin 3 other pages in addition to my store page) How can I make sure the updates go to the correct page?
Go back and do what WHOSYOURDADDY says to do to fix it.
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
-
Re: AutoFacebook [Support]
Hello,
I just installed this add on for my website which is currently 1.3.9h I have followed all direction however on your statement "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."
there is nothing on Facebook Intergration that has that option. when i go to the app part to add app it sends me to my website. also the http://apps.facebook.com/---------/ is blank where the -------- lines are.
How do i know if it is working properly without your directions not being on the facebook app section?
Thanks
-
Re: AutoFacebook [Support]
When you have more than one page on facebook application goes blank and dont work. Is there update soon for this great mod? autoFacebook Light
-
Re: AutoFacebook [Support]
Is there a way to remove the pricing? Because some items we have at MAP then crossed out in red with a sale price. But the sale price does not show on the facebook page. Anyways I think it is better to remove the price so the user will click on it to read about it first and to see the actual price on our site.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
willie bee
Is there a way to remove the pricing? Because some items we have at MAP then crossed out in red with a sale price. But the sale price does not show on the facebook page. Anyways I think it is better to remove the price so the user will click on it to read about it first and to see the actual price on our site.
Yes there is.
All you do is open up update_product.php and comment out line 107 for example.
Original section of the file.
Code:
'page' => $pageID,
'prod_image' => $_POST['products_image'],
'price' => $products_price,
'prod_name' => $_POST['products_name'][$_SESSION['languages_id']],
Modified section of the file.
Code:
'page' => $pageID,
'prod_image' => $_POST['products_image'],
// 'price' => $products_price,
'prod_name' => $_POST['products_name'][$_SESSION['languages_id']],
Now the price will not be posted on Facebook.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
CybaGirl
Yes there is.
All you do is open up update_product.php and comment out line 107 for example.
Original section of the file.
Code:
'page' => $pageID,
'prod_image' => $_POST['products_image'],
'price' => $products_price,
'prod_name' => $_POST['products_name'][$_SESSION['languages_id']],
Modified section of the file.
Code:
'page' => $pageID,
'prod_image' => $_POST['products_image'],
// 'price' => $products_price,
'prod_name' => $_POST['products_name'][$_SESSION['languages_id']],
Now the price will not be posted on Facebook.
Just a quick check before I go breaking it all over again. :frusty:
could you enlighten us newbees as to the line number or section of the code we should edit for this, please.
I can see two or is it three times where it is entered and would not like to fiddle around with the wrong bits. :cry:
-
Re: AutoFacebook [Support]
Addendum to my last post.
would it be in this section?
// No Need to edit below here.
$prod_image = $store_url . "/images/" . $_POST['products_image'];
// $price = $products_price;
$prod_url = $store_url . '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id;
$prod_name = $_POST['products_name'][$_SESSION['languages_id']];
$prod_description = $_POST['products_description'][$_SESSION['languages_id']];
//$prod_description = implode(" ", $_POST['products_description']);
Ironically for me with the header;
// No Need to edit below here.
:unsure: :lookaroun
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
BillyBoyle
Addendum to my last post.
would it be in this section?
// No Need to edit below here.
$prod_image = $store_url . "/images/" . $_POST['products_image'];
// $price = $products_price;
$prod_url = $store_url . '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id;
$prod_name = $_POST['products_name'][$_SESSION['languages_id']];
$prod_description = $_POST['products_description'][$_SESSION['languages_id']];
//$prod_description = implode(" ", $_POST['products_description']);
Ironically for me with the header;
// No Need to edit below here.
:unsure: :lookaroun
also edit line 135
//'caption' => 'Price: '.$cur . $price,
or you'll have an currebcy symbol with no price.
-
Re: AutoFacebook [Support]
Yes thanks for that I forgot to edit the currency symbol out :hug: .
Also to make your life easier when editing or comparing files you might find the following two programs of great use to you.
EditPad Lite
http://www.editpadlite.com/
Press and hold the Shift key and then press the F11 key to get the line numbers to show. This will make your life easier when trying to find line numbers and what code to edit, remove etc. Plus you can set it to replace NotePad as it uses tabs for all your opened text files.
WinMerge
http://winmerge.org/
For comparing differences between your mod files and or adding changes so that mods will work along side each other.
:bigups:
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
CybaGirl
Yes thanks for that I forgot to edit the currency symbol out :hug: .
Also to make your life easier when editing or comparing files you might find the following two programs of great use to you.
EditPad Lite
http://www.editpadlite.com/
Press and hold the Shift key and then press the F11 key to get the line numbers to show. This will make your life easier when trying to find line numbers and what code to edit, remove etc. Plus you can set it to replace NotePad as it uses tabs for all your opened text files.
WinMerge
http://winmerge.org/
For comparing differences between your mod files and or adding changes so that mods will work along side each other.
:bigups:
Your very welcome. :bigups:
I do use Winmerge for compare and merging
I use Mostly Dreamweaver in code view or Context for php editing, though I will take a look at the program you suggested.
Do you know anything about formating the the curency out put from this mod (or any php file I guess)
I'm looking at including the price for my postings but have hit a couple of... (well really don't know what I'm doin) issues.
I found an edit way back in the thread for
line 123 (or there abouts)
Code:
$price = $_POST['products_price_gross'];
to show the price with VAT or TAX added.
The issue I have is the number of decimal places (3)
I get a price as this £0.996 instead of £0.99
I have tried this edit as it looked similar to an edit the [OP] offered for formating the same in autotweet 3
Code:
$price = $_POST[number_format($products_price_gross, 2, '.', ',' )];
I'm not really php savy and have been going crossed eyed reading this thread and a whole load of info on php.net
Any help would be greatly appreciated and I am sure other users would benifit from this as well.
Thanks in advance Billy
-
Re: AutoFacebook [Support]
Here I go again, replying to my own posts.
How sad is that. :P
I was getting the edit correct for formating out put except for copying it from the web page on php.net my sigle quotes were all wrong not coming out like ' ' at all.
Now I don't get a broken update product page, though I am not getting a figure showing on the facebook post.
I know the answer is with in reach, just that my wee short arms can't get it. :D
-
Re: AutoFacebook [Support]
:clap: :flex: :bigups: :wink: :shocking: :cool:
Got it, SO ******* happy with myself right now.
I've worked out how to format php output from zen cart to facebook and twitter. :P
Look for this line:
Code:
$price = $products_price;
and edit to this:
Code:
$vat = .20;
$price = (number_format(( $products_price + $products_price * $vat), 2, '.', ''));
that sorts facebook.
if your using Autotweet as well
look for this line:
Code:
if ($showprice){ $message .= ' Only $' . $products_price . '.'; }
and edit to this:
Code:
if ($showprice){ $message .= ' Only £' . number_format(( $products_price + $products_price * $vat), 2, '.', '') . ' !'; }
That only tookm me two days, bring on the hard stuff.
-
Re: AutoFacebook [Support]
Everything was working till today. I try to get new token but I get this code. Try every sugestion from thread for this error but no luck. Any help, thanx.
Code:
Notice: Undefined offset: 1 in /htdocs/facebook_authorization.php on line 956
Fatal error: Uncaught CurlException: 28: connect() timed out! thrown in /htdocs/facebook_authorization.php on line 599
-
Re: AutoFacebook [Support]
Would like some (probably advanced) help on this one .
Would really like to have correct price showing on the facebook updates (where price does not include VAT).
My previous attempt to fix this works okay if and when the price does include VAT. see two posts up.
Have been looking through other mods I have implemented and found this calc for colloecting Info on price it's form /admin/includes/modules/product/collect_info.php
Code:
<script language="javascript" type="text/javascript"><!--
var tax_rates = new Array();
<?php
for ($i=0, $n=sizeof($tax_class_array); $i<$n; $i++) {
if ($tax_class_array[$i]['id'] > 0) {
echo 'tax_rates["' . $tax_class_array[$i]['id'] . '"] = ' . zen_get_tax_rate_value($tax_class_array[$i]['id']) . ';' . "\n";
}
}
?>
function doRound(x, places) {
return Math.round(x * Math.pow(10, places)) / Math.pow(10, places);
}
function getTaxRate() {
var selected_value = document.forms["new_product"].products_tax_class_id.selectedIndex;
var parameterVal = document.forms["new_product"].products_tax_class_id[selected_value].value;
if ( (parameterVal > 0) && (tax_rates[parameterVal] > 0) ) {
return tax_rates[parameterVal];
} else {
return 0;
}
}
function updateGross() {
var taxRate = getTaxRate();
var grossValue = document.forms["new_product"].products_price.value;
if (taxRate > 0) {
grossValue = grossValue * ((taxRate / 100) + 1);
}
document.forms["new_product"].products_price_gross.value = doRound(grossValue, 4);
}
function updateNet() {
var taxRate = getTaxRate();
var netValue = document.forms["new_product"].products_price_gross.value;
if (taxRate > 0) {
netValue = netValue / ((taxRate / 100) + 1);
}
document.forms["new_product"].products_price.value = doRound(netValue, 4);
}
//--></script>
It would I think (truth is I don't really know a lot about coding) solve the issue of tax/vat showing or not showing as required.
Are there any proper coders reading this thread any more?
Is there a way to transfer tis to the Autofacebook module?
Would it need converted into a php function and can someone do this?
Am I asking to much? :smile:
Please Jamie I need your input. :clap:
-
Re: AutoFacebook [Support]
Is there a way we can update the instructions since it looks like the apps for facebook has changed?
I got it to work and it says facebook updated successfully on my admin side but when i go to my facebook page it is blank.
i have the correct ID's and such that are correctly filled in.
-
Re: AutoFacebook [Support]
is anyone here having issues with their autofacebook lite? it worked for me until days ago and nothing has changed except i think, a newer fb layout??
-
Re: AutoFacebook [Support]
im having trouble installing this as facebook developers screen have changed andf all the button are now different. Can some create new installation instructions please.
stuck on step 4
4. For now we need to click "Web Site" on the left (not that i can see) 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 (i cant see this either). Towards the bottom you should see "Installable to?" (or this). Uncheck "Users"(or this) and add a check next to "Facebook Pages"(or this) instead.
-
Re: AutoFacebook [Support]
Hey, I just filled out what I can and FINALLY got Autofacebook 2.0 to work without any problems. Those other things you have to look for, I couldnt find and doesnt seem to exist.
Quote:
Originally Posted by
kitcorsa
im having trouble installing this as facebook developers screen have changed andf all the button are now different. Can some create new installation instructions please.
stuck on step 4
4. For now we need to click "Web Site" on the left (not that i can see) 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 (i cant see this either). Towards the bottom you should see "Installable to?" (or this). Uncheck "Users"(or this) and add a check next to "Facebook Pages"(or this) instead.
-
Re: AutoFacebook [Support]
Trying to use AFB Lite. But can't seem to install the app thru facebook.
I try to install as "My Page" and i get error message from FB telling me: "To access this page, you'll need to switch from using Facebook as your page to using Facebook as yourself."
so i click the button "Continue as Me", it redirects me back to http://apps.facebook.com/storeupdater/
but when i click the dropdown to "Select Page" i get the error popup saying "The page at http://jamielife.ipower..com says Please create a facebook page before continuing or login on your page's account....but i can't do it as my page. :dontgetit
Any help appreciated,
Ken
-
Re: AutoFacebook [Support]
This is kind of off subject but for the life of me I can not figure out how to post my own thread for help.... Sorry....
My question if anyone can help me,
I added this code to my product_info_display.php
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),
'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&layout=standard&show_faces=false&width=450&action
=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;
height:40px"></iframe>
It works fine, but in the process it took away my rounded corners at the bottom of my page. Does anyone know how to fix that?
Sorry again, I cant figure out how to post a new topic/question.
Thanks anyone who replies :)
-
Re: AutoFacebook [Support]
I am not so sure how to view my app? I am looking at it but I don't see any of my products...
-
Re: AutoFacebook [Support]
I added a new product to my website and it automatically populate into my facebook app using the autofacebook of course... but my problem is in facebook it is showing different price value than what I have listed. Why is this?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
BillyBoyle
:clap: :flex: :bigups: :wink: :shocking: :cool:
Got it, SO ******* happy with myself right now.
I've worked out how to format php output from zen cart to facebook and twitter. :P
Look for this line:
Code:
$price = $products_price;
and edit to this:
Code:
$vat = .20;
$price = (number_format(( $products_price + $products_price * $vat), 2, '.', ''));
that sorts facebook.
if your using Autotweet as well
look for this line:
Code:
if ($showprice){ $message .= ' Only $' . $products_price . '.'; }
and edit to this:
Code:
if ($showprice){ $message .= ' Only £' . number_format(( $products_price + $products_price * $vat), 2, '.', '') . ' !'; }
That only tookm me two days, bring on the hard stuff.
what file is this? which file do I need to edit?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
armie
I added a new product to my website and it automatically populate into my facebook app using the autofacebook of course... but my problem is in facebook it is showing different price value than what I have listed. Why is this?
Are you asking why it shows your SALE PRICE as opposed to your REGULAR PRICE? If that is the question then it is because this mod shows the REGULAR PRICE only.
What I did was remove the pricing code so it only shows the pic and product name on FB.
This will force users to click on it to go to your website to see the price.
-
Quote:
Originally Posted by
lissa8723
This is kind of off subject but for the life of me I can not figure out how to post my own thread for help.... Sorry....
My question if anyone can help me,
I added this code to my product_info_display.php
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),
'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&layout=standard&show_faces=false&width=450&action
=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;
height:40px"></iframe>
It works fine, but in the process it took away my rounded corners at the bottom of my page. Does anyone know how to fix that?
Sorry again, I cant figure out how to post a new topic/question.
Thanks anyone who replies :)
Hi not an expert, but you might want to remove the style declaration "border:none; from your added code. It may be affecting all borders.
Might also need to post a link to your site so people can get an overall look.
Posted via Mobile Device
-
Re: AutoFacebook [Support]
So everything is working fine and dandy for me at the moment with autofacebook and autoweet.. What I would like though and i'm no programmer is that when fb automatically updates, it gives us a "like" and "comment" option, but no share. Any idea if this can be programmed in to the code?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
armie
what file is this? which file do I need to edit?
First the easy question:
The price you are seeing is the price without TAX or VAT or whatever added.
The mod to the file corrects that. so that if you live in a country where we are not used to seeing TAX added at the sale end you don't give miss-leading prices to customers.
Sorry willie bee it has nothing to do with sales.
This would be edits to the file whatever-admin/includes/modules/update_product.php.
You would be looking for the section that starts
//// INSERT PRODUCT-TYPE-SPECIFIC *UPDATES* HERE //////
///////////////////////////////////////////////////////
//AutoFacebook
in this section look below your:
$app_id = "8888888888888"; //given when you created app
$app_secret = "a5a5a5a5a5a5a5a5a5a5a5a5a5a"; //given when you created app
$page_id = "1234567890987654321"; //obtained from running facebook_authorization.php from your browser
$page_token = "blahblahblahblah"; //long number obtained from facebook_authorization.php
$store_name = "AML Candles"; // store name i.e. "Mary's Car Shop", or "MikesCupcakes.com."
$store_url = 'http://amlcandles.co.uk'; //path to your store without the trailing "/"
$cur = '£'; //change to your currency symbol. Assumes symbol comes in front of numbers
$new_message = "Scented Soy Wax Candles!"; // change to whatever or leave the same. i.e "New Cupcake!"
There is a line that says (ironically)
// No Need to edit below here.
about line number 116: (in my version anyway)
below that you'll see
About line 123: $price = $products_price; //this is what you need to edit first
Add the lines of code you seen in the other post and that sorts the VAT issue for both Auto-Facebook and Auto-Tweet.
If you need to clean up your postings to get rid of the html from your product descriptions you need to edit the line.
around line 119:
There were a few optional line commented out there so just pick the one that looks similar to:
$products_description = strip_tags($products_description);
That cleans things up if you haven't done so already.
:cool::cool:
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
wakeleymb
So everything is working fine and dandy for me at the moment with autofacebook and autoweet.. What I would like though and i'm no programmer is that when fb automatically updates, it gives us a "like" and "comment" option, but no share. Any idea if this can be programmed in to the code?
Think you might find that Facebook would have something to say about an app that auto liked every update you posted.
Have looked at the service offered by http://www.addthis.com/
here it is in place if you've not see it before One of My Candles
Might be what your looking for.
-
Re: AutoFacebook [Support]
My auto facebook has stopped working. It still says it successfully updated Facebook, but nothing there's no post on Facebook. Any ideas?
-
Re: AutoFacebook [Support]
I finally got it working. I had to add the info to the files again. It had disappeared.
But I do have one question:
Why does facebook_authorization.php give me the wrong page ID?
My app hasn't changed (app ID 168001189921933)
I know I've entered the correct information in facebook_authorization.php, but when I run it, it gives me the wrong page ID.
When I add new products, the posts appear of the page for hekse.no (page ID 215552908467021), but my app is for the page heksebua (page ID ). I could change the page ID in update_product.php manually, but I don't know what to do about the page token.
-
Re: AutoFacebook [Support]
Found my page token by using the method described on this page
http://paugay.com/blog/2011/11/get-f...ess_token.html
-
Re: AutoFacebook [Support]
I am after a little help please.
I updated my password on facebook and now get the following error in Zen Cart when I insert a new product:
Facebook Error: Error validating access token: The session has been invalidated because the user has changed the password.
I have run the facebook_authorization.php which generates a new token and page i.d then there is a message which says.
Now just copy and paste these codes to the included update_product.php.
I cannot find the update_product.php. file anywhere in my cpanel, i have looked under includes, modules but i cannot see the file i need to edit.
My other question is how do i edit the php file if and when i ever find it?
Any help would be most welcome since i have spent the last 5 hours on this with now joy
-
Re: AutoFacebook [Support]
The update_product.php file is located in the following directory.
admin - includes - modules
Also use an FTP program such as Flash FXP to find the file and not cPanel.
To edit this file the best program I have found is EditPad Lite and it's free! You can download a copy from the following URL.
http://www.editpadlite.com/
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
CybaGirl
The update_product.php file is located in the following directory.
admin - includes - modules
Also use an FTP program such as Flash FXP to find the file and not cPanel.
To edit this file the best program I have found is EditPad Lite and it's free! You can download a copy from the following URL.
http://www.editpadlite.com/
Thank you for the reply, As a complete newbie to this i have no idea where to find the admin - includes - modules?
I log into my cpanel and i can find includes-modules which is located in my public html but i cannot for the life of me find the admin folder, as stated im a complete newbie.
Where do i find the admin folder is that somewhere within the cpanel or is it located in my zencart?
-
Re: AutoFacebook [Support]
Hi Frankie, Good New Year to you.
You might be better of downloading to your PC and working from there. AFAIK cPanel can cuase some problems with editing php files.
Pop over here and download FileZilla this sets up the a ftp client on your PC.
You can then safely work on a local copy of your files with out running a risk of breaking your site without a backup in place.
Depending on the server your Shop is loaded on the Admin folder could be named; admin or zc_admin, or if someone set it up for you that had a bit of smarts and was security aware it could be called anything from adimnfrankie to z23mdi6kd9nvh502nfutoagbbb4, the more obscure the name the better basic security you have.
Once tou have a local copyit may be easlier to find update_product.php by searching for the file name.
Hope this helps. Billy
-
Re: AutoFacebook [Support]
First of all thank you for your replies and help.
I have downloaded filezilla and found the file i need to edit but could anyone tell me which line the codes have to be entered into?
-
Re: AutoFacebook [Support]
I have re-run the facebook_authorization.php to get a new access token which i now have but does anyone know which line this has to go into when i edit the file.
I have been looking and it must be me missing something as i cannot see where i need to copy and paste the new code. :(
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
frankyboy
I have re-run the facebook_authorization.php to get a new access token which i now have but does anyone know which line this has to go into when i edit the file.
I have been looking and it must be me missing something as i cannot see where i need to copy and paste the new code. :(
/admin/includes/modules/update_product.php. Scroll down to the facebook code and on the 4th line enter the new access token.
-
Re: AutoFacebook [Support]
How do you install the auto facebook? All of the instructions I have read are related to the old version of facebook developers program. I couldn't find any installation instructions for the new facebook developers page. The majority of the steps include changing something that is no longer even listed on the app editing page.. i.e. there is no website url or domain url to list , there is no "facebook integration" link to click etc...
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
countrycharm
/admin/includes/modules/update_product.php. Scroll down to the facebook code and on the 4th line enter the new access token.
Many thanks for your help although this does not seem to have worked for me.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
countrycharm
/admin/includes/modules/update_product.php. Scroll down to the facebook code and on the 4th line enter the new access token.
I have done this 3 or 4 times now, i have changed line 4 which is the i.d and also line 5 which is the secret i take it that is what i needed to do or is it just line 4 i need to edit with the shorter of the 2 numbers.
The 1st number i get is an i.d number and the second is a token number.
-
Re: AutoFacebook [Support]
Ok i have been doing a little digging and i think i can see the problem.
I can see /admin/includes/modules/ but there is no update_product.php file there.
I have looked else where in my directory but cannot see this file anywhere.
Would it be better if i just re installed the application from scratch?
Im not sure how to do it but i can see that there are instructions so should in theory be straight forward.
Would i need to delete the facebook authorization.php file first or any other files before i do a clean install?
-
Re: AutoFacebook [Support]
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
frankyboy
Ok i have been doing a little digging and i think i can see the problem.
I can see /admin/includes/modules/ but there is no update_product.php file there.
I have looked else where in my directory but cannot see this file anywhere.
Would it be better if i just re installed the application from scratch?
Im not sure how to do it but i can see that there are instructions so should in theory be straight forward.
Would i need to delete the facebook authorization.php file first or any other files before i do a clean install?
If you downloaded the AutoFacebook moduole and open the file you will see admin/includes/modules/update_product.php file and a file named Facebook. The update_product.php file is located already in your stores admin folder or a custom folder you change it to for security reason. It should look like this Custom name folder/includes/modules/update_product.php. If you have made changes to that file at all you need to open the file and add the Facebook code to that file. That will be it. If you haven't made any changes just upload that file to custom_folder/includes/modules/update_product.php
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
frankyboy
Anyone ?
In the file update_product.php you should be looking for the lines of cade that look like this. in a clean file without any mods this is round about line 103 to 108 the space is at line 105 and 106.
Quote:
///////////////////////////////////////////////////////
//// INSERT PRODUCT-TYPE-SPECIFIC *UPDATES* HERE //////
//// *END OF PRODUCT-TYPE-SPECIFIC UPDATES* ////////
///////////////////////////////////////////////////////
Add the facebook update code in the space between the first and second lot of ///
That code should look like this (or similar) I have changed my entries to something generic (naturally)
Quote:
//AutoFacebook
$app_id = "111111111111111"; //given when you created app
$app_secret = "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1"; //given when you created app
$page_id = "222222222222222"; //obtained from running facebook_authorization.php from your browser
$page_token = "ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4a b3cd4ab3cd4ab3cd4ab3cd4ab3cd4ab3cd4"; //long number obtained from facebook_authorization.php
$store_name = "BillyBoyle"; // store name i.e. "Mary's Car Shop", or "MikesCupcakes.com."
$store_url = 'http://your-shop.co.uk'; //path to your store without the trailing "/"
$cur = '£'; //change to your currency symbol. Assumes symbol comes in front of numbers
$new_message = "Your Message in a bottle!"; // change to whatever or leave the same. i.e "New Cupcake!"
// No Need to edit below here.
$prod_image = $store_url . "/images/" . $_POST['products_image'];
$prod_url = $store_url . '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id;
$prod_name = $_POST['products_name'][$_SESSION['languages_id']];
$products_description = strip_tags($products_description);
// $products_description = $_POST['products_description'][$_SESSION['languages_id']];
// $products_description = implode(" ", $_POST['products_description']);
$vat = .20;
$price = (number_format(( $products_price + $products_price * $vat), 2, '.', ''));
include_once 'facebook/facebook.php';
$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
'cookie' => true, ));
$attachment = array(
'access_token' => $page_token,
'message' => $new_message,
'name' => $prod_name,
'link' => $prod_url,
'description' => $products_description,
'picture' => $prod_image,
'caption' => 'For only: '.$cur . $price,
);
try {
$status = $facebook->api($page_id.'/feed', 'post', $attachment);
$messageStack->add_session('Facebook was successfully updated!', 'success');
}
catch (FacebookApiException $fbe){
$fberror = $fbe->result['error']['message'];
$messageStack->add_session('Facebook Error: '.$fberror, 'error');
}
//end of autoFacebook
//
Hope this helps you frankyboy
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
frankyboy
Anyone ?
Also if you don't see update_product.php in the file structure after you downloaded from your server, it may be that you have not downloaded all files.
This can happen sometimes (power or data can get curupt in the ftp transfer) just use Filezila to download the folder you need again, or just surf the folder tree and download the file only from your server.
Just remember to put it back exactly where you got it from.
Billy.
-
Re: AutoFacebook [Support]
Oh! one other thing I've just remembered... :blink:
I think you need to install OAuth authentication from the autoTweet 3.0 module to get it to work with Fb's new set up. Might be wrong.
5 or 6 months since I installed the mod but, I may be remembering wrongly. I am sure I had to install both mods to get it to work for me. Don't need to use autoTweet, just need the OAuth authentication for processing.
Mind you it wouldn't hurt to have both anyway if you use Twitter.
Billy:unsure:
-
Re: AutoFacebook [Support]
Ok I have spent the last few weeks on this and to say I am a little hacked off would be an under statement.
I would like to know if there is either an idiots guide to uninstalling the autofacebook from my site so that I can attempt to upload it from scratch.
I really do need to get this working and having now been through every file TWICE in my admin folder I can safely say that the update_products.php file is nowhere to be found which means I cannot update the token to allow the bloody thing to work. :censored:
Anyone please?
Just a quick question, i have downloaded the autofacebook from this website and i can see the file i need so would it be possible to just upload that single file into /admin/includes/modules/ ?
If so what would i need to enter into this file to get it to work?
One last thing how would i upload the file using filezilla?
-
Re: AutoFacebook [Support]
I was wondering if anyone can tell me how i go about deleting or uninstalling this mod please.
I have filezilla on my p.c and was wondering do i just delete the files from there?
Thanks in advance
-
Re: AutoFacebook [Support]
Is there anybody at all on here that can tell me how to uninstall the autofacebook please.
I would like to try a new install but not sure if i can install over the current files that are already in my folders?
Anyone
-
Re: AutoFacebook [Support]
Hi...I installed this module and went through all the configuring and was able to get this module working beautifully right to my page (as I have many) and then out of nowhere I started getting this warning:
Facebook Error: Error validating access token: The session has been invalidated because the user has changed the password.
Is there a simple fix or do I need to go back through the process again? I think this is because FaceBook doesn't know how to leave FaceBook alone. LOL.
Thank you in advance. :blink:
-
Re: AutoFacebook [Support]
got this error when trying to run the facebook_authorization.php in FireFox.
"Fatal error: Uncaught OAuthException: Error validating application. thrown in /home6/indyappa/public_html/facebook/facebook_authorization.php on line 532"
i've got multiple pages.
thanks.
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
RJugalbot
got this error when trying to run the facebook_authorization.php in FireFox.
"Fatal error: Uncaught OAuthException: Error validating application. thrown in /home6/indyappa/public_html/facebook/facebook_authorization.php on line 532"
i've got multiple pages.
thanks.
I am getting this error as well
Fatal error: Uncaught OAuthException: Error validating application. thrown in /home/djdepot/public_html/facebook/facebook_authorization.php on line 532
-
Re: AutoFacebook [Support]
I am currently running Zencart v1.5.0 and i am trying to get the AutoFacebook to work, but i think it hates me. Ok i followed the steps in the readme file for the facebook mod, but im getting a error message. Some of the steps given in the file do not exist in the New Facebook Developers page. The other issue im having trying to run the facebook_authorization.php file is that i get a
Code:
Strict Standards: Unknown: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in Unknown on line 0 Fatal error: Uncaught OAuthException: Error validating application. thrown in facebook/facebook_authorization.php on line 532
I need some help getting this install successfully please, i am not even sure if i got the facebook developer side setup properly below is the screenshot. Please Help :cry::cry::cry:
http://www.spicyradio.net/screenshot.jpg
-
Re: AutoFacebook [Support]
Trying to install the Light version. Cannot get passed Please Select Page on the facebook storeupdater. I have a page created from my main account, but it can not see it. Even tried to create a new one just for the sake of it, and still, storeupdater will not see it..
I saw that some people has the same issues, but mostly people with no existing page.
Please, someone help!!
-
Re: AutoFacebook [Support]
same problems... please somebody post a solution :(
-
AutoFacebook Fix
Please try the following as your new facebook_authorization.php file and let me know how it goes. :)
PHP Code:
<?php
/**
* facebook_authorization.php
*
* @Toni's AutoFacebook Fix
* @copyright Copyright 2003-2012 Zen Cart Development Team
* @copyright Portions Copyright Facebook
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: facebook_authorization.php Toni Scraparoni 2012-03-30 $
*/
//edit with your info
$app_id = '1234567890987654321'; //given when you created app
$app_secret = 'abcdefghijklmnopqrstuvwxyz12345'; //given when you created app
$app_location = 'http://your-website.com/facebook/facebook_authorization.php'; //full url to location of this file
/////////////////////////////////////////////////////////////////////
// Don't Edit Below This Line
/////////////////////////////////////////////////////////////////////
// get app access token
$app_url = 'https://graph.facebook.com/oauth/access_token';
$params = array('grant_type' => 'client_credentials',
'client_id' => $app_id,
'client_secret' => $app_secret);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $app_url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$at_result = curl_exec($ch);
curl_close($ch);
$at_result = explode("=", $at_result);
$access_token = $at_result[1];
// get user access token
// removed offline access per FB note about deprecating this in May 2012
$scope = "read_stream,publish_stream,manage_pages";
if (!isset($_GET["code"])){
header("location: https://graph.facebook.com/oauth/authorize?client_id=".$app_id."&redirect_uri=".$app_location."&scope=".$scope);
}
elseif (!isset($_GET["access_token"])){
$code = $_GET["code"];
$url = "https://graph.facebook.com/oauth/access_token?client_id=".$app_id."&redirect_uri=".$app_location."&client_secret=".$app_secret."&code=".$code;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$ua_result = curl_exec($ch);
curl_close($ch);
$ua_result = explode("=", $ua_result);
$ua_token = $ua_result[1];
$append = '&expires';
$alength = strlen($append);
$apos = strrpos($ua_token, '&expires');
$replace = "";
$uaccess_token = substr_replace($ua_token, $replace, $apos, $alength);
}
// get page ID
$page_url = 'https://graph.facebook.com/me?access_token='.$uaccess_token;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $page_url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$page_result = curl_exec($ch);
curl_close($ch);
$page_result = explode('"', $page_result);
$page_id = $page_result[3];
echo "<h1 style='color: #009900'>Success!</h1><br /><br />
<span style='padding-right: 20px;'>Your Application access token is: </span>
<span style='color: #009900; font-weight: bold'>". $access_token."</span><br /><br /><br /><br />
<span style='padding-right: 20px;'>Your User access token is: </span>
<span style='color: #009900; font-weight: bold'>". $uaccess_token."</span><br /><br /><br /><br />
<span style='padding-right: 20px;'>Your Page ID is: </span>
<span style='color: #009900; font-weight: bold'>". $page_id."</span><br /><br /><br /><br /><br /><br />";
echo "You will only need two out of the three above: Page ID, and your choice of the Application access token <b><u>or</u></b> the User access token.<br /><br /><br />If I understood correctly, user access tokens will expire at some point, while application access does not. There seem to be other differences as well, so I thought it best to provide both and let you choose.<br /><br /><br />Copy and paste your code into the designated spots in admin/includes/modules/update_product.php.<br />
<br /><br />Remember to delete this file from your server when you are finished. You can always upload and run it again if you need to obtain the data or make any changes.<br /><br /><br />
<em>Note: if you see a period (or any other punctuation) at the end of your access tokens, please copy and paste that as well, as it is part of the token. If it's in green, it goes with you. :)</em>";
?>
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
caprimia
Trying to install the Light version. Cannot get passed Please Select Page on the facebook storeupdater. I have a page created from my main account, but it can not see it. Even tried to create a new one just for the sake of it, and still, storeupdater will not see it..
!
I also have this problem and need a fix, if anyone can help it would be great.
-
Re: AutoFacebook [Support]
I've set up everything for the AutoFacebook and everything works fine, new products showing up on our store page and and all the people who like it see the new products too. BUT there is no share or reshare button for the product in either place. What's going wrong?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Beau91324
BUT there is no share or reshare button for the product in either place. What's going wrong?
Not that I use this version of the Auto Facebook mod as I use another version but I am sure this mod does not incorporate the share buttons on your product pages. You need to use a separate mod to accomplish this.
Now you can use this mod here:
http://www.zen-cart.com/index.php?ma...oducts_id=2026
But if you don't use meta tags in your descriptions then your cache folder is going to fill up with error logs pretty fast as there is a bug with the Facebook part of that module.
So to over come that issue I basically removed all references of the Facebook module from that mod and then used the following code in my tpl_product_info_display.php where I wanted the Facebook button to appear. Or you can just use the following code on it's own if you don't want to add the Google +1 and Twitter modules to your product pages.
Code:
<!-- bof Facebook like button to render -->
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:550px; height:85px;"></iframe>
<!-- eof Facebook like button to render -->
-
Re: AutoFacebook [Support]
I finally got this mod working, but it posted to my personal page, not my shop page! I have 4 fan pages, and I tried to follow the instructions at http://www.zen-cart.com/showthread.p...180#post934180 but I can't figure out what the url is that I'm supposed to put in at uri=~URL~ ...nothing I've tried works. Help?
I can't just go to my fan page and look at the number, because I named my fan page and so the number no longer shows up. The fan page is just http://www.facebook.com/OpalEssenceShop
Help?
Btw, I moved the AutoTweet3 to the bottom of the page so it shows up when I modify products... but I can't move the FB stuff there without getting errors. Help? And I want to put in those on/off checkboxes... but when I tried that I got errors, too...
-
Re: AutoFacebook [Support]
Everything worked fine for me, Autofacebook & Autotwitter until i JUST upgraded to v1.5 Zencart via Fantastico which was a stupid move. Now I have to go back, find everything and put everything in. I hope my backups have everything.
-
Re: AutoFacebook [Support]
Okay - Everything works perfectly fine for me. I just need to find a way so that I can edit my fb post to include a "Share" link where it has ""Like" and "Comment"
-
Re: AutoFacebook [Support]
Hi all - I am using v1.3.9h and am having the same problems as a few other recent posters in that I am gettiing a fatal error returned from facebook. Because it states it cannot validate the SSL certificate I had my host check it out as I had concerns about the effectiveness of my SSL cert. They responded with a link below for a site which addresses this problem.
ERROR FROM FACEBOOK
Notice: Undefined offset: 1 in E:\inetpub\vs144057\facebook_authorization.php on line 956
Fatal error: Uncaught CurlException: 60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed thrown in (data base address)
LINK = http://net.tutsplus.com/tutorials/ph...ebook-connect/
I do not know enough about this stuff to want to meddle with it but I am looking for someone in here to come up with a fix that works for Zencart ... PLEASE :)
I wasn't willing to try the new php code in post on previous page accompanied by comment "give it a try and see what you think" ??
cheers,
Mike
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
vescera
Everything was working till today. I try to get new token but I get this code. Try every sugestion from thread for this error but no luck. Any help, thanx.
Code:
Notice: Undefined offset: 1 in /htdocs/facebook_authorization.php on line 956
Fatal error: Uncaught CurlException: 28: connect() timed out! thrown in /htdocs/facebook_authorization.php on line 599
Hi,
I decided to use the built in Zen Cart function for displaying the price:
$price = zen_get_products_display_price((int)$products_id);
Hope this helps.
-
Re: AutoFacebook Fix
Quote:
Originally Posted by
ToniScraparoni
Please try the following as your new facebook_authorization.php file and let me know how it goes. :)
You are a star. Thanks
-
Re: AutoFacebook Fix
Quote:
Originally Posted by
BillyBoyle
You are a star. Thanks
Did that new facebook_authorization.php file work ?????????????
I am really interested to know.
cheers,
Mike
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
shags38
Did that new facebook_authorization.php file work ?????????????
I am really interested to know.
cheers,
Mike
Worked like a charm, I would recommend anyone needing to renew the token use this change. Actually I was building a new sites and had to use to get the authorisation from the start. So yes a necessary change to the installation of auto Facebook add on.
-
Re: AutoFacebook [Support]
v 1.3.9h
Hi all - any ideas on what may be causing this when I try to authorize Facebook?
Fatal error: Uncaught OAuthException: Malformed access token AAAGvh4VXG8IBAPNX4I1ZAfRzRXiL6iZAun8reCvXDwocr8uOonobnpEYHDCwYyKOqCGAyxSnsvGsN1i rToJ93nuVVlRCPYWdLSZAWB3wQZDZD&expires thrown in /home/jeweller/public_html/facebook/facebook_authorization.php on line 532
I am using the modified php file by ToniScraparoni (on page 47) - kinda frustrating not being able to get this mod working :(
Any help will be much appreciated.
cheers,
Mike
*** maybe this could be the culprit?? "The Site URL is simply your store's web address followed by a '/' forward slash"
-
Re: AutoFacebook [Support]
*** maybe this could be the culprit?? "The Site URL is simply your store's web address followed by a '/' forward slash"
Last edited by shags38; 16 Jul 2012 at 11:01 PM.
Nope - wasn't that :frusty:
-
Re: AutoFacebook [Support]
Found the problem !!! App went through OK.
For what it is worth for future users - I found that the App ID and APP Secret lines of the Facebook_Autorization.php file has double quote marks (") inside the single (') quote marks where you enter the data so that it becomes '"xxxxxxxxxx"' instead of 'xxxxxxxx' - removing the double quote marks solves the problem.:D
Also reading the instructions carefully helps = url with "/" after it :)
BUT !!!! I loaded a new product to the site and it isn't showing up on the Facebook page :dontgetit .... What could be the issue now ??
cheers,
Mike
-
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
i cannot get the link mentioned in 1 right. this is what i put:https://graph.facebook.com/oauth/aut...pe=publish_str eam,offline_access,manage_pages
but i got http 400 error. where i did wrong?
is connect URL going like www.best4future.com?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
scottrdj
I am getting this error as well
Fatal error: Uncaught OAuthException: Error validating application. thrown in /home/djdepot/public_html/facebook/facebook_authorization.php on line 532
I posted this yesterday - it may help. I had the same frustrating problem.
cheers,
Mike
Quote:
Found the problem !!! App went through OK.
For what it is worth for future users - I found that the App ID and APP Secret lines of the Facebook_Autorization.php file has double quote marks (") inside the single (') quote marks where you enter the data so that it becomes '"xxxxxxxxxx"' instead of 'xxxxxxxx' - removing the double quote marks solves the problem.
Also reading the instructions carefully helps = url with "/" after it :)
BUT !!!! I loaded a new product to the site and it isn't showing up on the Facebook page .... What could be the issue now ??
cheers,
Mike
-
Re: AutoFacebook [Support]
Is anyone managing the support for this mod? - how can I get some assistance? - see previous posts. I have authorization but new products are not updating in facebook - where are they supposed to go to? Confused and frustrated.
many thanks,
Mike
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
lina0962
graph.facebook.com/oauth/authorize?type=user_agent&client_id=~APPID~&redirect_uri=~URL~&scope=publish_str eam,offline_access,manage_pages
Is it right to have "," instead of "."?
Can anybody be kind to tell me how to replace ~URL~ with your connect URL (Facebook Application dialog)? Please give me an example!!
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
knuckle-101
What you want to do is go through the entire process create the page id etc with the facebook authorization file.
Once this is completed you have all your API secret and app id add all that to the proper lines in update_product.php put the page ID of your Shop page instead of the Page ID created in the process, once this is completed saved and uploaded to your ftp go to your application page (profile) and allow the appilication access the Shop Profile page this is all you have to do
what is exactly "your application page (profile)"? is it https://developers.facebook.com/apps?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
lina0962
graph.facebook.com/oauth/authorize?type=user_agent&client_id=~APPID~&redirect_uri=~URL~&scope=publish_str eam,offline_access,manage_pages
Is it right to have "," instead of "."?
Can anybody be kind to tell me how to replace ~URL~ with your connect URL (Facebook Application dialog)? Please give me an example!!
See your URL above - you have uri (with the letter I) INSTEAD of url (with the letter L) - could this be the problem?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
lankeeyankee
It can be made to update facebook for copied products, there are some alterations that need to be done. I offered up how to do this as well as specify when it would update fb, so for instance if you were updating a product description you could specify whether or not to post if to fb. No one took me up on the offer so I didn't bother spending the time. I guess I will post it here and perhaps update the zip in the downloads.
I couldn't get the fb app to work properly so used the older version (not the lite). My changes are for using this older version.
Hello,
I am exatremly interested!!! Could you please tell me where I can download the zip and instructions??
-
Re: AutoFacebook [Support]
Hi I'm having the following error come up:
Fatal error: Uncaught OAuthException: Malformed access token AAAFiwW3WZBb8BAE6AGtQKjnBBVtCViq77209KfM5RhUGcVrzq6cIUal9rj6FZBFGNandURjiIQZAIn2 olY3xCHxgEhls3UrqVMJZC6yfIgZDZD&expires thrown in /hermes/bosweb/web103/b1031/ipg.assceneoncom/facebook/facebook_authorization.php on line 532
Can you please let me know how I can go on?
Site: www.assceneon.com/catalog
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
lina0962
Hello,
I am exatremly interested!!! Could you please tell me where I can download the zip and instructions??
I am as well! If you do this please post the link!
-
1 Attachment(s)
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
So instead of:
PHP Code:
$prod_description = urlencode($prod_description);
Try:
PHP Code:
$prod_description = strip_tags($prod_description);
Hello and thank you for this great tool.
I have tried everything to post the description but i keep having problems. I tried everything but still no luck. When i used "urlencode" i saw my post like that
"%0D%0A%09%26Tau%3B%26omicron%3B%26nbsp%3BMicrosoft%26nbsp%3BWireless%26nbsp%3BM obile%26nbs"
I have attathed a photo. When i try the above solution there is no description at all. I am using CKEditor and my language is greek.
@setlocale(LC_TIME, 'greek');
define('HTML_PARAMS','dir="ltr" lang="gr"');
// charset for web pages and emails
define('CHARSET', 'greek');
Is there something i am doing wrong or i have to try something else.
Thank you in advance.
Attachment 11149
-
Re: AutoFacebook [Support]
I am having to renew my token so I run the athorization.php and get the following in Chrome:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
}
Any ideas ho to fix?
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
Rizla
I am having to renew my token so I run the athorization.php and get the following in Chrome:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
}
Any ideas ho to fix?
Make sure you use the correct settings to your Autofacebook module. Check and confirm the following are the same as to your application page ---> https://developers.facebook.com/apps/
$appapikey = ''; //you application id
$appsecret = ''; // your application secret
$user_id = ""; //the user id of your fan/product page
$app_url = "http://apps.facebook.com/htmyell_backend"; //url to your facebook application page
-
Re: AutoFacebook [Support]
Okay. The best thing to do is get rid of the script. This stopped working for me along time ago so I stopped playing with it. What worked for me until I dont know when (last post was nov 8,2012) was autotweet. I link my twitter account to my Facebook page and both gets updated with a bit.ly link. Only today for some reason it no longer works 01/12/12 and I've been trying to get it to work again for the last few hours. So if someone can help me with that would be great. :-D
-
Re: AutoFacebook [Support]
I would appreciate anyone who actually has this still working to respond to this thread - so I can see how you have done it.
cheers,
Miker
-
Re: AutoFacebook [Support]
Hi Everyone,
I've just released autoFacebook 2.1. I know it's been awhile and it's not so much an update as it is just updated video instructions. I also go over enabling automatic facebook posts on update as well as new products, adding an icon to your app so that it displays on your page's feed, and enabling different forms of currency.
Currently it's only available at: http://htmyell.com/autofacebook-2-1/. However I'm uploading it to ZenCart now.
Video tutorial can be found at: http://youtu.be/IfW42McTKyE
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
Hi Everyone,
I've just released autoFacebook 2.1. I know it's been awhile and it's not so much an update as it is just updated video instructions. I also go over enabling automatic facebook posts on update as well as new products, adding an icon to your app so that it displays on your page's feed, and enabling different forms of currency.
Currently it's only available at:
http://htmyell.com/autofacebook-2-1/. However I'm uploading it to ZenCart now.
Video tutorial can be found at:
http://youtu.be/IfW42McTKyE
WELL DONE Jamie !!!
This upgrade and especially the instruction video is fantastic. I have grappled with the previous version without success but this one works a treat and the instructional video allows for installing and configuring step by step.
I have put this on four(4) sites today so far and will put it on a couple more before the day is out.
Just love the 'Product Update' feature as well - great stuff.
Again well done (and to others who may have assisted),
cheers,
Mike
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
Hi Everyone,
I've just released autoFacebook 2.1. I know it's been awhile and it's not so much an update as it is just updated video instructions. I also go over enabling automatic facebook posts on update as well as new products, adding an icon to your app so that it displays on your page's feed, and enabling different forms of currency.
Currently it's only available at:
http://htmyell.com/autofacebook-2-1/. However I'm uploading it to ZenCart now.
Video tutorial can be found at:
http://youtu.be/IfW42McTKyE
Great job.
I just tried it and seems to be perfectly working.
Nice present for my birthday :) . Thank you jamielife!
-
Re: AutoFacebook [Support]
Hi,
I have just installed your Autofacebook, but after authorisation from Facebook "facebook_authorization.php" shows following
Quote:
Status: array (
0 => '',
)
Whats causing it, I didn't find anything
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
vkd1980
Hi,
I have just installed your Autofacebook, but after authorisation from Facebook "facebook_authorization.php" shows following
Whats causing it, I didn't find anything
Hmmm without any more information, it's hard to say why that would happen. Just to confirm, you have created a separate facebook page, and have followed the video at: http://youtu.be/IfW42McTKyE
-
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jamielife
Hmmm without any more information, it's hard to say why that would happen. Just to confirm, you have created a separate facebook page, and have followed the video at:
http://youtu.be/IfW42McTKyE
I have also encountered the same situation as below:-
Status: array (
0 => '',
)
Fatal error: Uncaught CurlException: 7: couldn't connect to host thrown in /home/u170479066/public_html/facebook_authorization.php on line 600