g5_facebook_api_client 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +60 -0
- data/Rakefile +2 -0
- data/g5_facebook_api_client.gemspec +30 -0
- data/lib/g5_facebook_api_client/access_token.rb +16 -0
- data/lib/g5_facebook_api_client/base.rb +28 -0
- data/lib/g5_facebook_api_client/insights.rb +32 -0
- data/lib/g5_facebook_api_client/page.rb +28 -0
- data/lib/g5_facebook_api_client/user.rb +12 -0
- data/lib/g5_facebook_api_client/version.rb +3 -0
- data/lib/g5_facebook_api_client.rb +15 -0
- data/spec/fixtures/vcr_cassettes/access_token.yml +48 -0
- data/spec/fixtures/vcr_cassettes/access_token_invalid_client_id.yml +50 -0
- data/spec/fixtures/vcr_cassettes/access_token_invalid_client_secret.yml +50 -0
- data/spec/fixtures/vcr_cassettes/page_posts.yml +243 -0
- data/spec/fixtures/vcr_cassettes/page_posts_invalid_client_id.yml +98 -0
- data/spec/fixtures/vcr_cassettes/page_posts_invalid_client_secret.yml +98 -0
- data/spec/fixtures/vcr_cassettes/user.yml +189 -0
- data/spec/fixtures/vcr_cassettes/user_invalid_client_id.yml +50 -0
- data/spec/fixtures/vcr_cassettes/user_invalid_client_secret.yml +50 -0
- data/spec/lib/g5_facebook_api_client/access_token_spec.rb +41 -0
- data/spec/lib/g5_facebook_api_client/base_spec.rb +34 -0
- data/spec/lib/g5_facebook_api_client/insights_spec.rb +12 -0
- data/spec/lib/g5_facebook_api_client/page_spec.rb +65 -0
- data/spec/lib/g5_facebook_api_client/user_spec.rb +22 -0
- data/spec/spec_helper.rb +12 -0
- metadata +188 -0
@@ -0,0 +1,243 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://graph.facebook.com/oauth/access_token?client_id=121584141274833&client_secret=b0d3826624470f5f5c3e70ce70893ed4&grant_type=client_credentials
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Facebook-Api-Version:
|
22
|
+
- v1.0
|
23
|
+
Content-Type:
|
24
|
+
- text/plain; charset=UTF-8
|
25
|
+
Pragma:
|
26
|
+
- no-cache
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
X-Fb-Rev:
|
30
|
+
- '1533836'
|
31
|
+
Cache-Control:
|
32
|
+
- private, no-cache, no-store, must-revalidate
|
33
|
+
Expires:
|
34
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
35
|
+
X-Fb-Debug:
|
36
|
+
- UR4gyLZo76XyMkXL+Ma7Cann5wwCqd/rjdaa6fSBrmF1FVboIgOrBv1OVpGjdx7I+/cCMr64X/PTuDGwGRshbQ==
|
37
|
+
Date:
|
38
|
+
- Tue, 16 Dec 2014 16:54:39 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Length:
|
42
|
+
- '56'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q
|
46
|
+
http_version:
|
47
|
+
recorded_at: Tue, 16 Dec 2014 16:54:40 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://graph.facebook.com/GetG5/posts?access_token=121584141274833%7CEzolJusCGWQEJt_mnLvlo7Jiz_Q&fields=likes.limit(1).summary(true),shares,message,id,created_time,from&limit=20
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
+
Accept:
|
58
|
+
- "*/*"
|
59
|
+
User-Agent:
|
60
|
+
- Ruby
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Facebook-Api-Version:
|
67
|
+
- v1.0
|
68
|
+
Etag:
|
69
|
+
- '"c22a59449dd3538c0668bf0e89b9f45f07d9e13e"'
|
70
|
+
Content-Type:
|
71
|
+
- application/json; charset=UTF-8
|
72
|
+
Pragma:
|
73
|
+
- no-cache
|
74
|
+
Access-Control-Allow-Origin:
|
75
|
+
- "*"
|
76
|
+
X-Fb-Rev:
|
77
|
+
- '1533836'
|
78
|
+
Cache-Control:
|
79
|
+
- private, no-cache, no-store, must-revalidate
|
80
|
+
Expires:
|
81
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
82
|
+
X-Fb-Debug:
|
83
|
+
- 7P1ImjSztKgjvc4AjjmmjJA2Chc7LPXOBK1l4dSFjnI6vLGwWX/0R2H/VopTASABu6fC1HFEuD/vzDl5bv/9AA==
|
84
|
+
Date:
|
85
|
+
- Tue, 16 Dec 2014 16:54:40 GMT
|
86
|
+
Connection:
|
87
|
+
- keep-alive
|
88
|
+
Content-Length:
|
89
|
+
- '2350'
|
90
|
+
body:
|
91
|
+
encoding: UTF-8
|
92
|
+
string: '{"data":[{"message":"Check out a few G5ers as they go from baby face
|
93
|
+
to men all for a good cause.\nhttp:\/\/www.getg5.com\/wp-content\/uploads\/2014\/12\/Beards_G5_Movember.gif","id":"15485466463_10152611792811464","created_time":"2014-12-15T21:40:09+0000","from":{"category":"Local
|
94
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"755437763","name":"Sara
|
95
|
+
Lamb Hobin"}],"paging":{"cursors":{"after":"NzU1NDM3NzYz","before":"NzU1NDM3NzYz"},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152611792811464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=NzU1NDM3NzYz"},"summary":{"total_count":8}}},{"message":"Another
|
96
|
+
fantastic G5 Holiday party! More rockin'' photo booth pictures to come!! abacus
|
97
|
+
| photography IMAGES BY BRIAN J. BULEMORE","id":"15485466463_10152611417311464","created_time":"2014-12-15T17:41:04+0000","from":{"category":"Local
|
98
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"1444093171","name":"Marcy
|
99
|
+
Reich"}],"paging":{"cursors":{"after":"MTQ0NDA5MzE3MQ==","before":"MTQ0NDA5MzE3MQ=="},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152611417311464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=MTQ0NDA5MzE3MQ\u00253D\u00253D"},"summary":{"total_count":24}}},{"id":"15485466463_10152611398526464","created_time":"2014-12-15T17:26:42+0000","from":{"category":"Local
|
100
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"}},{"message":"G5.
|
101
|
+
Year five on Fast 500.\nHas a nice ring to it, huh?\nCongrats, G5ers!\n\nhttp:\/\/www2.deloitte.com\/us\/fast500.html","id":"15485466463_10152587921751464","created_time":"2014-12-02T19:30:47+0000","from":{"category":"Local
|
102
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"1261254935","name":"Scott
|
103
|
+
Rowley"}],"paging":{"cursors":{"after":"MTI2MTI1NDkzNQ==","before":"MTI2MTI1NDkzNQ=="},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152587921751464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=MTI2MTI1NDkzNQ\u00253D\u00253D"},"summary":{"total_count":18}}},{"id":"15485466463_10152575436176464","created_time":"2014-11-25T17:12:37+0000","from":{"category":"Local
|
104
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"}},{"message":"Happy
|
105
|
+
5 year anniversary Nicole M, Tyler J, Nicole S, and Tony G!!","id":"15485466463_10152575420511464","created_time":"2014-11-25T16:58:11+0000","from":{"category":"Local
|
106
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"1103431106","name":"Wanda
|
107
|
+
Pierce Hennesay"}],"paging":{"cursors":{"after":"MTEwMzQzMTEwNg==","before":"MTEwMzQzMTEwNg=="},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152575420511464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=MTEwMzQzMTEwNg\u00253D\u00253D"},"summary":{"total_count":40}}},{"message":"Check
|
108
|
+
out these adorable office mates -- Bernie and Ryno!","id":"15485466463_10152563513446464","created_time":"2014-11-18T18:38:06+0000","from":{"category":"Local
|
109
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"1103431106","name":"Wanda
|
110
|
+
Pierce Hennesay"}],"paging":{"cursors":{"after":"MTEwMzQzMTEwNg==","before":"MTEwMzQzMTEwNg=="},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152563513446464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=MTEwMzQzMTEwNg\u00253D\u00253D"},"summary":{"total_count":45}}},{"id":"15485466463_10152555447491464","created_time":"2014-11-14T02:02:49+0000","from":{"category":"Local
|
111
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"}},{"message":"#TBT
|
112
|
+
to the 2007 G5 Christmas Party when there was just a handful of employees.
|
113
|
+
Now we are a big family of 160!!","id":"15485466463_10152554862166464","created_time":"2014-11-13T18:38:21+0000","from":{"category":"Local
|
114
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"1254337094","name":"Kayla
|
115
|
+
Bluhm"}],"paging":{"cursors":{"after":"MTI1NDMzNzA5NA==","before":"MTI1NDMzNzA5NA=="},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152554862166464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=MTI1NDMzNzA5NA\u00253D\u00253D"},"summary":{"total_count":14}}},{"shares":{"count":1},"message":"Thank
|
116
|
+
you G5 for letting us bring our pups to work. Especially on 10 degree mornings!","id":"15485466463_10152553183431464","created_time":"2014-11-12T16:47:36+0000","from":{"category":"Local
|
117
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"1254337094","name":"Kayla
|
118
|
+
Bluhm"}],"paging":{"cursors":{"after":"MTI1NDMzNzA5NA==","before":"MTI1NDMzNzA5NA=="},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152553183431464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=MTI1NDMzNzA5NA\u00253D\u00253D"},"summary":{"total_count":56}}},{"message":"How
|
119
|
+
does a company raise\/donate close to $4,000 plus over 200 hours of PTO in
|
120
|
+
a couple of months for one of our own? The G5 way of course! #kenziekickscancer","id":"15485466463_10152542479466464","created_time":"2014-11-06T16:41:26+0000","from":{"category":"Local
|
121
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"1103431106","name":"Wanda
|
122
|
+
Pierce Hennesay"}],"paging":{"cursors":{"after":"MTEwMzQzMTEwNg==","before":"MTEwMzQzMTEwNg=="},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152542479466464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=MTEwMzQzMTEwNg\u00253D\u00253D"},"summary":{"total_count":54}}},{"message":"No
|
123
|
+
Shave November at G5 - Before pictures.....check back at the end of the month
|
124
|
+
for the after photos!!","id":"15485466463_10152539520161464","created_time":"2014-11-04T22:42:34+0000","from":{"category":"Local
|
125
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"1802093279","name":"Tracy
|
126
|
+
Fox"}],"paging":{"cursors":{"after":"MTgwMjA5MzI3OQ==","before":"MTgwMjA5MzI3OQ=="},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152539520161464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=MTgwMjA5MzI3OQ\u00253D\u00253D"},"summary":{"total_count":15}}},{"message":"Another
|
127
|
+
fabulous G5 Halloween Party!","id":"15485466463_10152537861946464","created_time":"2014-11-03T23:11:28+0000","from":{"category":"Local
|
128
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"1229755208","name":"Cody
|
129
|
+
Moulton"}],"paging":{"cursors":{"after":"MTIyOTc1NTIwOA==","before":"MTIyOTc1NTIwOA=="},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152537861946464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=MTIyOTc1NTIwOA\u00253D\u00253D"},"summary":{"total_count":19}}},{"message":"Thanks
|
130
|
+
Manzama for a great game of kickball!!","id":"15485466463_10152528797191464","created_time":"2014-10-29T20:26:02+0000","from":{"category":"Local
|
131
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"553585920","name":"Laura
|
132
|
+
Jean Manor"}],"paging":{"cursors":{"after":"NTUzNTg1OTIw","before":"NTUzNTg1OTIw"},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152528797191464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=NTUzNTg1OTIw"},"summary":{"total_count":22}}},{"id":"15485466463_10152527318146464","created_time":"2014-10-28T21:42:55+0000","from":{"category":"Local
|
133
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"}},{"shares":{"count":1},"message":"G5
|
134
|
+
Commitment Ceremony for our new Core Values!","id":"15485466463_10152520237556464","created_time":"2014-10-24T18:12:06+0000","from":{"category":"Local
|
135
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"5112876","name":"Gail
|
136
|
+
Lovelace Menasco"}],"paging":{"cursors":{"after":"NTExMjg3Ng==","before":"NTExMjg3Ng=="},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152520237556464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=NTExMjg3Ng\u00253D\u00253D"},"summary":{"total_count":15}}},{"message":"#tbt
|
137
|
+
Halloween at G5. Stay tuned for the the 2014 Vintage Scary Costume Party pictures!","id":"15485466463_10152518844406464","created_time":"2014-10-23T22:11:59+0000","from":{"category":"Local
|
138
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"100000128497881","name":"Tylara
|
139
|
+
Fyre"}],"paging":{"cursors":{"after":"MTAwMDAwMTI4NDk3ODgx","before":"MTAwMDAwMTI4NDk3ODgx"},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152518844406464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=MTAwMDAwMTI4NDk3ODgx"},"summary":{"total_count":20}}},{"id":"15485466463_10152504510841464","created_time":"2014-10-15T16:01:13+0000","from":{"category":"Local
|
140
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"}},{"id":"15485466463_10152504466391464","created_time":"2014-10-15T15:24:18+0000","from":{"category":"Local
|
141
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"5112876","name":"Gail
|
142
|
+
Lovelace Menasco"}],"paging":{"cursors":{"after":"NTExMjg3Ng==","before":"NTExMjg3Ng=="},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152504466391464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=NTExMjg3Ng\u00253D\u00253D"},"summary":{"total_count":14}}},{"shares":{"count":1},"message":"G5
|
143
|
+
showing our \"pink\" spirit and supporting those fighting breast cancer!","id":"15485466463_10152504450701464","created_time":"2014-10-15T15:11:08+0000","from":{"category":"Local
|
144
|
+
business","category_list":[{"id":"187133811318958","name":"Business Services"}],"name":"G5","id":"15485466463"},"likes":{"data":[{"id":"606221998","name":"Karla
|
145
|
+
S. Sosa-Ochoa"}],"paging":{"cursors":{"after":"NjA2MjIxOTk4","before":"NjA2MjIxOTk4"},"next":"https:\/\/graph.facebook.com\/v1.0\/15485466463_10152504450701464\/likes?limit=1&summary=true&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&after=NjA2MjIxOTk4"},"summary":{"total_count":70}}}],"paging":{"previous":"https:\/\/graph.facebook.com\/v1.0\/15485466463\/posts?fields=likes.limit\u0025281\u002529.summary\u002528true\u002529,shares,message,id,created_time,from&limit=20&since=1418679609&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&__previous=1","next":"https:\/\/graph.facebook.com\/v1.0\/15485466463\/posts?fields=likes.limit\u0025281\u002529.summary\u002528true\u002529,shares,message,id,created_time,from&limit=20&access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q&until=1413385867"}}'
|
146
|
+
http_version:
|
147
|
+
recorded_at: Tue, 16 Dec 2014 16:54:41 GMT
|
148
|
+
- request:
|
149
|
+
method: get
|
150
|
+
uri: https://graph.facebook.com/oauth/access_token?client_id=b0d3826624470f5f5c3e70ce70893ed4&client_secret=7fdaa62f5bdcbaeb7fd8b0f5ba137f7c&grant_type=client_credentials
|
151
|
+
body:
|
152
|
+
encoding: US-ASCII
|
153
|
+
string: ''
|
154
|
+
headers:
|
155
|
+
Accept-Encoding:
|
156
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
157
|
+
Accept:
|
158
|
+
- "*/*"
|
159
|
+
User-Agent:
|
160
|
+
- Ruby
|
161
|
+
response:
|
162
|
+
status:
|
163
|
+
code: 500
|
164
|
+
message: Internal Server Error
|
165
|
+
headers:
|
166
|
+
Www-Authenticate:
|
167
|
+
- OAuth "Facebook Platform" "unknown_error" "An unknown error has occurred."
|
168
|
+
Facebook-Api-Version:
|
169
|
+
- v1.0
|
170
|
+
Content-Type:
|
171
|
+
- application/json; charset=UTF-8
|
172
|
+
Pragma:
|
173
|
+
- no-cache
|
174
|
+
Access-Control-Allow-Origin:
|
175
|
+
- "*"
|
176
|
+
X-Fb-Rev:
|
177
|
+
- '1533836'
|
178
|
+
Cache-Control:
|
179
|
+
- no-store
|
180
|
+
Expires:
|
181
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
182
|
+
X-Fb-Debug:
|
183
|
+
- Fty0hWnOrUyTzQtBGzC0EeWKz77y/Uz3shij6aEHQPGzm1kiPe80oiMZKbtlp4h5iLYZT4SYskXoqeBxEtPaIQ==
|
184
|
+
Date:
|
185
|
+
- Tue, 16 Dec 2014 17:41:42 GMT
|
186
|
+
Connection:
|
187
|
+
- keep-alive
|
188
|
+
Content-Length:
|
189
|
+
- '87'
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: '{"error":{"message":"An unknown error has occurred.","type":"OAuthException","code":1}}'
|
193
|
+
http_version:
|
194
|
+
recorded_at: Tue, 16 Dec 2014 17:41:43 GMT
|
195
|
+
- request:
|
196
|
+
method: get
|
197
|
+
uri: https://graph.facebook.com/GetG5/posts?fields=likes.limit(1).summary(true),shares,message,id,created_time,from&limit=20&%7B%22error%22:%7B%22message%22:%22An%20unknown%20error%20has%20occurred.%22,%22type%22:%22OAuthException%22,%22code%22:1%7D%7D
|
198
|
+
body:
|
199
|
+
encoding: US-ASCII
|
200
|
+
string: ''
|
201
|
+
headers:
|
202
|
+
Accept-Encoding:
|
203
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
204
|
+
Accept:
|
205
|
+
- "*/*"
|
206
|
+
User-Agent:
|
207
|
+
- Ruby
|
208
|
+
response:
|
209
|
+
status:
|
210
|
+
code: 400
|
211
|
+
message: Bad Request
|
212
|
+
headers:
|
213
|
+
Www-Authenticate:
|
214
|
+
- OAuth "Facebook Platform" "invalid_token" "An access token is required to
|
215
|
+
request this resource."
|
216
|
+
Facebook-Api-Version:
|
217
|
+
- v1.0
|
218
|
+
Content-Type:
|
219
|
+
- application/json; charset=UTF-8
|
220
|
+
Pragma:
|
221
|
+
- no-cache
|
222
|
+
Access-Control-Allow-Origin:
|
223
|
+
- "*"
|
224
|
+
X-Fb-Rev:
|
225
|
+
- '1533836'
|
226
|
+
Cache-Control:
|
227
|
+
- no-store
|
228
|
+
Expires:
|
229
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
230
|
+
X-Fb-Debug:
|
231
|
+
- 3JVdKPyP4DXTBd0HH8+GiB8TT1BSkLCbxELJ8mTTyYbfsbWFoTORL5bkolU7NnTfDQzvW8Pgzp6zhbizewogzw==
|
232
|
+
Date:
|
233
|
+
- Tue, 16 Dec 2014 17:41:42 GMT
|
234
|
+
Connection:
|
235
|
+
- keep-alive
|
236
|
+
Content-Length:
|
237
|
+
- '112'
|
238
|
+
body:
|
239
|
+
encoding: UTF-8
|
240
|
+
string: '{"error":{"message":"An access token is required to request this resource.","type":"OAuthException","code":104}}'
|
241
|
+
http_version:
|
242
|
+
recorded_at: Tue, 16 Dec 2014 17:41:43 GMT
|
243
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,98 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://graph.facebook.com/oauth/access_token?client_id=foo&client_secret=b0d3826624470f5f5c3e70ce70893ed4&grant_type=client_credentials
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 500
|
19
|
+
message: Internal Server Error
|
20
|
+
headers:
|
21
|
+
Www-Authenticate:
|
22
|
+
- OAuth "Facebook Platform" "unknown_error" "An unknown error has occurred."
|
23
|
+
Facebook-Api-Version:
|
24
|
+
- v1.0
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=UTF-8
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
X-Fb-Rev:
|
32
|
+
- '1533836'
|
33
|
+
Cache-Control:
|
34
|
+
- no-store
|
35
|
+
Expires:
|
36
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
37
|
+
X-Fb-Debug:
|
38
|
+
- qiexNFryymOhiwO71vYbaRlJg2A4xL1JDPLbiG1+Qkp3KavlscoLoqfKb0Fezu9H2WUNqLrs22kj7VmveIVTbQ==
|
39
|
+
Date:
|
40
|
+
- Tue, 16 Dec 2014 16:54:40 GMT
|
41
|
+
Connection:
|
42
|
+
- keep-alive
|
43
|
+
Content-Length:
|
44
|
+
- '87'
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":{"message":"An unknown error has occurred.","type":"OAuthException","code":1}}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Tue, 16 Dec 2014 16:54:41 GMT
|
50
|
+
- request:
|
51
|
+
method: get
|
52
|
+
uri: https://graph.facebook.com/GetG5/posts?fields=likes.limit(1).summary(true),shares,message,id,created_time,from&limit=20&%7B%22error%22:%7B%22message%22:%22An%20unknown%20error%20has%20occurred.%22,%22type%22:%22OAuthException%22,%22code%22:1%7D%7D
|
53
|
+
body:
|
54
|
+
encoding: US-ASCII
|
55
|
+
string: ''
|
56
|
+
headers:
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
Accept:
|
60
|
+
- "*/*"
|
61
|
+
User-Agent:
|
62
|
+
- Ruby
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 400
|
66
|
+
message: Bad Request
|
67
|
+
headers:
|
68
|
+
Www-Authenticate:
|
69
|
+
- OAuth "Facebook Platform" "invalid_token" "An access token is required to
|
70
|
+
request this resource."
|
71
|
+
Facebook-Api-Version:
|
72
|
+
- v1.0
|
73
|
+
Content-Type:
|
74
|
+
- application/json; charset=UTF-8
|
75
|
+
Pragma:
|
76
|
+
- no-cache
|
77
|
+
Access-Control-Allow-Origin:
|
78
|
+
- "*"
|
79
|
+
X-Fb-Rev:
|
80
|
+
- '1533836'
|
81
|
+
Cache-Control:
|
82
|
+
- no-store
|
83
|
+
Expires:
|
84
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
85
|
+
X-Fb-Debug:
|
86
|
+
- SUt85RrYKGKuzxslU5ES6k+fuZWLIDkdLgjlDXDdkSpx0ek5uNPZxxhafrrED1tUf/gAu/PHUjQlVfHWV9SMzw==
|
87
|
+
Date:
|
88
|
+
- Tue, 16 Dec 2014 16:54:40 GMT
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
Content-Length:
|
92
|
+
- '112'
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"error":{"message":"An access token is required to request this resource.","type":"OAuthException","code":104}}'
|
96
|
+
http_version:
|
97
|
+
recorded_at: Tue, 16 Dec 2014 16:54:41 GMT
|
98
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,98 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://graph.facebook.com/oauth/access_token?client_id=121584141274833&client_secret=bar&grant_type=client_credentials
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 400
|
19
|
+
message: Bad Request
|
20
|
+
headers:
|
21
|
+
Www-Authenticate:
|
22
|
+
- OAuth "Facebook Platform" "invalid_request" "Error validating client secret."
|
23
|
+
Facebook-Api-Version:
|
24
|
+
- v1.0
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=UTF-8
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
X-Fb-Rev:
|
32
|
+
- '1533836'
|
33
|
+
Cache-Control:
|
34
|
+
- no-store
|
35
|
+
Expires:
|
36
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
37
|
+
X-Fb-Debug:
|
38
|
+
- gOqwvtRegxDoHRWDnfAAwfY9EEcz/cOYKzImTpv/UDtJ1pqHzjEPu//BHiLH2NVASX8AKd5f7Wt6ic1FGw2NiA==
|
39
|
+
Date:
|
40
|
+
- Tue, 16 Dec 2014 16:54:40 GMT
|
41
|
+
Connection:
|
42
|
+
- keep-alive
|
43
|
+
Content-Length:
|
44
|
+
- '88'
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"error":{"message":"Error validating client secret.","type":"OAuthException","code":1}}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Tue, 16 Dec 2014 16:54:41 GMT
|
50
|
+
- request:
|
51
|
+
method: get
|
52
|
+
uri: https://graph.facebook.com/GetG5/posts?fields=likes.limit(1).summary(true),shares,message,id,created_time,from&limit=20&%7B%22error%22:%7B%22message%22:%22Error%20validating%20client%20secret.%22,%22type%22:%22OAuthException%22,%22code%22:1%7D%7D
|
53
|
+
body:
|
54
|
+
encoding: US-ASCII
|
55
|
+
string: ''
|
56
|
+
headers:
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
Accept:
|
60
|
+
- "*/*"
|
61
|
+
User-Agent:
|
62
|
+
- Ruby
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 400
|
66
|
+
message: Bad Request
|
67
|
+
headers:
|
68
|
+
Www-Authenticate:
|
69
|
+
- OAuth "Facebook Platform" "invalid_token" "An access token is required to
|
70
|
+
request this resource."
|
71
|
+
Facebook-Api-Version:
|
72
|
+
- v1.0
|
73
|
+
Content-Type:
|
74
|
+
- application/json; charset=UTF-8
|
75
|
+
Pragma:
|
76
|
+
- no-cache
|
77
|
+
Access-Control-Allow-Origin:
|
78
|
+
- "*"
|
79
|
+
X-Fb-Rev:
|
80
|
+
- '1533836'
|
81
|
+
Cache-Control:
|
82
|
+
- no-store
|
83
|
+
Expires:
|
84
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
85
|
+
X-Fb-Debug:
|
86
|
+
- B3b73buRxPDD6iDWM1zUjW4fbJ/4qH5mmAtQgm6bPar467cOPi40yVuAHicl9XUe9EnoYtAY1gTSnHl2hA0cYQ==
|
87
|
+
Date:
|
88
|
+
- Tue, 16 Dec 2014 16:54:40 GMT
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
Content-Length:
|
92
|
+
- '112'
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"error":{"message":"An access token is required to request this resource.","type":"OAuthException","code":104}}'
|
96
|
+
http_version:
|
97
|
+
recorded_at: Tue, 16 Dec 2014 16:54:41 GMT
|
98
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,189 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://graph.facebook.com/oauth/access_token?client_id=121584141274833&client_secret=b0d3826624470f5f5c3e70ce70893ed4&grant_type=client_credentials
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Facebook-Api-Version:
|
22
|
+
- v1.0
|
23
|
+
Content-Type:
|
24
|
+
- text/plain; charset=UTF-8
|
25
|
+
Pragma:
|
26
|
+
- no-cache
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
X-Fb-Rev:
|
30
|
+
- '1532927'
|
31
|
+
Cache-Control:
|
32
|
+
- private, no-cache, no-store, must-revalidate
|
33
|
+
Expires:
|
34
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
35
|
+
X-Fb-Debug:
|
36
|
+
- XMU4UiRZD7TqOUrKQ1ALyhPBWxXSstB1GbRRY1JK/V4JI0ZrO1lCYiCMlt2kSx2w2QxsNTv2pFjlE2myjIkeTQ==
|
37
|
+
Date:
|
38
|
+
- Tue, 16 Dec 2014 01:47:00 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Length:
|
42
|
+
- '56'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: access_token=121584141274833|EzolJusCGWQEJt_mnLvlo7Jiz_Q
|
46
|
+
http_version:
|
47
|
+
recorded_at: Tue, 16 Dec 2014 01:47:01 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://graph.facebook.com/121584141274833/permissions?access_token=121584141274833%7CEzolJusCGWQEJt_mnLvlo7Jiz_Q
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
+
Accept:
|
58
|
+
- "*/*"
|
59
|
+
User-Agent:
|
60
|
+
- Ruby
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 400
|
64
|
+
message: Bad Request
|
65
|
+
headers:
|
66
|
+
Www-Authenticate:
|
67
|
+
- OAuth "Facebook Platform" "invalid_request" "(#100) This method must be called
|
68
|
+
with an app access_token, and requires version v2.2 or higher"
|
69
|
+
Facebook-Api-Version:
|
70
|
+
- v1.0
|
71
|
+
Content-Type:
|
72
|
+
- application/json; charset=UTF-8
|
73
|
+
Pragma:
|
74
|
+
- no-cache
|
75
|
+
Access-Control-Allow-Origin:
|
76
|
+
- "*"
|
77
|
+
X-Fb-Rev:
|
78
|
+
- '1533836'
|
79
|
+
Cache-Control:
|
80
|
+
- no-store
|
81
|
+
Expires:
|
82
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
83
|
+
X-Fb-Debug:
|
84
|
+
- QW6r5vwpNDZDVH2y1S3gj0XpZxnabao4VTceHdj7zzWFOv88oXNEPp1FALGHk9sv5NDGTBp1dhTk2KQzI076wQ==
|
85
|
+
Date:
|
86
|
+
- Tue, 16 Dec 2014 17:38:07 GMT
|
87
|
+
Connection:
|
88
|
+
- keep-alive
|
89
|
+
Content-Length:
|
90
|
+
- '154'
|
91
|
+
body:
|
92
|
+
encoding: UTF-8
|
93
|
+
string: '{"error":{"message":"(#100) This method must be called with an app
|
94
|
+
access_token, and requires version v2.2 or higher","type":"OAuthException","code":100}}'
|
95
|
+
http_version:
|
96
|
+
recorded_at: Tue, 16 Dec 2014 17:38:08 GMT
|
97
|
+
- request:
|
98
|
+
method: get
|
99
|
+
uri: https://graph.facebook.com/oauth/access_token?client_id=509257122550305&client_secret=7fdaa62f5bdcbaeb7fd8b0f5ba137f7c&grant_type=client_credentials
|
100
|
+
body:
|
101
|
+
encoding: US-ASCII
|
102
|
+
string: ''
|
103
|
+
headers:
|
104
|
+
Accept-Encoding:
|
105
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
106
|
+
Accept:
|
107
|
+
- "*/*"
|
108
|
+
User-Agent:
|
109
|
+
- Ruby
|
110
|
+
response:
|
111
|
+
status:
|
112
|
+
code: 200
|
113
|
+
message: OK
|
114
|
+
headers:
|
115
|
+
Facebook-Api-Version:
|
116
|
+
- v1.0
|
117
|
+
Content-Type:
|
118
|
+
- text/plain; charset=UTF-8
|
119
|
+
Pragma:
|
120
|
+
- no-cache
|
121
|
+
Access-Control-Allow-Origin:
|
122
|
+
- "*"
|
123
|
+
X-Fb-Rev:
|
124
|
+
- '1533836'
|
125
|
+
Cache-Control:
|
126
|
+
- private, no-cache, no-store, must-revalidate
|
127
|
+
Expires:
|
128
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
129
|
+
X-Fb-Debug:
|
130
|
+
- CBEIRXFVwmCwWxGNwRYjj8od9UUeGN4shrINxggZmRhXvIFPtHsvdShn9fTnR0+KGLuDtFBVuX6oUbHSFvT7DQ==
|
131
|
+
Date:
|
132
|
+
- Tue, 16 Dec 2014 17:57:07 GMT
|
133
|
+
Connection:
|
134
|
+
- keep-alive
|
135
|
+
Content-Length:
|
136
|
+
- '56'
|
137
|
+
body:
|
138
|
+
encoding: UTF-8
|
139
|
+
string: access_token=509257122550305|dIdahyYhDXA5Nc5GYTaPW09tZpY
|
140
|
+
http_version:
|
141
|
+
recorded_at: Tue, 16 Dec 2014 17:57:08 GMT
|
142
|
+
- request:
|
143
|
+
method: get
|
144
|
+
uri: https://graph.facebook.com/509257122550305/permissions?access_token=509257122550305%7CdIdahyYhDXA5Nc5GYTaPW09tZpY
|
145
|
+
body:
|
146
|
+
encoding: US-ASCII
|
147
|
+
string: ''
|
148
|
+
headers:
|
149
|
+
Accept-Encoding:
|
150
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
151
|
+
Accept:
|
152
|
+
- "*/*"
|
153
|
+
User-Agent:
|
154
|
+
- Ruby
|
155
|
+
response:
|
156
|
+
status:
|
157
|
+
code: 200
|
158
|
+
message: OK
|
159
|
+
headers:
|
160
|
+
Facebook-Api-Version:
|
161
|
+
- v2.2
|
162
|
+
Etag:
|
163
|
+
- '"8e398386b9bb8f33aac579e58b07f09b6af0eac1"'
|
164
|
+
Content-Type:
|
165
|
+
- application/json; charset=UTF-8
|
166
|
+
Pragma:
|
167
|
+
- no-cache
|
168
|
+
Access-Control-Allow-Origin:
|
169
|
+
- "*"
|
170
|
+
X-Fb-Rev:
|
171
|
+
- '1533836'
|
172
|
+
Cache-Control:
|
173
|
+
- private, no-cache, no-store, must-revalidate
|
174
|
+
Expires:
|
175
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
176
|
+
X-Fb-Debug:
|
177
|
+
- WwYPoiexwyFdHonbxGBPEQqLI2TqbTASRYPR3VOFAzNPRaV2DYdnan88Z23LJPzrWdZhYO4vVgAxCkHsSpZBEA==
|
178
|
+
Date:
|
179
|
+
- Tue, 16 Dec 2014 17:57:07 GMT
|
180
|
+
Connection:
|
181
|
+
- keep-alive
|
182
|
+
Content-Length:
|
183
|
+
- '143'
|
184
|
+
body:
|
185
|
+
encoding: UTF-8
|
186
|
+
string: '{"data":[{"permission":"public_profile","status":"live"},{"permission":"user_friends","status":"live"},{"permission":"email","status":"live"}]}'
|
187
|
+
http_version:
|
188
|
+
recorded_at: Tue, 16 Dec 2014 17:57:08 GMT
|
189
|
+
recorded_with: VCR 2.9.3
|