fb_util 0.9.1 → 0.9.2

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.
Files changed (2) hide show
  1. data/lib/fb_util.rb +4 -3
  2. metadata +2 -2
data/lib/fb_util.rb CHANGED
@@ -54,9 +54,10 @@ class FBUtil
54
54
  end
55
55
 
56
56
  # Set an already existing image to be the users cover image
57
- # picture_id: the facebook id of the image to use as the users cover image. This currently doesn't allow for an offset, but this will be available in the next version.
58
- def set_as_cover_image(picture_id)
59
- post_request('/me', {cover: picture_id, no_feed_story: 'true'})
57
+ # picture_id: the facebook id of the image to use as the users cover image.
58
+ # offset_y: the offset that will be used to display the correct portion of the cover image on facebook. Default: 50
59
+ def set_as_cover_image(picture_id, offset_y = 50)
60
+ post_request('/me', {cover: picture_id, offset_y: offset_y.to_i.abs, no_feed_story: 'true'})
60
61
  end
61
62
 
62
63
  # Post a clickable link to a users feed (works for youtube videos as well)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-11 00:00:00.000000000 Z
12
+ date: 2012-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mechanize