facebook-cli 1.4.9 → 1.4.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60c619d0469bcc50c00c8a968131e0609150ccf8
4
- data.tar.gz: e710d5ec2df9539a36a72a6d07565110a9df222b
3
+ metadata.gz: 9170abefa09224d7195909f1f59d159e855d7ce0
4
+ data.tar.gz: c8afbfa53366fc1121e9867bd26f2dda9461a5c1
5
5
  SHA512:
6
- metadata.gz: 6115894a6a4f6a7c7288ad6bfbb1b8d04cea11d51fe9be61365f71f2cdd45ebd98a04814ba42758a365ed1054d2320f656b122bc747f0a9b6c474f0878fb2e1b
7
- data.tar.gz: 1eea4da386c871b6885e110c82896235bc2e87d46895d5abd2f45bd1871fdf126e94180621d13584b520a8a37a9f395a5b7c98f09b091f58ad0df9fa40fb8480
6
+ metadata.gz: bbcb7542e5badc17ac9c7d1a4871d055542c3b184f53d7a624e0b0bf68a524ac566bd68f0b36b851540cc74a06023d1f99513a54d27706652307ec4dc44ead9f
7
+ data.tar.gz: 8909e2f324579e2baa5c30850b5d6b6cdad69ae1e1c8e6bde2da128c008ce7f557c6003c6accb6ed011cde9c5c9c15a38fa2965888ad3b3b63a18601575f9651
data/lib/fbcli.rb CHANGED
@@ -158,6 +158,28 @@ command :me do |c|
158
158
  end
159
159
  end
160
160
 
161
+ desc "Some useful URLs"
162
+ command :links do |c|
163
+ c.action do
164
+ puts "A few URLs Facebook doesn't want you to know:"
165
+ puts
166
+ puts "Manage application settings"
167
+ puts " https://www.facebook.com/settings?tab=applications"
168
+ puts
169
+ puts "Photos"
170
+ puts " https://www.facebook.com/me/photos_albums"
171
+ puts
172
+ puts "Activity log"
173
+ puts " https://www.facebook.com/me/allactivity"
174
+ puts
175
+ puts "Search Facebook"
176
+ puts " https://www.facebook.com/search/top/?q=ethereum"
177
+ puts
178
+ puts "Edit a video"
179
+ puts " https://www.facebook.com/video/edit/?v=VIDEO_ID"
180
+ end
181
+ end
182
+
161
183
  desc "Post a message or image to your timeline"
162
184
  arg_name "message"
163
185
  long_desc %(
@@ -221,7 +243,7 @@ command :postlink do |c|
221
243
  end
222
244
  end
223
245
 
224
- desc "List the pages you have 'Liked'"
246
+ desc "List pages you have 'Liked'"
225
247
  command :likes do |c|
226
248
  c.action do
227
249
  FBCLI::page_items 'likes', '' do |item|
@@ -231,7 +253,7 @@ command :likes do |c|
231
253
  end
232
254
  end
233
255
 
234
- desc "List the people you are friends with (some limitations)"
256
+ desc "List people you are friends with (some limitations)"
235
257
  long_desc %(
236
258
  As of Graph API v2.0 Facebook no longer provides access to your full friends list.
237
259
  As an alternative, we now request 'taggable_friends' which only includes friends
@@ -247,17 +269,35 @@ command :friends do |c|
247
269
  end
248
270
  end
249
271
 
250
- desc "List the posts on your profile"
272
+ desc "List posts on your profile"
251
273
  command :feed do |c|
252
274
  c.action do
253
275
  FBCLI::page_items "feed", '- - -' do |item|
254
276
  puts item["message"] if item.has_key?("message")
277
+ puts
255
278
  puts link_to_post item["id"]
256
279
  puts "Created: #{date_str(item["created_time"])}"
257
280
  end
258
281
  end
259
282
  end
260
283
 
284
+ desc "List stories you are tagged in"
285
+ command :tagged do |c|
286
+ c.switch [:date], :desc => 'Include date you were tagged on'
287
+ c.action do |global_options, options|
288
+ FBCLI::page_items 'tagged', '- - -' do |item|
289
+ if item["story"]
290
+ puts "### #{item["story"]}"
291
+ puts
292
+ end
293
+ puts item["message"] if item.has_key?("message")
294
+ puts
295
+ puts link_to_post item["id"]
296
+ puts "Tagged on: #{date_str(item["tagged_time"])}" if options['date']
297
+ end
298
+ end
299
+ end
300
+
261
301
  handlePhoto = Proc.new do |item|
262
302
  puts "#{item["name"]}\n\n" unless not item.key?("name")
263
303
  puts link "#{item["id"]}"
data/lib/fbcli/auth.rb CHANGED
@@ -4,7 +4,7 @@ require 'webrick'
4
4
  require 'json'
5
5
 
6
6
  module FBCLI
7
- API_VERSION = "2.7"
7
+ API_VERSION = "2.8"
8
8
 
9
9
  def self.listen_for_auth_code(port, app_id, app_secret)
10
10
  uri = "https://www.facebook.com/dialog/oauth?client_id=#{app_id}" +
data/lib/fbcli/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FBCLI
2
- VERSION = '1.4.9'
2
+ VERSION = '1.4.13'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebook-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.9
4
+ version: 1.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ildar Sagdejev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-18 00:00:00.000000000 Z
11
+ date: 2016-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: koala