{"appearance":{"background":"white","padding":14,"font":{"family":"Courier New","size":10.0,"bold":false,"italic":false,"underline":false,"strikeout":false,"color":"rgb(0,72,168)"},"border":{"on":true,"size":0.0,"style":"solid","color":"#666"},"text":{"wrap":false,"hAlign":"left","vAlign":"top"}},"outputType":"TABLE","widgetState":null,"outputs":{"text":" id name period\n1 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n2 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n3 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n4 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n5 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n6 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n7 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n title\n1 Lifetime Total Likes\n2 Lifetime Total Likes\n3 Lifetime Total Likes\n4 Lifetime Total Likes\n5 Lifetime Total Likes\n6 Lifetime Total Likes\n7 Lifetime Total Likes\n description\n1 Lifetime: The total number of people who have liked your Page. (Unique Users)\n2 Lifetime: The total number of people who have liked your Page. (Unique Users)\n3 Lifetime: The total number of people who have liked your Page. (Unique Users)\n4 Lifetime: The total number of people who have liked your Page. (Unique Users)\n5 Lifetime: The total number of people who have liked your Page. (Unique Users)\n6 Lifetime: The total number of people who have liked your Page. (Unique Users)\n7 Lifetime: The total number of people who have liked your Page. (Unique Users)\n value end_time\n1 64 2016-08-01T07:00:00+0000\n2 64 2016-08-02T07:00:00+0000\n3 64 2016-08-03T07:00:00+0000\n4 64 2016-08-04T07:00:00+0000\n5 66 2016-08-05T07:00:00+0000\n6 66 2016-08-06T07:00:00+0000\n7 66 2016-08-07T07:00:00+0000\n","console":"<pre class='debug-source'>&gt;require(&quot;Rfacebook&quot;)\n</pre>\n<pre class='debug-message'>Loading required package: Rfacebook\n</pre>\n<pre class='debug-message'>Loading required package: httr\n</pre>\n<pre class='debug-message'>Loading required package: rjson\n</pre>\n<pre class='debug-message'>Loading required package: httpuv\n</pre>\n<pre class='debug-message'>\nAttaching package: &#39;Rfacebook&#39;\n\n</pre>\n<pre class='debug-message'>The following object is masked from &#39;package:methods&#39;:\n\n getGroup\n\n</pre>\n<pre class='debug-source'>&gt;require(&quot;httr&quot;)\n</pre>\n<pre class='debug-source'>&gt;library(devtools)\n</pre>\n<pre class='debug-source'>&gt;\n</pre>\n<pre class='debug-source'>&gt;#token &lt;- &#39;EAAYAnC2rZAhABACeOIfZCs3JpCa82abFKppqy0cLscGjK5FGzXJV0w2LZB2RsvXIaAYK0WR75DhUsBZB1Lw3arRmPZCV1xAuMfHDS44YfnGrAAMiQRK1h8zo6f6HoxepqI9TGspPI9OuBmKnSBDtAl2SmY5xNXjAZD&#39;\n</pre>\n<pre class='debug-source'>&gt;#token &lt;- GET(paste(baseurl,&#39;?client_id=&#39;,clientid,&#39;&amp;client_secret=&#39;,clientsecret,&#39;&amp;grant_type=client_credentials&#39;,sep=&quot;&quot;))\n</pre>\n<pre class='debug-source'>&gt;#token = gsub(&quot;access_token=&quot;, &quot;&quot;, content(token))\n</pre>\n<pre class='debug-source'>&gt;\n</pre>\n<pre class='debug-source'>&gt;#pageid &lt;- (&#39;516677088511758&#39;)\n</pre>\n<pre class='debug-source'>&gt;\n</pre>\n<pre class='debug-source'>&gt;untilDate &lt;- &#39;2016-08-08&#39;\n</pre>\n<pre class='debug-source'>&gt;sinceDate &lt;- &#39;2016-08-01&#39;\n</pre>\n<pre class='debug-source'>&gt;\n</pre>\n<pre class='debug-source'>&gt;params &lt;- paste(&quot;&amp;since=&quot;,sinceDate,&quot;&amp;until=&quot;,untilDate,sep=&quot;&quot;)\n</pre>\n<pre class='debug-source'>&gt;#str(params)\n</pre>\n<pre class='debug-source'>&gt;page_fans &lt;- getInsights(pageid, token, metric=&#39;page_fans&#39;, period=&#39;lifetime&#39;, parms=params) \n</pre>\n<pre class='debug-source'>&gt;#page_fans &lt;- getInsights(pageid, token, metric=&#39;page_fans&#39;, period=&#39;lifetime&#39;, parms=&#39;&amp;since=2016-09-23&amp;until=2016-10-02&#39;) \n</pre>\n<pre class='debug-source'>&gt;page_fans[1] &lt;- &#39;[YOURPAGEID]/insights/page_fans/lifetime&#39;\n</pre>\n<pre class='debug-source'>&gt;page_fans\n</pre>\n<pre class='debug-out'> id name period\n1 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n2 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n3 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n4 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n5 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n6 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n7 [YOURPAGEID]/insights/page_fans/lifetime page_fans lifetime\n title\n1 Lifetime Total Likes\n2 Lifetime Total Likes\n3 Lifetime Total Likes\n4 Lifetime Total Likes\n5 Lifetime Total Likes\n6 Lifetime Total Likes\n7 Lifetime Total Likes\n description\n1 Lifetime: The total number of people who have liked your Page. (Unique Users)\n2 Lifetime: The total number of people who have liked your Page. (Unique Users)\n3 Lifetime: The total number of people who have liked your Page. (Unique Users)\n4 Lifetime: The total number of people who have liked your Page. (Unique Users)\n5 Lifetime: The total number of people who have liked your Page. (Unique Users)\n6 Lifetime: The total number of people who have liked your Page. (Unique Users)\n7 Lifetime: The total number of people who have liked your Page. (Unique Users)\n value end_time\n1 64 2016-08-01T07:00:00+0000\n2 64 2016-08-02T07:00:00+0000\n3 64 2016-08-03T07:00:00+0000\n4 64 2016-08-04T07:00:00+0000\n5 66 2016-08-05T07:00:00+0000\n6 66 2016-08-06T07:00:00+0000\n7 66 2016-08-07T07:00:00+0000\n</pre>\r\n<div class=\"debug-summarystatistics\">\r\n<table>\r\n<tr><th>Total time:</th><td>0.72s</td></tr>\r\n<tr><th>Time on R server:</th><td title=\"rApacheServe 0.61s (pre 0.00s, post 0.00s) httpget_code() setup for eval 0.00s session$eval 0.59s (pre 0.04s, post 0.03s) unexplained 0.02s apparmor forking (pre 0.02s, post 0.00s)\">0.61s</td></tr>\r\n<tr><th>Time evaluating code:</th><td>0.50s</td></tr>\r\n<tr><th>Bytes sent:</th><td>2,127</td></tr>\r\n<tr><th>Bytes received:</th><td>11,008</td></tr>\r\n</table>\r\n</div>","message":"Loading required package: Rfacebook\n\r\nLoading required package: httr\n\r\nLoading required package: rjson\n\r\nLoading required package: httpuv\n\r\n\nAttaching package: 'Rfacebook'\n\n\r\nThe following object is masked from 'package:methods':\n\n getGroup\n\n","warning":"","table":"{\"Dimensions\":[{\"IsStatistic\":true,\"Elements\":[{\"IsNumber\":false,\"IsBoolean\":false,\"IsDateTime\":false,\"IsPercent\":false,\"HasDecimalPlaces\":true,\"DecimalPlaces\":1,\"MoneySymbol\":null,\"IsCategorical\":false,\"Categories\":[],\"SeriesType\":0,\"Id\":\"StatisticsElement0\",\"Name\":\"id\",\"WrappedName\":[\"id\"],\"IsText\":true},{\"IsNumber\":false,\"IsBoolean\":false,\"IsDateTime\":false,\"IsPercent\":false,\"HasDecimalPlaces\":true,\"DecimalPlaces\":1,\"MoneySymbol\":null,\"IsCategorical\":false,\"Categories\":[],\"SeriesType\":0,\"Id\":\"StatisticsElement1\",\"Name\":\"name\",\"WrappedName\":[\"name\"],\"IsText\":true},{\"IsNumber\":false,\"IsBoolean\":false,\"IsDateTime\":false,\"IsPercent\":false,\"HasDecimalPlaces\":true,\"DecimalPlaces\":1,\"MoneySymbol\":null,\"IsCategorical\":false,\"Categories\":[],\"SeriesType\":0,\"Id\":\"StatisticsElement2\",\"Name\":\"period\",\"WrappedName\":[\"period\"],\"IsText\":true},{\"IsNumber\":false,\"IsBoolean\":false,\"IsDateTime\":false,\"IsPercent\":false,\"HasDecimalPlaces\":true,\"DecimalPlaces\":1,\"MoneySymbol\":null,\"IsCategorical\":false,\"Categories\":[],\"SeriesType\":0,\"Id\":\"StatisticsElement3\",\"Name\":\"title\",\"WrappedName\":[\"title\"],\"IsText\":true},{\"IsNumber\":false,\"IsBoolean\":false,\"IsDateTime\":false,\"IsPercent\":false,\"HasDecimalPlaces\":true,\"DecimalPlaces\":1,\"MoneySymbol\":null,\"IsCategorical\":false,\"Categories\":[],\"SeriesType\":0,\"Id\":\"StatisticsElement4\",\"Name\":\"description\",\"WrappedName\":[\"description\"],\"IsText\":true},{\"IsNumber\":true,\"IsBoolean\":false,\"IsDateTime\":false,\"IsPercent\":false,\"HasDecimalPlaces\":true,\"DecimalPlaces\":1,\"MoneySymbol\":null,\"IsCategorical\":false,\"Categories\":[],\"SeriesType\":0,\"Id\":\"StatisticsElement5\",\"Name\":\"value\",\"WrappedName\":[\"value\"],\"IsText\":false},{\"IsNumber\":false,\"IsBoolean\":false,\"IsDateTime\":false,\"IsPercent\":false,\"HasDecimalPlaces\":true,\"DecimalPlaces\":1,\"MoneySymbol\":null,\"IsCategorical\":false,\"Categories\":[],\"SeriesType\":0,\"Id\":\"StatisticsElement6\",\"Name\":\"end_time\",\"WrappedName\":[\"end_time\"],\"IsText\":true}],\"Id\":\"StatisticsDimensionID\",\"Name\":null,\"WrappedName\":null,\"Tiers\":[],\"Count\":7},{\"IsStatistic\":false,\"Elements\":[{\"Id\":\"RowDimensionElement0\",\"Name\":\"1\",\"WrappedName\":[\"1\"]},{\"Id\":\"RowDimensionElement1\",\"Name\":\"2\",\"WrappedName\":[\"2\"]},{\"Id\":\"RowDimensionElement2\",\"Name\":\"3\",\"WrappedName\":[\"3\"]},{\"Id\":\"RowDimensionElement3\",\"Name\":\"4\",\"WrappedName\":[\"4\"]},{\"Id\":\"RowDimensionElement4\",\"Name\":\"5\",\"WrappedName\":[\"5\"]},{\"Id\":\"RowDimensionElement5\",\"Name\":\"6\",\"WrappedName\":[\"6\"]},{\"Id\":\"RowDimensionElement6\",\"Name\":\"7\",\"WrappedName\":[\"7\"]}],\"Id\":\"RowCategoricalDimension\",\"Name\":null,\"WrappedName\":null,\"Tiers\":[],\"Count\":7}],\"DataPoints\":[[{\"Value\":\"[YOURPAGEID]/insights/page_fans/lifetime\",\"WrappedText\":[\"[YOURPAGEID]/insights/\",\"page_fans/lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"[YOURPAGEID]/insights/page_fans/lifetime\",\"WrappedText\":[\"[YOURPAGEID]/insights/\",\"page_fans/lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"[YOURPAGEID]/insights/page_fans/lifetime\",\"WrappedText\":[\"[YOURPAGEID]/insights/\",\"page_fans/lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"[YOURPAGEID]/insights/page_fans/lifetime\",\"WrappedText\":[\"[YOURPAGEID]/insights/\",\"page_fans/lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"[YOURPAGEID]/insights/page_fans/lifetime\",\"WrappedText\":[\"[YOURPAGEID]/insights/\",\"page_fans/lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"[YOURPAGEID]/insights/page_fans/lifetime\",\"WrappedText\":[\"[YOURPAGEID]/insights/\",\"page_fans/lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"[YOURPAGEID]/insights/page_fans/lifetime\",\"WrappedText\":[\"[YOURPAGEID]/insights/\",\"page_fans/lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null}],[{\"Value\":\"page_fans\",\"WrappedText\":[\"page_fans\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"page_fans\",\"WrappedText\":[\"page_fans\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"page_fans\",\"WrappedText\":[\"page_fans\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"page_fans\",\"WrappedText\":[\"page_fans\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"page_fans\",\"WrappedText\":[\"page_fans\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"page_fans\",\"WrappedText\":[\"page_fans\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"page_fans\",\"WrappedText\":[\"page_fans\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null}],[{\"Value\":\"lifetime\",\"WrappedText\":[\"lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"lifetime\",\"WrappedText\":[\"lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"lifetime\",\"WrappedText\":[\"lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"lifetime\",\"WrappedText\":[\"lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"lifetime\",\"WrappedText\":[\"lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"lifetime\",\"WrappedText\":[\"lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"lifetime\",\"WrappedText\":[\"lifetime\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null}],[{\"Value\":\"Lifetime Total Likes\",\"WrappedText\":[\"Lifetime Total\",\"Likes\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime Total Likes\",\"WrappedText\":[\"Lifetime Total\",\"Likes\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime Total Likes\",\"WrappedText\":[\"Lifetime Total\",\"Likes\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime Total Likes\",\"WrappedText\":[\"Lifetime Total\",\"Likes\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime Total Likes\",\"WrappedText\":[\"Lifetime Total\",\"Likes\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime Total Likes\",\"WrappedText\":[\"Lifetime Total\",\"Likes\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime Total Likes\",\"WrappedText\":[\"Lifetime Total\",\"Likes\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null}],[{\"Value\":\"Lifetime: The total number of people who have liked your Page. (Unique Users)\",\"WrappedText\":[\"Lifetime: The total number of people who have\",\"liked your Page. (Unique Users)\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime: The total number of people who have liked your Page. (Unique Users)\",\"WrappedText\":[\"Lifetime: The total number of people who have\",\"liked your Page. (Unique Users)\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime: The total number of people who have liked your Page. (Unique Users)\",\"WrappedText\":[\"Lifetime: The total number of people who have\",\"liked your Page. (Unique Users)\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime: The total number of people who have liked your Page. (Unique Users)\",\"WrappedText\":[\"Lifetime: The total number of people who have\",\"liked your Page. (Unique Users)\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime: The total number of people who have liked your Page. (Unique Users)\",\"WrappedText\":[\"Lifetime: The total number of people who have\",\"liked your Page. (Unique Users)\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime: The total number of people who have liked your Page. (Unique Users)\",\"WrappedText\":[\"Lifetime: The total number of people who have\",\"liked your Page. (Unique Users)\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"Lifetime: The total number of people who have liked your Page. (Unique Users)\",\"WrappedText\":[\"Lifetime: The total number of people who have\",\"liked your Page. (Unique Users)\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null}],[{\"Value\":64.0,\"WrappedText\":null,\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":64.0,\"WrappedText\":null,\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":64.0,\"WrappedText\":null,\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":64.0,\"WrappedText\":null,\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":66.0,\"WrappedText\":null,\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":66.0,\"WrappedText\":null,\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":66.0,\"WrappedText\":null,\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null}],[{\"Value\":\"2016-08-01T07:00:00+0000\",\"WrappedText\":[\"2016-08-01T07:00\",\":00+0000\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"2016-08-02T07:00:00+0000\",\"WrappedText\":[\"2016-08-02T07:00\",\":00+0000\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"2016-08-03T07:00:00+0000\",\"WrappedText\":[\"2016-08-03T07:00\",\":00+0000\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"2016-08-04T07:00:00+0000\",\"WrappedText\":[\"2016-08-04T07:00\",\":00+0000\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"2016-08-05T07:00:00+0000\",\"WrappedText\":[\"2016-08-05T07:00\",\":00+0000\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"2016-08-06T07:00:00+0000\",\"WrappedText\":[\"2016-08-06T07:00\",\":00+0000\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null},{\"Value\":\"2016-08-07T07:00:00+0000\",\"WrappedText\":[\"2016-08-07T07:00\",\":00+0000\"],\"IsBlank\":null,\"Significance\":null,\"ExtraText\":null}]],\"Settings\":{\"CellDimensionId\":null,\"RowDimensionsIds\":[\"RowCategoricalDimension\"],\"ColumnDimensionsIds\":[\"StatisticsDimensionID\"],\"ColumnHeadersHidden\":false,\"Title\":null,\"Footnote\":null,\"IsRowHeadersSortable\":false,\"IsColumnHeadersSortable\":true,\"HeaderSorts\":[],\"IsRowHeadersFilterable\":false,\"IsColumnHeadersFilterable\":true,\"HeaderFilters\":[],\"PaginationParameters\":null,\"TableStyleCssClass\":\"style-97ba0187-37c0-47a1-a4ad-31b0f5281e77-1-_-9\",\"LiveTableFormat\":{},\"AvailableWidth\":936,\"AvailableHeight\":278,\"TableWidth\":null}}","visible":"yes"},"secondsTaken":0.7240718,"updated":"2016-12-12T21:04:35.0288858Z","lastUpdatedMessage":null,"executedCode":"require(\"Rfacebook\")\nrequire(\"httr\")\nlibrary(devtools)\n\n#token <- 'EAAYAnC2rZAhABACeOIfZCs3JpCa82abFKppqy0cLscGjK5FGzXJV0w2LZB2RsvXIaAYK0WR75DhUsBZB1Lw3arRmPZCV1xAuMfHDS44YfnGrAAMiQRK1h8zo6f6HoxepqI9TGspPI9OuBmKnSBDtAl2SmY5xNXjAZD'\n#token <- GET(paste(baseurl,'?client_id=',clientid,'&client_secret=',clientsecret,'&grant_type=client_credentials',sep=\"\"))\n#token = gsub(\"access_token=\", \"\", content(token))\n\n#pageid <- ('516677088511758')\n\nuntilDate <- '2016-08-08'\nsinceDate <- '2016-08-01'\n\nparams <- paste(\"&since=\",sinceDate,\"&until=\",untilDate,sep=\"\")\n#str(params)\npage_fans <- getInsights(pageid, token, metric='page_fans', period='lifetime', parms=params) \n#page_fans <- getInsights(pageid, token, metric='page_fans', period='lifetime', parms='&since=2016-09-23&until=2016-10-02') \npage_fans[1] <- '[YOURPAGEID]/insights/page_fans/lifetime'\npage_fans\n\n","lastSavedCode":"require(\"Rfacebook\")\nrequire(\"httr\")\nlibrary(devtools)\n\n#token <- 'EAAYAnC2rZAhABACeOIfZCs3JpCa82abFKppqy0cLscGjK5FGzXJV0w2LZB2RsvXIaAYK0WR75DhUsBZB1Lw3arRmPZCV1xAuMfHDS44YfnGrAAMiQRK1h8zo6f6HoxepqI9TGspPI9OuBmKnSBDtAl2SmY5xNXjAZD'\n#token <- GET(paste(baseurl,'?client_id=',clientid,'&client_secret=',clientsecret,'&grant_type=client_credentials',sep=\"\"))\n#token = gsub(\"access_token=\", \"\", content(token))\n\n#pageid <- ('516677088511758')\n\nuntilDate <- '2016-08-08'\nsinceDate <- '2016-08-01'\n\nparams <- paste(\"&since=\",sinceDate,\"&until=\",untilDate,sep=\"\")\n#str(params)\npage_fans <- getInsights(pageid, token, metric='page_fans', period='lifetime', parms=params) \n#page_fans <- getInsights(pageid, token, metric='page_fans', period='lifetime', parms='&since=2016-09-23&until=2016-10-02') \npage_fans[1] <- '[YOURPAGEID]/insights/page_fans/lifetime'\npage_fans\n\n","highlightedCodeSpans":[{"start":595,"length":6,"index":2},{"start":603,"length":5,"index":2}],"tableTransformations":"<TabularTransformer>\r\n <TabularTransform type=\"Truncation\" truncationHeaderType=\"Column\" />\r\n <TabularTransform />\r\n</TabularTransformer>","tabularFilteringOptions":null,"hasGuiControls":false,"guiControls":{"Code":"","JSError":null,"JSErrorDetails":null,"Errors":null,"Controls":[{"Vertical":true}]},"showDebug":false,"layout":"OutputOnly","size":{"Width":936,"Height":279},"vSplit":0.25,"hSplit":0.45,"updateWarnings":true,"updateMode":"Manual","warnSlow":false,"outputSize":{"Width":936,"Height":278},"Options":{"debugconsole":false,"codeposition":"OutputOnly","size":{"width":936,"height":279},"splitH":0.45,"splitV":0.25,"update warnings":true,"updating":"Manual","warn slow":false}}