ADO.NET Provider for Facebook

Build 26.0.9770

PageAndPostInsights

Allows the retrieval of simple insights with a single value in the response.

テーブル固有の情報

ページまたは投稿から取得できるPage and Post インサイト。これらのインサイトはレスポンスに1つの値を持ち、いくつかの値でのフィルタしかできません。

Select

Page and Post インサイトを選択する場合、常にTarget およびPeriod を指定します。パフォーマンスを向上させるにはInsightName も指定する必要があります。次に例を示します。

SELECT * FROM PageAndPostInsights WHERE Target = 'mypageid' AND InsightName = 'PAGE_MEDIA_VIEW' AND Period = 'day'

複数のインサイトを指定するには、IN 演算子を使用します。次に例を示します。

SELECT * FROM PageAndPostInsights WHERE Target = 'mypageid' AND InsightName IN ('PAGE_MEDIA_VIEW', 'PAGE_ENGAGED_USERS') AND Period = 'day'

インサイトデータを取得する範囲を指定するには、StartTime およびEndTime を使用します。次に例を示します。

SELECT * FROM PageAndPostInsights WHERE Target = 'mypageid' AND InsightName = 'PAGE_MEDIA_VIEW' AND Period = 'day' AND EndTime >= '12/1/2015' AND EndTime <= '12/31/2015'

Note: すべてのインサイトにおいてすべての期間が利用可能ではないことに注意してください。day/week/days_28 の使用をサポートするものもあれば、lifetime のみをサポートするものもあります。 対象のインサイトがサポートされている期間が不明な場合は、 https://developers.facebook.com/docs/graph-api/reference/insights を参照してください。

Columns

Name Type Description
RowNumber [KEY] Int The row number of the result.
EndTime Date The most recent date this insight data is relevant for.
Value Long Insight column for a singular value response.
Target String The target of the insight. This must always be specified.
InsightName String The name of the insight. This can be specified to improve performance. The available values are: PAGE_ACTIONS_POST_REACTIONS_ANGER_TOTAL, PAGE_ACTIONS_POST_REACTIONS_HAHA_TOTAL, PAGE_ACTIONS_POST_REACTIONS_LIKE_TOTAL, PAGE_ACTIONS_POST_REACTIONS_LOVE_TOTAL, PAGE_ACTIONS_POST_REACTIONS_SORRY_TOTAL, PAGE_ACTIONS_POST_REACTIONS_WOW_TOTAL, POST_REACTIONS_LIKE_TOTAL,POST_REACTIONS_LOVE_TOTAL,POST_REACTIONS_WOW_TOTAL,POST_REACTIONS_HAHA_TOTAL,POST_REACTIONS_SORRY_TOTAL,POST_REACTIONS_ANGER_TOTAL,PAGE_TOTAL_MEDIA_VIEW_UNIQUE,PAGE_POST_ENGAGEMENTS, PAGE_VIDEO_COMPLETE_VIEWS_30S, PAGE_VIDEO_COMPLETE_VIEWS_30S_AUTOPLAYED, PAGE_VIDEO_COMPLETE_VIEWS_30S_CLICK_TO_PLAY, PAGE_VIDEO_COMPLETE_VIEWS_30S_ORGANIC, PAGE_VIDEO_COMPLETE_VIEWS_30S_PAID, PAGE_VIDEO_COMPLETE_VIEWS_30S_REPEAT_VIEWS, PAGE_VIDEO_COMPLETE_VIEWS_30S_UNIQUE, PAGE_VIDEO_REPEAT_VIEWS, PAGE_VIDEO_VIEWS, PAGE_VIDEO_VIEWS_AUTOPLAYED, PAGE_VIDEO_VIEWS_CLICK_TO_PLAY, PAGE_VIDEO_VIEWS_ORGANIC, PAGE_VIDEO_VIEWS_PAID, PAGE_VIEWS_TOTAL, POST_CLICKS,POST_IMPRESSIONS_ORGANIC,POST_TOTAL_MEDIA_VIEW_UNIQUE, POST_VIDEO_AVG_TIME_WATCHED, POST_VIDEO_COMPLETE_VIEWS_ORGANIC, POST_VIDEO_COMPLETE_VIEWS_ORGANIC_UNIQUE, POST_VIDEO_COMPLETE_VIEWS_PAID, POST_VIDEO_COMPLETE_VIEWS_PAID_UNIQUE, POST_VIDEO_LENGTH, POST_VIDEO_VIEW_TIME, POST_VIDEO_VIEW_TIME_ORGANIC, POST_VIDEO_VIEWS_15S, POST_VIDEO_VIEWS_ORGANIC, POST_VIDEO_VIEWS_PAID,POST_VIDEO_VIEWS_SOUND_ON,PAGE_FOLLOWS,PAGE_MEDIA_VIEW,POST_MEDIA_VIEW
Period String The period for the insight. This controls how rows will be broken up (by day, week, 28 days, or lifetime). This must always be specified.

使用できる値は次のとおりです。day, week, days_28, lifetime

Pseudocolumns

SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるデータを詳細に制御することができます。

Name Type Description
FromDateTime String The earliest time for insight data to have been collected.
ToDateTime String The latest time for insight data to have been collected.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9770