Skip to content

Commit 4d0953e

Browse files
committed
Merge pull request #2 from zachlatta/clean-up-formatting-of-readme
Clean up formatting of README
2 parents 8b15397 + ba5c10e commit 4d0953e

File tree

1 file changed

+34
-22
lines changed

1 file changed

+34
-22
lines changed

README.md

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# fb-group-stats
22

3-
Make process calls the parse deploy tool, so it needs the [parse deploy tool](https://parse.com/apps/quickstart#cloud_code/) to be installed.
3+
Make process calls the parse deploy tool, so it needs the
4+
[parse deploy tool](https://parse.com/apps/quickstart#cloud_code/) to be
5+
installed.
46

57
Run `make build` to compile
68

@@ -11,40 +13,50 @@ Before building, make sure the following environment variables:
1113
- `FBTOKEN` - [facebook access token](https://developers.facebook.com/docs/facebook-login/access-tokens)
1214
- `GROUPID` - [facebook group ID](http://stackoverflow.com/questions/8957340/how-do-i-find-my-facebook-group-id)
1315

14-
After deploying, make sure to set up the `grabFacebookPosts` [background job](http://blog.parse.com/announcements/introducing-background-jobs/) to grab all the posts from your facebook group as frequently as you like.
16+
After deploying, make sure to set up the `grabFacebookPosts`
17+
[background job](http://blog.parse.com/announcements/introducing-background-jobs/)
18+
to grab all the posts from your facebook group as frequently as you like.
1519

16-
##Facebook Access Tokens Expire
17-
Use the [graph API explorer](https://developers.facebook.com/tools/explorer/) to get a temporary access token for testing. This token will expire in one hour.
20+
## Facebook Access Tokens Expire
1821

22+
Use the [graph API explorer](https://developers.facebook.com/tools/explorer/) to
23+
get a temporary access token for testing. This token will expire in one hour.
1924

20-
Once you're ready to make a more permanent access token, [make a facebook app](https://developers.facebook.com/docs/apps/register), set the permissions you need, and click debug on the [app's access token](https://developers.facebook.com/tools/accesstoken/) so you can get to the page that allows you to `Extend Access Token`
25+
Once you're ready to make a more permanent access token,
26+
[make a facebook app](https://developers.facebook.com/docs/apps/register), set
27+
the permissions you need, and click debug on the
28+
[app's access token](https://developers.facebook.com/tools/accesstoken/) so you
29+
can get to the page that allows you to `Extend Access Token`
2130

22-
##Check group activity
31+
## Check group activity
2332

24-
####Easy Range - (Days Back,Days Forward)
25-
Example: If I want to look back to last month, daysBack = 60 and daysForward = 30. If I want to look at this week, daysBack = 7 and daysForward = 7.
33+
#### Easy Range - (Days Back, Days Forward)
2634

27-
`curl -X POST \
35+
Example: If I want to look back to last month, daysBack = 60 and daysForward
36+
= 30. If I want to look at this week, daysBack = 7 and daysForward = 7.
37+
38+
```sh
39+
curl -X POST \
2840
-H "X-Parse-Application-Id: _PARSEAPPID_" \
2941
-H "X-Parse-REST-API-Key: _PARSEAPIKEY_" \
3042
-H "Content-Type: application/json" \
3143
-d '{"daysBack": _daysBack_, "daysForward": _daysForwardFromThere_}' \
32-
https://api.parse.com/1/functions/countItems`
33-
34-
####Exact Range - (Start Date,End Date)
35-
Specify the specific range to get a count. startDate and endDate are both [Javascript Date Objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date).
44+
https://api.parse.com/1/functions/countItems
45+
```
46+
47+
#### Exact Range - (Start Date, End Date)
3648

37-
`curl -X POST \
49+
Specify the specific range to get a count. startDate and endDate are both
50+
[Javascript Date Objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date).
51+
52+
```sh
53+
curl -X POST \
3854
-H "X-Parse-Application-Id: _PARSEAPPID_" \
3955
-H "X-Parse-REST-API-Key: _PARSEAPIKEY_" \
4056
-H "Content-Type: application/json" \
4157
-d '{"beginDate": _startDate_, "endDate": _endDate_}' \
42-
https://api.parse.com/1/functions/countItemsWithDateRanges`
43-
44-
You can find your _PARSEAPPID_ and _PARSEAPIKEY_ in your Parse dashboard for your App.
45-
46-
47-
48-
49-
58+
https://api.parse.com/1/functions/countItemsWithDateRanges
59+
```
5060

61+
You can find your _PARSEAPPID_ and _PARSEAPIKEY_ in your Parse dashboard for
62+
your App.

0 commit comments

Comments
 (0)