Facebook GraphAPI picture/full_picture 永久 link

Facebook GraphAPI picture/full_picture permanent link

如何才能让 post 中的图片永久 link?例如,我可以获得关于一个 post:

的所有信息
912163612218997/?fields=picture,full_picture,attachments

   {
     "picture": "https://scontent.xx.fbcdn.net/v/t1.0-0/s130x130/15390764_10154771322382505_5131571043698309499_n.jpg?oh=de4126b3944deb9fb7fca6b534e5e987&oe=58E45F29",
     "full_picture": "https://scontent.xx.fbcdn.net/v/t31.0-8/s720x720/15326300_10154771322382505_5131571043698309499_o.jpg?oh=414291d1c1fbc88988afb887177a03c5&oe=59156F5D",
     "id": "189675924467773_912163612218997",
     "attachments": {
       "data": [
         {
           "description": ...,
           "media": {
             "image": {
               "height": 372,
               "src": "https://scontent.xx.fbcdn.net/v/t31.0-8/s720x720/15326300_10154771322382505_5131571043698309499_o.jpg?oh=414291d1c1fbc88988afb887177a03c5&oe=59156F5D",
               "width": 720
             }
           },
           "target": {
             "id": "10154771322382505",
             "url": "https://www.facebook.com/photo.php?fbid=10154771322382505&set=gm.912163612218997&type=3"
           },
           "type": "photo",
           "url": "https://www.facebook.com/photo.php?fbid=10154771322382505&set=gm.912163612218997&type=3"
         }
       ]
     }
   }

但是,这些图片 link 是临时的。几个小时后将无法使用。

有没有办法从 Facebook GraphAPI 获取永久图片 URL?

我想出了一个使用重定向的解决方法:

  1. 使用对象 ID 触发图表 API 并获取 CDN URL
  2. 重定向到 CDN URL

基本上只要知道object id,就可以得到URL。不幸的是,它有点慢。