evalventure / mrlock-frontend

MrLock247
Apache License 2.0
0 stars 1 forks source link

AWS Lambda Function URL to retrieve Facebook Posts #5

Closed alexbrebu closed 2 years ago

alexbrebu commented 2 years ago

Endpoint to call: https://euy5lyrql4.execute-api.us-east-1.amazonaws.com/default/getBirminghamAutoLocksmithPagePosts

Expected format:

   "posts":[
      {
         "full_picture":"https://scontent-atl3-1.xx.fbcdn.net/v/t39.30808-6/s720x720/272625222_1111920319660167_5706181249512251932_n.jpg?_nc_cat=111&ccb=1-5&_nc_sid=110474&_nc_ohc=p7T6wUzPuzEAX9g9f1s&_nc_oc=AQnfVtCmiUV40S842I4kJ6tyEwewNEVwgkE30r45NBe-hkSQHHqJkUZBpYt06lh81TE&_nc_ht=scontent-atl3-1.xx&edm=AKIiGfEEAAAA&oh=00_AT8npww-gJK6Ha5_BdIDt4xOPyuODxpWx40sLW5VuZC_tw&oe=61FD0A96",
         "message":"Get your spare key done before it's too late , it will save you some money !!!\n\nCall us on 07979374288 !!\n\n🟣 Audi A6 - All keys lost\n\n🔵 Scania Truck- Spare key\n\n⚪ Vauxhall Corsa - Locked keys inside\n\nEmergency car unlocking ✅\nCar key replacement ✅\nLost keys ✅\nTransponder programming ✅\nKey cutting ✅\nBroken Keys removal ✅\nCar theft prevention ✅\n\n#vauxhallkeyprogramming #audikeyprogramming #volkswagenkeyprogramming #skodakeyprogramming\n#mercedeskeyprogramming\n#peugeotkeyprogramming\n#fiatkeyprogramming\n#seatkeyprogramming\n#bmwkeyprogramming\n#fordkeyprogramming\n#hyundaikeyprogramming\n#renaultkeyprogramming\n#minikeyprogramming\n#nissankeyprogramming",
         "from":{
            "name":"Birmingham Auto Locksmith",
            "id":"262732767912264"
         },
         "id":"262732767912264_1111924142993118",
         "attachments":{
            "data":[
               {
                  "media":{
                     "image":{
                        "height":720,
                        "src":"https://scontent-atl3-1.xx.fbcdn.net/v/t39.30808-6/s720x720/272625222_1111920319660167_5706181249512251932_n.jpg?_nc_cat=111&ccb=1-5&_nc_sid=110474&_nc_ohc=p7T6wUzPuzEAX9g9f1s&_nc_oc=AQnfVtCmiUV40S842I4kJ6tyEwewNEVwgkE30r45NBe-hkSQHHqJkUZBpYt06lh81TE&_nc_ht=scontent-atl3-1.xx&edm=AKIiGfEEAAAA&oh=00_AT8npww-gJK6Ha5_BdIDt4xOPyuODxpWx40sLW5VuZC_tw&oe=61FD0A96",
                        "width":325
                     }
                  },
                  "subattachments":{
                     "data":[
                        {
                           "media":{
                              "image":{
                                 "height":720,
                                 "src":"https://scontent-atl3-1.xx.fbcdn.net/v/t39.30808-6/s720x720/272625222_1111920319660167_5706181249512251932_n.jpg?_nc_cat=111&ccb=1-5&_nc_sid=110474&_nc_ohc=p7T6wUzPuzEAX9g9f1s&_nc_oc=AQnfVtCmiUV40S842I4kJ6tyEwewNEVwgkE30r45NBe-hkSQHHqJkUZBpYt06lh81TE&_nc_ht=scontent-atl3-1.xx&edm=AKIiGfEEAAAA&oh=00_AT8npww-gJK6Ha5_BdIDt4xOPyuODxpWx40sLW5VuZC_tw&oe=61FD0A96",
                                 "width":325
                              }
                           },
                           "target":{
                              "id":"1111920329660166",
                              "url":"https://www.facebook.com/mrlock247/photos/a.635029697349234/1111920329660166/?type=3"
                           },
                           "type":"photo",
                           "url":"https://www.facebook.com/mrlock247/photos/a.635029697349234/1111920329660166/?type=3"
                        },
                        {
                           "media":{
                              "image":{
                                 "height":720,
                                 "src":"https://scontent-atl3-1.xx.fbcdn.net/v/t39.30808-6/s720x720/272858408_1111924636326402_6047005674788080253_n.jpg?_nc_cat=103&ccb=1-5&_nc_sid=110474&_nc_ohc=wgnFdMxqtKYAX8z-z84&_nc_ht=scontent-atl3-1.xx&edm=AKIiGfEEAAAA&oh=00_AT_vJHgWGIOjZlO6UZLYs28wR80VUJDyydwDQ3Dkg2qJVw&oe=61FCC34E",
                                 "width":324
                              }
                           },
                           "target":{
                              "id":"1111923069659892",
                              "url":"https://www.facebook.com/mrlock247/photos/a.635029697349234/1111923069659892/?type=3"
                           },
                           "type":"photo",
                           "url":"https://www.facebook.com/mrlock247/photos/a.635029697349234/1111923069659892/?type=3"
                        },
                        {
                           "media":{
                              "image":{
                                 "height":720,
                                 "src":"https://scontent-atl3-1.xx.fbcdn.net/v/t39.30808-6/s720x720/272776126_1111924656326400_8492421720659193147_n.jpg?_nc_cat=101&ccb=1-5&_nc_sid=110474&_nc_ohc=Zck8zRu9XGQAX-fESrD&_nc_ht=scontent-atl3-1.xx&edm=AKIiGfEEAAAA&oh=00_AT9pq-MH7lCmHvagljB84R2IiykJ10mfYN5BMnPZNh8Bqg&oe=61FCC18C",
                                 "width":324
                              }
                           },
                           "target":{
                              "id":"1111923099659889",
                              "url":"https://www.facebook.com/mrlock247/photos/a.635029697349234/1111923099659889/?type=3"
                           },
                           "type":"photo",
                           "url":"https://www.facebook.com/mrlock247/photos/a.635029697349234/1111923099659889/?type=3"
                        }
                     ]
                  },
                  "target":{
                     "id":"1111924142993118",
                     "url":"https://www.facebook.com/262732767912264/posts/1111924142993118/"
                  },
                  "title":"Photos from Birmingham Auto Locksmith's post",
                  "type":"album",
                  "url":"https://www.facebook.com/262732767912264/posts/1111924142993118/"
               }
            ]
         }
      }
   ]
}
alexbrebu commented 2 years ago

@andreicatrina @alexandrumatei36

alexandrumatei36 commented 2 years ago

currently it returns [], I suppose is still wip

alexbrebu commented 2 years ago

The token was expired. It was a short-live one. A new long-live token has been generated