Re: AutoFacebook [Support]
Hi,
I have mulitple fan pages with FB accounts and I need to publish on particular page dynamically.
So I am thinking to do in this way:
1. Getting access_token in curl
2. Getting pageid and page token
3. Executing update_product.php in cron job
I have executed facebook_authorization.php script to get access_token value but getting following error:
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in XXXX\autofacebooknew1\facebook_authorization.php on line 532
Could anyone please let me know how to fix this error?
Page tokens: How can I get particular page id and/or page token values when there are multiple pages?
access_tokens: I am able to get access_token value using a curl script. Is it enough to publish on particular page? I mean - no permission request dialogue needed?
Please help. Thanks in advance.
Regards,
Naresh Kumar N
Re: AutoFacebook [Support]
Quote:
Originally Posted by
nareshap
Hi,
I have mulitple fan pages with FB accounts and I need to publish on particular page dynamically.
So I am thinking to do in this way:
1. Getting access_token in curl
2. Getting pageid and page token
3. Executing update_product.php in cron job
I have executed facebook_authorization.php script to get access_token value but getting following error:
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in XXXX\autofacebooknew1\facebook_authorization.php on line 532
Could anyone please let me know how to fix this error?
Page tokens: How can I get particular page id and/or page token values when there are multiple pages?
access_tokens: I am able to get access_token value using a curl script. Is it enough to publish on particular page? I mean - no permission request dialogue needed?
Please help. Thanks in advance.
Regards,
Naresh Kumar N
Sometimes you just need to read through the thread to find your answer.
Quote:
Originally Posted by
WHOSYOURDADDY
What I have figured out so far is that according the the Face book Graph API each fan page has its own Page ID It but also needs to have its own access token to have the required extended permissions needed for this mod to be able to access the correct fanpage.
When Facebook redirects back to the requesting script during authorization, the script needs to be able to provide the proper access token for the specific fan page.
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]
I was going to add this app, but unfortuantely facebook wants a credit card number or cell phone number. I'm not giving them either one.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
PullingOutHair
I was going to add this app, but unfortuantely facebook wants a credit card number or cell phone number. I'm not giving them either one.
I wonder when they stated that. I haven't heard of it until now. Must be something new they started.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
PullingOutHair
I was going to add this app, but unfortuantely facebook wants a credit card number or cell phone number. I'm not giving them either one.
I'm not seeing this anywhere, I just uploaded some new products to fb without anything asking for cc or phone.
Re: AutoFacebook [Support]
So I have this set up to where I can specify if a new OR updated products is or isn't listed. Is anyone interested in having this ability? I don't want to spend time outlining everything if no one else is interested.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
mac08
Now the problem I am having is, when I submit a new product, it just takes me to a blank white page. It does not list the product to my shop or facebook.
Quoting a previous message of mine hoping there is someone that is able to help/tell me what this problem means and how to fix it. Still having this problem.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
mac08
Quoting a previous message of mine hoping there is someone that is able to help/tell me what this problem means and how to fix it. Still having this problem.
Here is a link for white page in this thread.
http://www.zen-cart.com/forum/search...rchid=14391820
Re: AutoFacebook [Support]
Quote:
Originally Posted by
countrycharm
That link just takes me to a page that says no matches found.
I've also already read through this entire thread, and I found nothing on the same problem that I'm having.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
mac08
Quoting a previous message of mine hoping there is someone that is able to help/tell me what this problem means and how to fix it. Still having this problem.
Did you double check the update_product.php file make sure you did not overwrite core code or misplaced the connector before the proper variable? This is usually the most common problem for white pages for adding or updating products.
Make sure you have the connector variables between the following lines not before or after
//// INSERT PRODUCT-TYPE-SPECIFIC *INSERTS* HERE //////
//// *END OF PRODUCT-TYPE-SPECIFIC INSERTS* ////////