like_bomb 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/README.md +80 -0
  2. metadata +4 -2
data/README.md ADDED
@@ -0,0 +1,80 @@
1
+ LikeBomb
2
+ ========
3
+ By: Maxwell Elliott <elliott.432@buckeyemail.osu.edu>
4
+
5
+ A nifty Ruby script that when given a valid FaceBook Graph API Key
6
+ will like and/or leave a comment on every one of
7
+ your friend's statuses and/or photos! At any rate this gem is a cool
8
+ look at the Facebook Graph API and it's abilities.
9
+ Getting Started
10
+ -----------------
11
+ **Step 1: Install gem**
12
+
13
+ $ gem install like_bomb
14
+ **Step 2: Get a valid Graph API key**
15
+
16
+ Goto: <http://developers.facebook.com/tools/explorer> and click 'Get Access Token'.
17
+ You will need to log into Facebook to do this.
18
+
19
+ Make sure your permissions look similar to the images below! If you do not have these
20
+ exact permissions the application may not work!
21
+
22
+ **Critical** permissions include:
23
+
24
+ * publish_stream
25
+ * friends_status
26
+ * friends_photos
27
+ * user_likes
28
+ * publish_actions
29
+ * read_stream
30
+ * export_stream
31
+
32
+ **My Permissions, gem will work flawlessly with these settings:**
33
+
34
+ ![User Data Permissions](one.png "User Data Permissions")
35
+
36
+ ![Friend Data Permissions](two.png "Friend Data Permissions")
37
+
38
+ ![Extended Permissions](three.png "Extended Permissions")
39
+
40
+
41
+ **NOTE: Your access token may expire after a set amount of time which is variable
42
+ by Facebook.**
43
+ If you are getting exceptions in your code it is most likey due to
44
+ the fact that your access token is expired! To renew your access code simple
45
+ generate another at <http://developers.facebook.com/tools/explorer> . I am looking
46
+ into automating this renewal and will accept pull requests for this feature
47
+
48
+ **Step 3: Lock 'n Load**
49
+
50
+ With your valid API key in hand you are ready to do some damage!
51
+
52
+ **Post Likes on statuses**
53
+
54
+ # This will go to your first friend from the Graph API and will like
55
+ # all of his/her statuses
56
+ lb = LikeBomb.new("<VALID_KEY>")
57
+ friend_hash = lb.get_friends
58
+ unliked_statuses = lb.get_statuses(friend_hash.first)[:not_liked] # Get not liked statuses
59
+ lb.post_likes(unliked_statuses)
60
+
61
+ **Post 'Cool!'s on photos**
62
+
63
+ # This will go to your last friend from the Graph API and will comment
64
+ # 'Cool!'' on all of his/her photos
65
+ lb = LikeBomb.new("<VALID_KEY>")
66
+ friend_hash = lb.get_friends
67
+ uncooled_photos = lb.get_photos(friend_hash.last)[:not_cooled]
68
+ lb.post_cools(uncooled_photos)
69
+
70
+ ## License
71
+
72
+ *(This project is released under the MIT license*
73
+
74
+ Copyright (c) 2012 Maxwell Elliott
75
+
76
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
77
+
78
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
79
+
80
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: like_bomb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -49,9 +49,11 @@ description: ! "Likebomb is a quick and efficent way to annoy your Facebook frie
49
49
  email: elliott.432@buckeyemail.osu.edu
50
50
  executables: []
51
51
  extensions: []
52
- extra_rdoc_files: []
52
+ extra_rdoc_files:
53
+ - README.md
53
54
  files:
54
55
  - lib/like_bomb/like_bomb.rb
56
+ - README.md
55
57
  - test/like_bomb_test.rb
56
58
  homepage: http://rubygems.org/gems/like_bomb
57
59
  licenses: