fbrails 0.0.7 → 0.0.8
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.
- data/lib/fbrails/graph.rb +2 -2
- data/lib/fbrails/version.rb +1 -1
- metadata +1 -1
data/lib/fbrails/graph.rb
CHANGED
@@ -12,11 +12,11 @@ module Fbrails
|
|
12
12
|
|
13
13
|
#graph.get_picture(ID,TYPE)
|
14
14
|
#TYPE can be square (50x50), small (50 pixels wide, variable height), normal (100 pixels wide, variable height), large (about 200 pixels wide, variable height)
|
15
|
-
def get_picture(id,type=nil)
|
15
|
+
def self.get_picture(id,type=nil)
|
16
16
|
first = "http://graph.facebook.com/#{id}/picture"
|
17
17
|
if type.blank?
|
18
18
|
return first
|
19
|
-
elsif type == 'square' || type
|
19
|
+
elsif type == 'square' || type == 'small' || type == 'normal' || type == 'large'
|
20
20
|
return first + "?type=#{type}"
|
21
21
|
end
|
22
22
|
end
|
data/lib/fbrails/version.rb
CHANGED