如何获取应用程序生成的所有 Open Graph Beta 操作? [英] How to get all the Open Graph Beta actions generated by an app?

查看:27
本文介绍了如何获取应用程序生成的所有 Open Graph Beta 操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已经可以获取自定义应用操作和对象的所有操作:

It is already possible to get all actions for custom app actions and objects:

https://graph.facebook.com/me/{appNameSpace}:{action}/{对象}

https://graph.facebook.com/me/{appNameSpace}:{action}/{object}

这将列出应用生成的所有操作,但仅针对给定用户...

This will list all the actions generated by an app, but only for a given user...

如何获取应用生成的所有操作(针对其所有用户)?我已经使用应用程序访问令牌尝试了此请求:

How do I get all the actions generated by an app (for all its users)? I've tried this request with an app access token :

https://graph.facebook.com/{appId}/{appNameSpace}:{action}/{对象}

https://graph.facebook.com/{appId}/{appNameSpace}:{action}/{object}

但它不起作用...

我也在寻找 activitiesactions FQL 表,因为每个操作都有一个 id,它们应该可以在某处访问.

I was also looking for an activities or actions FQL table, since each action has an id, they should be accessible somewhere.

有什么建议吗?

推荐答案

AFAIK 没有办法通过 OpenGraph 获取应用程序发布的所有操作,但是您的应用程序创建了这些操作,为什么不记录此操作的结果?

AFAIK there is no way to get all actions published by application via OpenGraph, but your application creates those actions, why just not record results of this operation?

然后你创建动作你应该得到这样的响应:

Then you create action you should get response like this:

{
  id: "{action-instance-id}"
}

稍后您可能会阅读此操作:

Later you may read this action:

GET https://graph.facebook.com/{action-instance-id}

您肯定可以从请求获得这样的多个操作中受益:

You for sure may benefit from doing request to get multiple actions like this:

GET https://graph.facebook.com/?ids={action-id1},{action-id2},{action-idn}

甚至批处理这些请求

这篇关于如何获取应用程序生成的所有 Open Graph Beta 操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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