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

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

问题描述

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

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

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

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} / {object}

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

但它是不工作...

我也在寻找一个活动动作 FQL表,因为每个动作都

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天全站免登陆