【问题标题】:How to get wall post made by myself on friends' wall?如何将自己制作的墙帖放到朋友的墙上?
【发布时间】:2012-02-18 20:31:09
【问题描述】:

我正在尝试在朋友的墙上获取我自己制作的墙贴。我有 read_stream、offline_access 权限。

现在根据 facebook 文档,如果我想获取其他用户在我的墙上发布的墙贴,我可以使用以下 FQL 查询:

SELECT post_id, actor_id, target_id, message FROM stream WHERE filter_key = 'others' AND source_id = me()

如果我想获得自己制作的墙贴,我想出了以下 FQL 查询:

select post_id,source_id,actor_id,target_id from stream where actor_id=me() and filter_key='Others' 

有时有效,有时无效。我也试过下面的查询,它什么也没返回。

select post_id,source_id,actor_id,target_id from stream where actor_id=me() and source_id in (select uid2 from friend where uid1=me())

现在关注作品,但我必须检查个别朋友。

select post_id,source_id,actor_id,target_id from stream where actor_id=me() and source_id = <uid>

有什么方法可以一次性完成吗?

编辑:

以下查询返回在朋友的墙上发布的墙帖,但它不会返回所有墙帖。即如果用户连续在朋友的墙上发帖,它将显示最后一个而不是两个帖子。

select description, post_id,actor_id,source_id,target_id,created_time  from stream where source_id=me()  and type = 56  

【问题讨论】:

  • 您的第二个查询显示 Others with a capital O 这是无效的。你是不是打错字了?
  • 我只是打错了。正如我所说,它间歇性地工作,不能提供完整的数据。

标签: facebook facebook-graph-api facebook-fql


【解决方案1】:

事实证明,对于给定的应用,一个人必须扮演某种角色(开发人员、测试人员、管理员)。如果不是这种情况,他将无法访问 facebook 错误跟踪系统。不幸的是,创建该应用的人忘记将我添加为该应用的开发者。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多