<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Trying to make multiple request to Facebook Graph API with Nifi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162644#M21268</link>
    <description>&lt;P&gt;I don't think PostHTTP outputs the response as a flow file. If you are looking for the response to be in a flow file, try &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.InvokeHTTP/index.html"&gt;InvokeHttp&lt;/A&gt; (with HTTP Method property set to "POST") instead and send its "response" relationship to your PutHDFS processor.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2016 02:23:58 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2016-03-01T02:23:58Z</dc:date>
    <item>
      <title>Trying to make multiple request to Facebook Graph API with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162643#M21267</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to make a lot of request to the Facebook Graph API using Nifi.&lt;/P&gt;&lt;P&gt;I looked at the documentation &lt;A href="https://developers.facebook.com/docs/graph-api/making-multiple-requests" target="_blank"&gt;https://developers.facebook.com/docs/graph-api/making-multiple-requests&lt;/A&gt; which tells me that i need to POST a JSON which contains the request i want to make in a batch format to a specific endpoint.&lt;/P&gt;&lt;P&gt;So i created a Nifi template with 3 processors  : GetFile --&amp;gt;PostHTTP--&amp;gt;PutHDFS.&lt;/P&gt;&lt;P&gt;GetFile reads a very simple JSON file i made to test.&lt;/P&gt;&lt;P&gt;When i run the template, i have no error message. However, the HDFS file wrote is just a copy of my initial JSON file.&lt;/P&gt;&lt;P&gt;Any explanation / solution?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 18:56:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162643#M21267</guid>
      <dc:creator>lubinlemarchand</dc:creator>
      <dc:date>2016-02-29T18:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to make multiple request to Facebook Graph API with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162644#M21268</link>
      <description>&lt;P&gt;I don't think PostHTTP outputs the response as a flow file. If you are looking for the response to be in a flow file, try &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.InvokeHTTP/index.html"&gt;InvokeHttp&lt;/A&gt; (with HTTP Method property set to "POST") instead and send its "response" relationship to your PutHDFS processor.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 02:23:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162644#M21268</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2016-03-01T02:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to make multiple request to Facebook Graph API with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162645#M21269</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@mburgess&lt;/A&gt; Thank you for your answer. InvokeHttp seems to work since i got an answer from the graph API that i can write in HDFS.&lt;/P&gt;&lt;P&gt; However, i didn't manage to make this answer depend on my original JSON : whatever is writen in the file taken by the GetFile processor, even if it is not a JSON formated file, the answer is the same. I looked at the nifi documentation on InvokeHttp and tried to put something in the property "Attributes to send" but it did nothing so far.&lt;/P&gt;&lt;P&gt;Do you know how InvokeHttp interacts with the FlowFiles coming from GetFile? &lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 19:10:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162645#M21269</guid>
      <dc:creator>lubinlemarchand</dc:creator>
      <dc:date>2016-03-01T19:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to make multiple request to Facebook Graph API with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162646#M21270</link>
      <description>&lt;P&gt;@Lubin Lemarchand &lt;/P&gt;&lt;P&gt;Since the information is splitted across two threads, I am putting it here for future references. This is how you can do batch requests on Facebook Graph API with InvokeHTTP: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;GetFile processor: the input file will contain the requests that you want to send to Facebook (in JSON) as well as your access_token &lt;UL&gt;&lt;LI&gt;Input directory: /tmp/input &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;InvokeHTTP processor: passes the requests to the Graph API. Use these configurations: &lt;UL&gt;&lt;LI&gt;HTTP Method: POST &lt;/LI&gt;&lt;LI&gt;URL: &lt;A href="https://graph.facebook.com" target="_blank"&gt;https://graph.facebook.com&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;PutFile processor: Save the response JSON in a file&lt;UL&gt;&lt;LI&gt;Directory: /tmp/output&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is an example of an input file to execute two requests, get my Facebook url and get my friends list &lt;/P&gt;&lt;P&gt;batch=[{"method":"GET", "relative_url":"me"},{"method":"GET", "relative_url":"me/friends"}]&amp;amp;access_token=your-access-token&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 00:41:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162646#M21270</guid>
      <dc:creator>ahadjidj</dc:creator>
      <dc:date>2016-03-04T00:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to make multiple request to Facebook Graph API with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162647#M21271</link>
      <description>&lt;P&gt;Thank you very much. It works splendidly. I'm not too sure of what was wrong in my json but it doesn't matter anymore. &lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 16:11:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162647#M21271</guid>
      <dc:creator>lubinlemarchand</dc:creator>
      <dc:date>2016-03-04T16:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to make multiple request to Facebook Graph API with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162648#M21272</link>
      <description>&lt;P&gt;Hi I am working on Small project for my school to get data from Facebook and do some analysis. If you have worked to get data from facebook using nifi, can you share your dashboard?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 10:02:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162648#M21272</guid>
      <dc:creator>soni_monika</dc:creator>
      <dc:date>2016-06-13T10:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to make multiple request to Facebook Graph API with Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162649#M21273</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2056/ahadjidj.html"&gt;Abdelkrim Hadjidj   &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/2056/ahadjidj.html"&gt;@&lt;/A&gt;&lt;A href="https://community.hortonworks.com/users/2855/lubinlemarchand.html"&gt;Lubin Lemarchand&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/2855/lubinlemarchand.html"&gt; 
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/2056/ahadjidj.html"&gt;
&lt;/A&gt;Can you please let me know in Unix How can I write values in file for GetFile Processor because  symbol "∾" changed into some junk value when I write it in unix flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 13:35:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-make-multiple-request-to-Facebook-Graph-API-with/m-p/162649#M21273</guid>
      <dc:creator>yogesh_sharma05</dc:creator>
      <dc:date>2016-07-12T13:35:58Z</dc:date>
    </item>
  </channel>
</rss>

