使用Graph API或FQL将所有照片都包含在单一的facebook feed信息中? [英] Getting all photos included in a single facebook feed post with either Graph API or FQL?

查看:126
本文介绍了使用Graph API或FQL将所有照片都包含在单一的facebook feed信息中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Facebook图形API来获取我最近的帖子和feed项目与graph.facebook.com/me/feed。我遇到的问题是当一个feed对象是一个有多张照片的帖子时,结果中的数据只包含其中一张照片的信息,而且我似乎找不到一种方式来获取帖子中包含的其他照片。 / p>

Feed对象中的一些详细信息:

 type:照片
status_type:mobile_status_update
图片:http://the_url_to_the_one_photo_it_does_return.jpg
message:附有照片的留言/附注,
id:xxxxxxxx_xxxxxxxxxx
object_id:yyyyyyyyyyyyy

我尝试通过一个请求(graph.facebook.com/xxxxxx_xxxxxxxxxxx)发送id(post id),希望它能够给我发布的所有照片的详细信息,但是没有。也尝试使用object_id,但它看起来只是对应于单个包含的照片对象的ID。



我花了一整天研究FQL。这对我来说还是新鲜事物,但我似乎已经掌握了基础知识,似乎如果有任何希望找到这一点,那将是以某种方式通过FQL查询从帖子中传递id。有没有人知道一个方法来获取多张照片饲料信息中包含的所有照片的详细信息?我可以用一个肮脏的解决方法与图或fql,如果这是唯一的方法。谢谢!我正在iOS / Objective-C工作。

解决方案

我已回答这篇文章包含有关如何在不使用FQL的情况下执行此操作的信息,因为它已被弃用。即使这是一个相当古老的问题,我觉得可能为那些可能正在寻找像我这样的解决方案的人提供答案。


I'm using the Facebook graph API to get my recent posts and feed items with "graph.facebook.com/me/feed". The problem I am having is when a feed object is a post with multiple photos, the data in the results only contains info for one of the photos, and I cant seem to find a way to get the other photos included in the post.

Some details from the feed object:

"type": "photo" 
"status_type": "mobile_status_update"
"picture": "http://the_url_to_the_one_photo_it_does_return.jpg" 
"message": "The message/note attached with the photos for the post",
"id": "xxxxxxxx_xxxxxxxxxx" 
"object_id": "yyyyyyyyyyyyy"

I tried sending the "id" (post id) through a request (graph.facebook.com/xxxxxx_xxxxxxxxxxx), hoping it would give me the details of all the photos included in the post, but it does not. Also tried with "object_id" but it looks like that is just the id corresponding to the single included photo object.

I spent all day researching FQL. It is still new to me, but I seem to have grasped the basics, and it seems like if there is any hope of finding this, it would be to somehow pass the "id" from the post through an FQL query.

Does anyone know of a way to get details of all the photos included in a multi photo feed post? I'm ok with a dirty workaround with graph or fql if it's the only way. thanks! I'm working in iOS/Objective-C by the way.

解决方案

I have answered to this post containing info on how to do this without FQL since it is deprecated. Even though this is quite an old question I felt like giving an answer for people who might be looking for a solution like mine.

这篇关于使用Graph API或FQL将所有照片都包含在单一的facebook feed信息中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆