facebook-cli 1.5.0 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fbcli.rb +21 -8
- data/lib/fbcli/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4545be7f2d09e94c5e799f08a54b6cb453da010
|
4
|
+
data.tar.gz: 148791b88d70284e2a8e15e65216e4697749e8c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dc07031e8983d5b2ef4ab9d09a4ebf79fbcd755185c4343537c606ebe1574f2c4618866e6592a17b917b4292165427d0803f16ac3e989fa9e02e7b225bc9ca9
|
7
|
+
data.tar.gz: ee21dcdef2fd18e9097972af9e5f96ef295bf7ab2c188bb3937593d3b7fbdad860b324aa7b92664a3f0cd0999c827db67e670ba5ff2fd0686af92efbb01e7331
|
data/lib/fbcli.rb
CHANGED
@@ -44,8 +44,8 @@ end
|
|
44
44
|
pre do |global_options, command|
|
45
45
|
$global_options = global_options # They're supposed to be global, right?
|
46
46
|
|
47
|
-
#
|
48
|
-
Signal.trap "
|
47
|
+
# Exit gracefully when terminating due to a broken pipe
|
48
|
+
Signal.trap "PIPE", "SYSTEM_DEFAULT" if Signal.list.include? "PIPE"
|
49
49
|
|
50
50
|
if command.name == :config
|
51
51
|
$config = {}
|
@@ -56,13 +56,20 @@ pre do |global_options, command|
|
|
56
56
|
exit_now! <<-EOM
|
57
57
|
It looks like you are running #{APP_NAME} for the first time.
|
58
58
|
|
59
|
-
|
59
|
+
To interact with the Facebook API you must create and configure
|
60
|
+
a new Facebook application for your personal use.
|
60
61
|
|
61
62
|
- Create a new application at: https://developers.facebook.com/apps
|
62
|
-
- In the Settings tab
|
63
|
-
|
64
|
-
-
|
65
|
-
-
|
63
|
+
- In the Settings tab:
|
64
|
+
- Click "Add Platform" and select "Website"
|
65
|
+
- Set "Site URL" to "http://localhost"
|
66
|
+
- Under "App Domains" add "localhost"
|
67
|
+
- Click "Save"
|
68
|
+
- In the "App Review" tab:
|
69
|
+
- Flip the switch to make your app live
|
70
|
+
- In the "Dashboard" tab:
|
71
|
+
- Click "Show" to reveal your app secret
|
72
|
+
- Save the App ID and App Secret by running:
|
66
73
|
|
67
74
|
#{APP_NAME} config --appid=<app-id> --appsecret=<app-secret>
|
68
75
|
|
@@ -234,10 +241,16 @@ command :links do |c|
|
|
234
241
|
puts
|
235
242
|
puts "Edit a video"
|
236
243
|
puts " https://www.facebook.com/video/edit/?v=VIDEO_ID"
|
244
|
+
puts
|
245
|
+
puts "Graph API explorer"
|
246
|
+
puts " https://developers.facebook.com/tools/explorer/"
|
247
|
+
puts
|
248
|
+
puts "Sharing debugger"
|
249
|
+
puts " https://developers.facebook.com/tools/debug/"
|
237
250
|
end
|
238
251
|
end
|
239
252
|
|
240
|
-
desc "Post a message or image to your timeline"
|
253
|
+
desc "Post a message or image to a page, a group or your timeline"
|
241
254
|
arg_name "message"
|
242
255
|
long_desc %(
|
243
256
|
Facebook advises: photos should be less than 4 MB and saved as JPG, PNG, GIF or TIFF files.
|
data/lib/fbcli/version.rb
CHANGED
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.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ildar Sagdejev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: koala
|
@@ -80,7 +80,7 @@ files:
|
|
80
80
|
- lib/fbcli/version.rb
|
81
81
|
homepage: https://github.com/specious/facebook-cli
|
82
82
|
licenses:
|
83
|
-
-
|
83
|
+
- ISC
|
84
84
|
metadata: {}
|
85
85
|
post_install_message:
|
86
86
|
rdoc_options: []
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.6.
|
101
|
+
rubygems_version: 2.6.11
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Facebook command line utility
|