Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
473 views
in Technique[技术] by (71.8m points)

facebook fql - How to get all the Open Graph Beta actions generated by an app?

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

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}

But it does not work...

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

Any suggestions?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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}

And even batch those requests


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...