Error cURL [# 60, CURLE_SSL_CACERT] in Graph API message

I have a JavaScript function to send an image using the Graph APIs.

function postOpenGraphFromUrl(imageUrl, pageUrl, callback) {
  var options = {
    'photo' : pageUrl,
    'image[0][url]' : imageUrl,
    'image[0][user_generated]' : true
  };

  FB.api('/me/hairchalk:create', 'post', options, function(response) {
    if (callback && typeof callback == 'function') {
      callback(response);
    }
  });
}

When I try to execute, I have this error in response:

/**/ FB.__globalCallbacks.f4c69a98({"error":{"type":"Exception","message":"The user generated photo at https:\/\/hairchalk.ltst.su\/uploads\/look\/file\/7\/large_photo.jpg could not be uploaded because: cURL Error [#60, CURLE_SSL_CACERT]: Transfer failed.","code":1611180}});

As I can see from the error message, there is a problem with curl, but on my side I do not use curl at all. How can I solve this problem?

+4
source share
1 answer

Adding chain certification fixed this for me. Here are some instructions: http://www.entrust.net/knowledge-base/technote.cfm?tn=8166

+1
source

Source: https://habr.com/ru/post/1529042/


All Articles