无法在节点js中使用facebook-nodejs-business-sdk模块创建AdCreative

时间:2019-11-05 12:58:14

标签: javascript node.js facebook-graph-api facebook-node-sdk

我正在尝试使用facebook-nodejs-business-sdk上传图片。我收到以下错误:

{ error:
      { message: 'Invalid parameter',
        type: 'OAuthException',
        code: 100,
        error_subcode: 1443186,
        is_transient: false,
        error_user_title: 'Image couldn\'t be loaded',
        error_user_msg:
         'There was a problem while loading your image. Please try uploading the image again or choose a different image.',
        fbtrace_id: 'A7_XjnvwsvVzYb0cnCZUXdi' } },
  method: 'POST',
  url:
   'https://graph.facebook.com/v4.0/act_578276446245361/adcreatives?access_token=<access_token_provided>,
data:
   { name: 'Sample Image Upload',
     object_story_spec: { page_id: '<page_id>', link_data: {image_hash:<image_hash>,link:'<page_link>','message':'Ad message'} },
     id: 'act_<account_id>' } }

我尝试了所有图像,例如.jpg,.png,.bmp,.git。没事。任何帮助都会有所帮助。谢谢。对于进一步的疑问或任何问题,请给我留言或给我留言。谢谢。

0 个答案:

没有答案