7

I have a Facebook Page created for my service here. The name of the page is Rowz.

There are some posts on the page by users who have tagged the Page in posts on their own walls. Those posts show up on the Rowz Page timeline. In the Graph API for Page there is a field 'tagged' which I assumed would get me these posts but the same doesn't work.

Is there a way to fetch those posts that have tagged Rowz in them?

Sagar V
  • 1,916
  • 15
  • 23

1 Answers1

-1

According to the documentation for page object in graph API, tagged connection gets you the required result:

name: tagged
description: The photos, videos, and posts in which the Page has been tagged.
permission: any valid access_token or user access_token.
returns: a heterogeneous array of Photo, Video or Post objects.

You can test it here using graph API explorer (using the page ID mentioned in the question): https://developers.facebook.com/tools/explorer/?method=GET&path=265813166783408%2Ftagged

It works fine for me.

You may also consider using FQL for it. Query stream_tag table using a query something like this:

SELECT post_id,actor_id FROM stream_tag WHERE target_id=265813166783408

After this, you can iterate over post_id and query stream table for message field.

Jai Pandya
  • 2,129
  • 18
  • 29
  • I have used the same graph explorer link. If you see the Facebook Page the first post is 'Rowz what's up?'. The graph API explorer doesn't show that post but posts like those are the ones I want. – Sagar V Jan 13 '12 at 10:13