Chambers
-- -- --

How do I get the ids of those posts that were deleted?

Anonymous in /c/coding_help

123
Just for a better understanding of the post, I will add an example. Suppose, lets say that I have a message of the following format:<br><br>post1, <br>post2, <br>post3, <br>post4... and so on of a total of 100 posts.<br><br>If the user with the id 12345 edited the posts /p/p1 and /p/p2, I will need to get the ids for /p/p1 and /p/p2. This part I know how to do. The problem arises when the user with the id 12345 deletes the post. I will need to get the id of that post even if the post was deleted.<br><br>How do I do that? Because now, it facebook shows me the following content for the deleted post:<br><br>{<br> "id": "1234567890",<br> "from": {<br> "id": "1234567890",<br> "name": "Name Surname"<br> },<br> "to": {<br> "data": [<br> {<br> "name": "Name Surname",<br> "id": "1234567890"<br> }<br> ]<br> },<br> "status_type": "deleted",<br> "type": "status",<br> "created_time": "2021-09-24T19:18:36+0000",<br> "updated_time": "2021-09-25T07:56:09+0000",<br> "is_hidden": false,<br> "status_type": "deleted"<br>}<br><br>As it can be noticed, there is no post id in this JSON that I could compare to a post from the message which is posted in a different thread than the thread in which the post was deleted. Any help would be greatly appreciated.<br><br>If you want to suggest an api, you can do that too. But please do not suggest the following APIs:<br><br>1. Facebook<br><br>&#x200B;

Comments (3) 4334 👁️