Get a video object (or video identifier) ​​from a Facebook graphic

I am trying to get a video object from a timeline message:

  • I get messages from api / me / home graph
  • I can easily get a photo object using the returned object object_id
  • The problem is that there is no object_id value for the video stream type

    {
       "id": "750834774_10152138100019775", 
       "from": {
          "id": "750834774", 
          "name": "Emilie Volpi"
       }, 
       "message": "haha le monde qui fait une analyse geopolitique de games of thrones^^ une bonne manière de se remettre à jour pour la nouvelle saison demain !!!!!", 
       "picture": "https://fbexternal-a.akamaihd.net/safe_image.php?d=AQCclQTe2bPMIcrY&w=130&h=130&url=http%3A%2F%2Fs2.dmcdn.net%2FEHFV4%2F526x297-mO8.jpg", 
       "link": "http://www.dailymotion.com/video/x1lu3ke_game-of-thrones-comprendre-la-crise-a-westeros-en-4-minutes_news", 
       "source": "http://www.dailymotion.com/swf/video/x1lu3ke?autoPlay=1", 
       "name": "« Game of Thrones » : comprendre la crise à Westeros en 4 minutes", 
       "caption": "www.dailymotion.com", 
       "description": "Guerre des cinq rois, pression des marcheurs blancs et des sauvageons au nord, retour des dragons à l’est… le Royaume des Sept couronnes est plongée dans une crise politique sanglante depuis plus d’un an. Le Monde vous propose un décryptage de la crise en quatre minutes mais attention… spoilers !", 
       "icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yj/r/v2OnaTyTQZE.gif", 
       "actions": [
          {
             "name": "Comment", 
             "link": "https://www.facebook.com/750834774/posts/10152138100019775"
          }, 
          {
             "name": "Like", 
             "link": "https://www.facebook.com/750834774/posts/10152138100019775"
          }
       ], 
       "privacy": {
          "value": ""
       },
       "type": "video", 
       "status_type": "shared_story", 
       "application": {
       "name": "Links", 
       "id": "2309869772"
     }, 
     "created_time": "2014-04-06T09:39:57+0000", 
     "updated_time": "2014-04-06T09:39:57+0000", 
     "likes": {
        "data": [
          {
            "id": "1283687218", 
            "name": "Max Imus"
          }
        ], 
        "paging": {
           "cursors": {
              "after": "MTI4MzY4NzIxOA==", 
              "before": "MTI4MzY4NzIxOA=="
           }
        }
      }
    }, 
    

As you can see, there is no video id, so I can’t get the video

My goal is to extract embed_html from video object

Please tell me how to do this (api chart or FQL query)

+4
source share
1 answer

, embed_html , Facebook. , , dailymotion . .

, FQL :

select attachment.media.video.source_url from stream where post_id='750834774_10152138100019775'

, iFrame src,

+1

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


All Articles