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