Diêgo Martins
Diêgo Martins

Reputation: 49

how to get in my app the activities from my friends using the same action type/objects?

i create a new action type ler (translation for 'read' in my language) and a object called reportagem (similar for built-in object 'news').

i tried this at graph api explorer:

me/friends/reportagem.lerem

according to the configuration of my action type and object, that should be the correct way to find my friends activities in my app.

thanks in advance.

Upvotes: 1

Views: 1434

Answers (1)

Niraj Shah
Niraj Shah

Reputation: 15457

If you want to see your Friend's activity for a given action, you must query the Graph API using the Action ID, not the namespace.action method.

Example, my Action ID is: 1234567890

If I want to read the actions of my friends for the same action, call the Graph API as follows:

GET https://graph.facebook.com/friend.name/1234567890

If you have permission, the above call will list the friend's actions from the App.

You can get the Action ID from the Open Graph section from the App Settings page. Check the URL (it will be something like):

https://developers.facebook.com/apps/{app_id}/opengraph/action_type/{action_id}

Upvotes: 1

Related Questions