Re: AutoFacebook [Support]
Quote:
Originally Posted by
jsarwar
I tried to open facebook_authorization.php and got following error.
I have only edit my information in this file so not sure why getting this error.
Status: array (
0 => '',
)
Fatal error: Uncaught CurlException: 60: SSL certificate problem: unable to get local issuer certificate thrown in /home/suppgeek/public_html/facebook_authorization.php on line 600
There are several reasons. However, the most common reason is server being unable to verify the Certification Authority (CA), who created the certificate.
To solve the issue, please, check with your hosting provider to verify if the local SSL libraries (list of valid Certification Authorities) are up to date.
Have a look here for a possible solution
Re: AutoFacebook [Support]
Quote:
Originally Posted by
infogate
There are several reasons. However, the most common reason is server being unable to verify the Certification Authority (CA), who created the certificate.
To solve the issue, please, check with your hosting provider to verify if the local SSL libraries (list of valid Certification Authorities) are up to date.
Have a look here for a
possible solution
Thank you. I have sent hosting message and waiting for update. I have tried curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); and it shows following error message:
"Status: array (
0 => '',
)
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in /home/suppgeek/public_html/facebook_authorization.php on line 533"
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jsarwar
Thank you. I have sent hosting message and waiting for update. I have tried curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); and it shows following error message:
"Status: array (
0 => '',
)
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in /home/suppgeek/public_html/facebook_authorization.php on line 533"
Hosting Company telling me that there is nothing wrong with server. I see you did not select any category when created facebook app but now it is required and I selected "Communication" Is that make difference?
Re: AutoFacebook [Support]
Figured this out. I have added information to update_product.php and then created a test product. Upon completion it shows
Facebook Error: (#200) The user hasn't authorized the application to perform this action
My app is public. Any idea why I am getting this error?
Re: AutoFacebook [Support]
Quote:
Originally Posted by
delia
That's a server issue. Not sure what's happening but I would contact your hosting company about that. Googling that error message brings up more information with some recommendations. If you are testing this locally, that might well be the problem and you won't have the problem on a live site.
Resolved but now when I create product it shows message "Facebook Error: (#200) The user hasn't authorized the application to perform this action"
I see in video when app is created, no category is selected but now it is required and for some we have to submit for approval.
Any idea how to get rid of this error message?
Re: AutoFacebook [Support]
Quote:
Originally Posted by
jsarwar
Resolved but now when I create product it shows message "Facebook Error: (#200) The user hasn't authorized the application to perform this action"
I see in video when app is created, no category is selected but now it is required and for some we have to submit for approval.
Any idea how to get rid of this error message?
I guess you just need to reset the token to your page to make it work again. As menstioned on the well prepared readme file of the application by Jamie Taylor follow this steps to get a new token.
1. 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 1 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.
2. 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."
3. 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.
4. 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.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
infogate
I guess you just need to reset the token to your page to make it work again. As menstioned on the well prepared readme file of the application by Jamie Taylor follow this steps to get a new token.
1. 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 1 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.
2. 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."
3. 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.
4. 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.
Thank you for info but I have already done all this. I have removed app few times from profile and authorize it again and input new token in update_product file but it is not working. I was reading yesterday and it shows "manage_pages" require facebook approval now and have to submit app for approval. Is that sounds right?
Re: AutoFacebook [Support]
Sorry to say but it is just a token problem. Try to verify the token you get for your page is right here cause it seems you are missing something on the procedure.
But the errors that you get means you don't provide a confirmed token to the application.
Re: AutoFacebook [Support]
Quote:
Originally Posted by
infogate
Sorry to say but it is just a token problem. Try to verify the token you get for your page is right
here cause it seems you are missing something on the procedure.
But the errors that you get means you don't provide a confirmed token to the application.
Thanks.
I tried and this page gave error: Failed to parse URL
I am copying token directly from page loads by domain.com/facebook_authorization.php
for example
[name] => xxxxxxxxxxxxx
[access_token] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[perms] => Array
(
[0] => ADMINISTER
[1] => EDIT_PROFILE
[2] => CREATE_CONTENT
[3] => MODERATE_CONTENT
[4] => CREATE_ADS
[5] => BASIC_ADMIN
)
[id] => xxxxxxxxxxxxx
I have replaced actual values with xxxxxxxxxxxxx here.
I have also entered same token and id to update_product page with other information. Not sure what I am still missing which causing this error.
Re: AutoFacebook [Support]
Suggested solutions
1. Double check that you provide the correct token to application
2. Double check the following information are corect before run the facebook_authorization.php
//edit with your info
$app_id = "xxxxxxxxxxxxx"; //given when you created app
$app_secret = "YYYYYYYYYYY"; //given when you created app
$site_url = "http://www.yourdomain.com/facebook_authorization.php"; //full path to location of this file.
3. Double check that you provide correct information to the update_product.php
//AutoFacebook
$app_id = "xxxxxxxxxxxx"; //given when you created app
$app_secret = "YYYYYYYYYYYY"; //given when you created app
$page_id = "KKKKKKKKKKKKK"; //obtained from running facebook_authorization.php from your browser
$page_token = "VERY LONG STRING YOU GET FROM facebook_authorization.php"; //long number obtained from facebook_authorization.php
4. Double check Application ---> Settings ---> Migrations ---> ON
If you follow all the above and try not to mix the information from page_id and page_token with other pages you might created in facebook everything will work perfect.