我在获取Facebook用户/网页/群组时间线帖子时遇到以下问题:
[ { "message": "this is going to be real fun https://localhost.com/N1AyEvZp", "story": "Rajveer Singh added photos to XYZ Photos in My-group.", "updated_time": "2015-09-03T16:27:34+0000", "id": "405944472923733_413853035466210" }, { "message": "this is going to be fun https://localhost.com/EJo1WvZp", "story": "Rajveer Singh added photos to XYZ Photos in My-group.", "updated_time": "2015-09-03T16:14:41+0000", "id": "405944472923733_413848848799962" }, { "message": "this is going to be some real funhttps://localhost.com/VyVKdWga", "story": "Rajveer Singh added photos to XYZ Photos in My-group.", "updated_time": "2015-09-02T15:45:08+0000", "id": "405944472923733_413582785493235" } ]
此回复缺少帖子中的照片网址,链接,字幕等。是否有任何不同的api来获取这些信息?另外,如果我直接点击其中一个帖子对象 / 405944472923733_413582785493235 ,我会得到以下回复:
{ "created_time": "2015-09-02T15:45:07+0000", "message": "this is going to be some real funhttps://localhost.com/VyVKdWga", "story": "Rajveer Singh added photos to XYZ Photos in My-group.", "id": "405944472923733_413582785493235" }
虽然我在此回复中获得 created_time 但图片仍然缺少网址。我发现this api已被弃用。 是否有任何不同的api可以提供所有信息?
{ "data": [ { "id": "[post_id]", "from": { "name": "[name]", "id": "[id]" }, "message": "[message]", "created_time": "2011-01-23T02:36:23+0000" }, { "id": "[id]", "from": { "name": "[name]", "id": "[id]" }, "message": "[message]", "created_time": "2011-01-23T05:16:56+0000" } ], "paging": { "cursors": { "after": "WTI5dGJXVnVkRjlqZFhKemIzSTZOREUzTVRJeE5qWTRORGN5Tmpnd09qRTBOREl3T0RRd09URT0=", "before": "WTI5dGJXVnVkRjlqZFhKemIzSTZOREUzTVRFNU16RTRORGN5T1RFMU9qRTBOREl3T0RRd05qZz0=" }, "previous": "previousUrl", "next": "nextUrl" }
{ "data": [ { "id": "824565440992306" } ], "paging": { "cursors": { "after": "ODI0NTY1NDQwOTkyMzA2", "before": "ODI0NTY1NDQwOTkyMzA2" } } }
一般信息:
我需要与后端墙贴相关的所有信息,以便我可以将所有数据发送到我的前端以进行正确渲染。这是我的前端的屏幕截图以及我在前端需要的所有信息。
有人可以试着清除我的怀疑吗?
此外,如果有任何优化的方式来获取所有这些信息,那么请建议。欢迎您的建议。