Facebook graph api 如何从feedapi对象中提取图片的正确链接

Facebook graph api 如何从feedapi对象中提取图片的正确链接,facebook-graph-api,feed,Facebook Graph Api,Feed,我使用GraphAPI来获取提要,在提要中我有消息、图片键和它的值,看起来像是以某种方式建立起来的格式化链接。 我怎样才能拍到这张照片? 如果我有这个: "picture": "http://external.ak.fbcdn.net/safe_image.php?d=AQBuv4KHE_CDlCPV&w=130&h=130&url=http00253A00252F00252Fi1.ytimg.com00252Fvi00252F8dWcLkK62lM00252Fhqd

我使用GraphAPI来获取提要,在提要中我有消息、图片键和它的值,看起来像是以某种方式建立起来的格式化链接。 我怎样才能拍到这张照片? 如果我有这个:

  "picture": "http://external.ak.fbcdn.net/safe_image.php?d=AQBuv4KHE_CDlCPV&w=130&h=130&url=http00253A00252F00252Fi1.ytimg.com00252Fvi00252F8dWcLkK62lM00252Fhqdefault.jpg",

您在这里看到的URL编码如下:

var uri = 'http://i1.ytimg.com/vi/8dWcLkK62lM/hqdefault.jpg';
encodeURIComponent(uri).replace(/%/g, '0025')
您可以使用以下方法对其进行解码:

var encodedURI = 'http00253A00252F00252Fi1.ytimg.com00252Fvi00252F8dWcLkK62lM00252Fhqdefault.jpg';
decodeURIComponent(decodeURIComponent(encodedURI.replace(/00/g,'%')))

你是怎么得到第一个结果的?我尝试用C++做这个