{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Facebook Page Insights Import Integration","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"facebook-page-insights-import-integration","__idx":0},"children":["Facebook Page Insights Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Facebook Page Insights インテグレーションを接続して、以下の Facebook データを Treasure Data にインポートできます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.facebook.com/docs/graph-api/reference/v6.0/insights"},"children":["Page insights"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.facebook.com/docs/graph-api/reference/post/insights/"},"children":["Post insights"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.facebook.com/docs/graph-api/reference/video/video_insights/"},"children":["Video Insights"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.facebook.com/docs/graph-api/reference/v6.0/object/comments"},"children":["Comments"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.facebook.com/docs/graph-api/reference/page/conversations/"},"children":["Conversation Participants"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.facebook.com/docs/graph-api/reference/v6.0/conversation/messages"},"children":["Conversation Messages"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Data の基本的な知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Facebook Graph API の基本的な知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Facebook Page データをダウンロードするために必要な権限"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証された Treasure アカウントへのアクセス"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソール-を使用した接続の作成","__idx":2},"children":["Treasure コンソール を使用した接続の作成"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい-authentication-の作成","__idx":3},"children":["新しい Authentication の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrations Hub > Catalog に移動します。Facebook Page Insights を検索して選択します。ダイアログが開きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191017-210320.45b16b9ff73f9c639627a2c0629db4923ce78ddbcef2f12c0d0c535e580b03e3.4ac59c12.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Facebook の既存の OAuth 接続を選択するか、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth connection"]}," の下のリンクをクリックして新しい接続を作成できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191017-210750.ed776521d5e97fa8c5c454f61b78b4f1100c8ef807aedcb130a389964eccdfcf.4ac59c12.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい-oauth-接続の作成","__idx":4},"children":["新しい OAuth 接続の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ポップアップウィンドウで Facebook アカウントにログインします:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191017-210808.88e27aad3041867a9970bdd740cf86fa67c4f15ce47a655fd9eb583051e60260.4ac59c12.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure Data"]}," アプリへのアクセスを許可します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソール にリダイレクトされます。最初のステップ(新しい authentication の作成**)** を繰り返し、新しい OAuth 接続を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191017-210840.aabffa2d03c7059fe0ea0f6116c9cbe7e0e947cc447e926aa229b965196023c0.4ac59c12.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しい authentication に名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191017-210911.ae4274b1fc1d2af755683e4f58e585882b7abe3715eca3c5537f443b27e95f17.4ac59c12.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"facebook-insights-データを-treasure-data-に転送する","__idx":5},"children":["Facebook Insights データを Treasure Data に転送する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentications"]}," で、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]}," を設定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191017-210935.bb873f066cd95ded8e17aca1046832603b5773aa17c05ac29678c9d8aa131b12.4ac59c12.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このダイアログで Data Transfer Name を編集して Source に名前を付けることができます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Transfer フィールドで ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source"]}," に名前を付けます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Source Table ダイアログが開きます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200330-193201.b416ea4b9c91a08ef18afaa872503538ee3b6bb9f75d12558b5823eab0ae84ff.4ac59c12.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"source-table","__idx":6},"children":["Source Table"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Source Table で、パラメータを編集して ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200330-193531.a9eadc3ea07f75316f8a63936e463be2d740b65b2ac675f0b2a762e97ddc0e59.4ac59c12.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parameter"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートされているデータタイプ**:**   - Page - Post - Video - Conversation Messages - Conversation Participants - Comments"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Folders(s)"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Conversation フォルダ"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データタイプ Video の場合、サポートされている期間は Lifetime のみです。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-settings","__idx":7},"children":["Data Settings"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このダイアログで、データ設定を編集するか、このステップをスキップできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Settings パラメータを編集します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Next を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200330-193913.b257f6d711d5944fbb9af4d682d21cb9285d532fc9837511ce272d42a88e1864.4ac59c12.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parameters"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Retrieve Video insights back to"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebook が指定するデータ制限により、ジョブが過去のすべてのデータの取得に失敗する場合があります。デフォルト設定では、Video Insights の過去3ヶ月のデータをインポートします。より多くのデータをインポートするには、この値を更新してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Skip Error POST"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["デフォルトは true です。POST Insights のインポート時にエラーが発生した場合、そのエラーをスキップします。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Retry Limit"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コネクタが接続とデータ取得の試行を停止するまでの再試行回数。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Retry initial wait in millis"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["回復可能なエラーが発生した場合に再試行する間隔(ミリ秒単位)。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Max retry wait in millis"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["再試行間の最大待機時間(ミリ秒単位)。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["HTTP connect timeout in millis"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP 接続タイムアウト。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["HTTP idle timeout in millis"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP アイドルタイムアウト。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-preview","__idx":8},"children":["Data Preview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートを実行する前に、Generate Preview を選択してデータの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/integration-hub/batch/import/previewing-your-source-data"},"children":["プレビュー"]},"を表示できます。Data preview はオプションであり、選択した場合はダイアログの次のページに安全にスキップできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Data Preview ページが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データをプレビューする場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate Preview"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データを確認します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-placement","__idx":9},"children":["Data Placement"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データの配置について、データを配置したいターゲット database と table を選択し、インポートを実行する頻度を指定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。Storage の下で、インポートされたデータを配置する新しい database を作成するか、既存の database を選択し、新しい table を作成するか、既存の table を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Database"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Database"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、database 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Table"]}," を選択 > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select an existing"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create New Table"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、table 名を入力します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データをインポートする方法を選択します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Append"]}," (デフォルト) - データインポートの結果は table に追加されます。"," ","table が存在しない場合は作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Always Replace"]}," - 既存の table の全体の内容をクエリの結果出力で置き換えます。table が存在しない場合は、新しい table が作成されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replace on New Data"]}," - 新しいデータがある場合のみ、既存の table の全体の内容をクエリの結果出力で置き換えます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timestamp-based Partition Key"]}," 列を選択します。"," ","デフォルトキーとは異なるパーティションキーシードを設定したい場合は、long または timestamp 列をパーティショニング時刻として指定できます。デフォルトの時刻列として、add_time フィルターで upload_time を使用します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データストレージの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timezone"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," の下で、このクエリを実行するタイミングと頻度を選択できます。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"一度だけ実行","__idx":10},"children":["一度だけ実行"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Off"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"定期的に繰り返す","__idx":11},"children":["定期的に繰り返す"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["On"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を選択します。UI では、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@monthly"]},"、またはカスタム ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["cron"]}," の 4 つのオプションが提供されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Delay Transfer"]}," を選択して、実行時間の遅延を追加することもできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scheduling Timezone"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["転送が実行された後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]}," で転送の結果を確認できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"コマンドラインを使用した-facebook-接続の作成","__idx":12},"children":["コマンドラインを使用した Facebook 接続の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソール を使用して接続を設定できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-data-toolbelt-のインストール","__idx":13},"children":["Treasure Data Toolbelt のインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ターミナルを開き、以下のコマンドを実行して最新の ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]}," をインストールします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"facebook-token-の取得","__idx":14},"children":["Facebook Token の取得"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.facebook.com/docs/facebook-login/access-tokens"},"children":["Facebook は3種類のトークンを提供しています"]},"。Page Access Token が必要です。有効期限のない Page Access Token を選択することをお勧めします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["有効期限のない Page Access Token を取得するには、こちらの手順に従ってください: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.rocketmarketinginc.com/blog/get-never-expiring-facebook-page-access-token/"},"children":["https://www.rocketmarketinginc.com/blog/get-never-expiring-facebook-page-access-token/"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"設定ファイルconfigymlの準備","__idx":15},"children":["設定ファイル(config.yml)の準備"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["テキストエディタを使用して、config.yml というファイルを作成します。以下の情報をコピーして貼り付け、プレースホルダーテキストを Facebook コネクタ情報に置き換えます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["in"]}," セクションは Facebook からコネクタに入ってくるものを指定し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["out"]}," セクションはコネクタが Treasure Data のデータベースに送信するものを指定します。利用可能な ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["out"]}," モードの詳細については、付録を参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: \"facebook_page_insights\"\n  access_token: \"[your Facebook Page token]\"\n  page_id: [your Facebook Page ID]\n  data_type: page\n  incremental: true\n  select_all_metrics: true\n  since: 2017-01-01\n  until: 2017-01-31\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定キーと説明は以下の通りです:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Option name"},"children":["Option name"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required?"},"children":["Required?"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default Value"},"children":["Default Value"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["access_token"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebook Page Access Token。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["page_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebook Page ID。付録を参照してください"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data_type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- page - post - video - conversation_message - conversation_participant - comment"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["page"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["select_all_metrics"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["現在のデータタイプでサポートされているすべての Insight メトリクスをインポートします。この値を設定すると、metric_presets や metrics を設定する必要がありません。Page と Post に適用されます。Available Metrics を参照してください。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["bool"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["metric_presets"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["事前定義されたメトリクスのカテゴリまたは関連するメトリクスのグループ。Supported Preset Metrics を参照してください。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["metrics"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebook Graph の Insight メトリクスで、必要なだけ各メトリクスを指定できます。両方が指定されている場合、この設定は metric_preset を上書きします。Supported Metrics"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["since"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["考慮する時間範囲の下限で、サポートされる形式: yyyy-MM-dd または Unix time(例: 1584697547)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["until"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["考慮する時間範囲の上限で、サポートされる形式: yyyy-MM-dd または Unix time(例: 1584697547)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["period"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["集計期間。Supported Periods を参照してください。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["enum"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["date_preset"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["'lastweek' や 'yesterday' のような日付範囲をプリセットします。'since' または 'until' の日付が指定され、date_preset も選択されている場合、データ転送リクエストは失敗します。Supported Date Presets を参照してください。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["enum"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["embulk run -c config.diff で \"config_diff\" を生成する場合は true"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["bool"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["false"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["last_in_months"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["指定した月範囲まで遡ってVideoインサイトを取得します。3ヶ月を超える範囲を指定すると、Facebook APIの制限によりジョブエラーが発生します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["3 (months)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["skip_error_post"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["POSTインサイトのインポート時にエラーをスキップします"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["bool"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["retry_limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コネクターが諦めるまでのエラーリトライ回数"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["7"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["retry_initial_wait_millis"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["指数バックオフの初期値の待機時間(ミリ秒)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["500 (0.5 second)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["max_retry_wait_millis"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["各リトライの最大待機時間(ミリ秒)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["300000 (5 minutes)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["connect_timeout_millis"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP接続タイムアウト(ミリ秒)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["180000 (3 minutes)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["idle_timeout_millis"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTPアイドルタイムアウト(ミリ秒)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["integer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["300000 (5 minutes)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["conversation_folders"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["会話フォルダ: inbox、page_done、other、pending、spam  例: [{\"value\":\"inbox\"}]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["all folders"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["incrementalとPageデータタイプを使用したconfig*.yml*の例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: \"facebook_page_insights\"\n  access_token: \"[your Facebook Page token]\"\n  page_id: [your Facebook Page ID]\n  data_type: page\n  page_metric_presets:\n  - value: page_impressions\n  - value: page_cta_clicks\n  - value: page_user_demographics\n  - value: page_views\n  - value: page_engagement\n  incremental: true\n  since: 2017-01-01\n  until: 2017-01-31\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Postデータタイプ"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: \"facebook_page_insights\"\n  access_token: \"[your Facebook Page token]\"\n  page_id: [your Facebook Page ID]\n  data_type: post\n  post_metric_presets:\n  - value: page_post_impressions\n  - value: page_post_engagement\n  - value: page_post_reactions\n  - value: page_video_posts\n  since: 2017-01-01\n  until: 2017-01-31\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Videoデータタイプ"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: \"facebook_page_insights\"\n  access_token: \"[your Facebook Page token]\"\n  page_id: [your Facebook Page ID]\n  data_type: video\n  last_in_months: 3\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"インポートするデータのプレビュー-オプション","__idx":16},"children":["インポートするデータのプレビュー (オプション)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td connector:preview"]},"コマンドを使用して、インポートするデータをプレビューできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:preview config.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロードジョブの実行","__idx":17},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ロードジョブを実行する前に、データを保存するデータベースとテーブルを指定する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:issueを使用してジョブを実行します。以下が必要です: スケジュールの名前、cron形式のスケジュール、データが保存されるデータベースとテーブル、およびData Connector設定ファイル。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue config.yml --database td_sample_db --table td_sample_table\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのストレージは時間でパーティション分割されているため、--time-columnオプションを指定することをお勧めします。また、--time-columnオプションを使用して、end_timeを時間カラムとして指定することで、自動生成された時間値を上書きできます(data_type",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["page"]},"にのみ適用されます)。データは毎日蓄積され、end_timeはFacebookページのタイムゾーンを使用した1日の終わりになりますが、UTC形式に変換されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データに時間カラムがない場合は、add_timeフィルターオプションを使用して追加できます。詳細は",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/add_time-filter-function"},"children":["add_time Filter Plugin for Integrations"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最後に、ロードジョブを送信します。データサイズによっては、数時間かかる場合があります。データが保存されるデータベースとテーブルを指定する必要があります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:issue config.yml --database td_sample_db --table\ntd_sample_table --time-column end_time\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュール実行","__idx":18},"children":["スケジュール実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["増分Facebook Insightsデータの定期的なデータコネクター実行をスケジュールできます。高可用性を確保するため、スケジューラーを慎重に設定しています。この機能により、ローカルデータセンターでcronデーモンを使用する必要がなくなります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["スケジュールされたインポートの場合、Data Connector for Facebook Page Insightsは最初の実行時にすべての広告データをインポートします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["2回目以降の実行では、コネクターは最後のロードよりも新しいデータのみをインポートします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"スケジュールの作成","__idx":19},"children":["スケジュールの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:createコマンドを使用して新しいスケジュールを作成できます。以下が必要です: スケジュールの名前、cron形式のスケジュール、データが保存されるデータベースとテーブル、およびData Connector設定ファイル。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td connector:create \\\n    daily_import \\\n    \"10 0 * * *\" \\\n    td_sample_db \\\n    td_sample_table \\\n    config.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]},"パラメーターは、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]},"の3つの特別なオプションも受け付けます。デフォルトでは、スケジュールはUTCタイムゾーンで設定されます。—tまたは—-timezoneオプションを使用して、異なるタイムゾーンでスケジュールを設定できます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]},"オプションは、'Asia/Tokyo'、'America/Los_Angeles'などの拡張タイムゾーン形式のみをサポートしていることに注意してください。PSTやCSTなどのタイムゾーンの略語はサポートされておらず、予期しないスケジュールになる可能性があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"faq","__idx":20},"children":["FAQ"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"q-スケジュールされたジョブがsuccessと分類されたのに新しいデータが取り込まれなかったのはなぜですか","__idx":21},"children":["Q: スケジュールされたジョブが「SUCCESS」と分類されたのに、新しいデータが取り込まれなかったのはなぜですか?"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"2018-05-06 13:00:18.627 +0000 [WARN] (0047:task-0043): Time range does not reach, abort and will retry later. Start Date: '1525330800', End Date: '1528095600', Current Date: '2018-05-06'\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これは、'Start Date'または'End Date'が現在の日付を超えている(例: 将来の日付が指定されている)ことを意味します。このような警告メッセージの原因は、取得する時間範囲よりも短いcronを設定していることが考えられます。例えば、月次データを取得する日次ジョブなどです。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"q-毎回新しいデータを取り込むための日次ジョブを設定するにはどうすればよいですか","__idx":22},"children":["Q: 毎回新しいデータを取り込むための日次ジョブを設定するにはどうすればよいですか?"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["初期ロード(または各ロードの3ヶ月という時間範囲の制限により、複数回のロード)が必要です。今日が2018-05-09で、2018-01-01以降のデータをロードする必要があるとしましょう:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Jobs"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start Date"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End Date"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最初のジョブ (1回限り)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2018-01-01"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2018-04-01"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2番目のジョブ (1回限り)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2018-04-01"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2018-05-08"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[増分] 日次ジョブ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2018-05-08"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2018-05-09"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"q-突然大量のposts-insightsデータが表示されるのはなぜですか","__idx":23},"children":["Q: 突然大量のPosts Insightsデータが表示されるのはなぜですか?"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["バージョンv0.2.0以降、ページの最初の投稿から",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End Date"]},"値までのすべての投稿のインサイトを取得できるようになります。この改善により、日付設定がアップグレードされ、利用可能なすべての投稿の",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start Date"]},"から",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End Date"]},"までのInsightsデータを取得できるようになります。バージョンv0.1.16と比較すると、その日付範囲内に作成された投稿の",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start Date"]},"から",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End Date"]},"までのインサイトデータのみを取得できました。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"page-id","__idx":24},"children":["Page ID"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクターを作成する際にページのユーザー名を使用する代わりに、Page IDを使用できます。Page IDを見つけるには、Facebookページで",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["About"]},"メニューを選択し、Page IDまで下にスクロールします:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191017-212720.d13ab7557b7f8108626a126329983da7233e2f4c98922fe36ecad09470d100e6.4ac59c12.png","alt":""},"children":[]}]}]},"headings":[{"value":"Facebook Page Insights Import Integration","id":"facebook-page-insights-import-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"Treasure コンソール を使用した接続の作成","id":"treasure-コンソール-を使用した接続の作成","depth":2},{"value":"新しい Authentication の作成","id":"新しい-authentication-の作成","depth":3},{"value":"新しい OAuth 接続の作成","id":"新しい-oauth-接続の作成","depth":3},{"value":"Facebook Insights データを Treasure Data に転送する","id":"facebook-insights-データを-treasure-data-に転送する","depth":3},{"value":"Source Table","id":"source-table","depth":3},{"value":"Data Settings","id":"data-settings","depth":3},{"value":"Data Preview","id":"data-preview","depth":3},{"value":"Data Placement","id":"data-placement","depth":3},{"value":"一度だけ実行","id":"一度だけ実行","depth":4},{"value":"定期的に繰り返す","id":"定期的に繰り返す","depth":4},{"value":"コマンドラインを使用した Facebook 接続の作成","id":"コマンドラインを使用した-facebook-接続の作成","depth":2},{"value":"Treasure Data Toolbelt のインストール","id":"treasure-data-toolbelt-のインストール","depth":3},{"value":"Facebook Token の取得","id":"facebook-token-の取得","depth":3},{"value":"設定ファイル(config.yml)の準備","id":"設定ファイルconfigymlの準備","depth":3},{"value":"インポートするデータのプレビュー (オプション)","id":"インポートするデータのプレビュー-オプション","depth":3},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":3},{"value":"スケジュール実行","id":"スケジュール実行","depth":3},{"value":"スケジュールの作成","id":"スケジュールの作成","depth":4},{"value":"FAQ","id":"faq","depth":2},{"value":"Q: スケジュールされたジョブが「SUCCESS」と分類されたのに、新しいデータが取り込まれなかったのはなぜですか?","id":"q-スケジュールされたジョブがsuccessと分類されたのに新しいデータが取り込まれなかったのはなぜですか","depth":3},{"value":"Q: 毎回新しいデータを取り込むための日次ジョブを設定するにはどうすればよいですか?","id":"q-毎回新しいデータを取り込むための日次ジョブを設定するにはどうすればよいですか","depth":3},{"value":"Q: 突然大量のPosts Insightsデータが表示されるのはなぜですか?","id":"q-突然大量のposts-insightsデータが表示されるのはなぜですか","depth":3},{"value":"Page ID","id":"page-id","depth":2}],"frontmatter":{"seo":{"title":"Facebook Page Insights Import Integration"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/facebook-page-insights-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}