我创建了一个端点,该端点在用户发布图片时侦听来自facebook的更新。 Webhook正在运行,并且正在成功接收通知,其数据如下所示:
{ entry:
[ { time: 1537094746,
changes: { field: 'photos', value: { verb: 'update', object_id: '139486890334603' } },
id: '107424820207477',
uid: '107424820207477' } ],
object: 'user' }
我尝试了以下URL下载图片并得到相同的错误: https://graph.facebook.com/139486890334603 https://graph.facebook.com/107424820207477/photos/139486890334603
error { Error: getaddrinfo ENOTFOUND graph.facebook.com graph.facebook.com:443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
code: 'ENOTFOUND',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'graph.facebook.com',
host: 'graph.facebook.com',
port: 443 }
获取图片需要使用其他URI吗?