<?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>topic REST Connector for Facebook in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275625#M2586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use REST Connector in Qlik Sense to get data from my Facebook profile.I followed this steps &lt;A href="https://www.youtube.com/watch?v=_6oXo8CcHx0" title="https://www.youtube.com/watch?v=_6oXo8CcHx0" target="_blank"&gt;Connecting to Facebook using Qlik REST Connector - YouTube&lt;/A&gt; but when I tried to Create connection, this error showed up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157492_error.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to solve this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2021 14:19:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-12-22T14:19:47Z</dc:date>
    <item>
      <title>REST Connector for Facebook</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275625#M2586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use REST Connector in Qlik Sense to get data from my Facebook profile.I followed this steps &lt;A href="https://www.youtube.com/watch?v=_6oXo8CcHx0" title="https://www.youtube.com/watch?v=_6oXo8CcHx0" target="_blank"&gt;Connecting to Facebook using Qlik REST Connector - YouTube&lt;/A&gt; but when I tried to Create connection, this error showed up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157492_error.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to solve this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 14:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275625#M2586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-22T14:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: REST Connector for Facebook</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275626#M2587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have the same issue &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 11:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275626#M2587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-05T11:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: REST Connector for Facebook</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275627#M2588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the same error when i try to connect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you got any solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 05:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275627#M2588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-01T05:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: REST Connector for Facebook</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275628#M2589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;To get around this I simply created two connections using the REST Connector, one for GET (LIB: Google Analytics API) and one for POST (LIB: Google Authorization) and used an open JSON server at jsonplaceholder.typicode.com wheen creating the connections (you cannot alter the Method GET/POST using WITH CONNECTION). I then followed the same process as above, and used WITH CONNECTION to alter the LIB settings and pointed the URL to the entry-points for Google APIs. Here's a small example script for Sense:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-c" start="1"&gt;&lt;LI&gt;IF vTokenExpires &amp;lt;= now() THEN&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; LET vRequestBody ='';&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; 'grant_type=refresh_token';&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;client_id=' &amp;amp; '$(vClient_id)';&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;client_secret=' &amp;amp; '$(vClient_secret)';&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; LET vRequestBody = vRequestBody &amp;amp; '&amp;amp;refresh_token=' &amp;amp; '$(vRefresh_token)';&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; LIB CONNECT TO 'Google Authorization';&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; access_token:&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; SQL SELECT&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; "access_token",&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; "token_type",&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; "expires_in"&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; FROM JSON (wrap on) "root"&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITH CONNECTION (&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; URL "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.googleapis.com/oauth2/v4/token" rel="nofollow" target="_blank"&gt;https://www.googleapis.com/oauth2/v4/token&lt;/A&gt;&lt;SPAN&gt;",&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HTTPHEADER "Content-Type" "application/x-www-form-urlencoded",&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; BODY "$(vRequestBody)"&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; );&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; LET vExpiresIn = peek('expires_in',0,'access_token');&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; LET vAccessToken = peek('access_token',0,'access_token');&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp; LET vTokenExpires = timestamp(now() + $(vExpiresIn)/86400);&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;ENDIF&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/194023"&gt;REST CONNECTOR  locate the Authorization token&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 06:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275628#M2589</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-08-01T06:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: REST Connector for Facebook</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275629#M2590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The recipe you gave is for Google and not Facebook. The process is not similar as you can't get a USER ACCESS TOKEN in Facebook via an API-call. You *have* to have a user dialog interaction to retrieve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 07:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275629#M2590</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-01T07:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: REST Connector for Facebook</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275630#M2591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While in the "facebook for developers" / Graph API Explorer page and you press the drop-down "Get Token" - make sure that you really select the "Get User Access Token" as it is different from the "Get App Token" which can't be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-08-01 09_33_14-(11) Connecting to Facebook using Qlik REST Connector - YouTube.png" class="jive-image image-1" src="/legacyfs/online/209493_2018-08-01 09_33_14-(11) Connecting to Facebook using Qlik REST Connector - YouTube.png" style="height: 171px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that the generated Access Token (User Access Token) is very long and much longer than the App Token. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has to be used as a query parameter with the name access_token in the REST Connector dialog box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTICE: The User Access Token &lt;STRONG&gt;expires after two hours&lt;/STRONG&gt; - after that you will have to get a new one. Alternatively you can extend the User Access Token to have a two months/60 days expiration in the "Graph API Explorer".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 07:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-for-Facebook/m-p/1275630#M2591</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-01T07:53:30Z</dc:date>
    </item>
  </channel>
</rss>

