rfacebook 0.5.0 → 0.5.1
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/facebook_desktop_session.rb +2 -1
- data/lib/facebook_web_session.rb +1 -0
- metadata +1 -1
@@ -49,12 +49,13 @@ class FacebookDesktopSession < FacebookSession
|
|
49
49
|
# options.next - the page to redirect to after login
|
50
50
|
# options.popup - boolean, whether or not to use the popup style (defaults to true)
|
51
51
|
# options.skipcookie - boolean, whether to force new Facebook login (defaults to false)
|
52
|
-
# options.hidecheckbox - boolean, whether to show the "infinite session" option checkbox
|
52
|
+
# options.hidecheckbox - boolean, whether to show the "infinite session" option checkbox (defaults to false)
|
53
53
|
def get_login_url(options={})
|
54
54
|
# options
|
55
55
|
path_next = options[:next] ||= nil
|
56
56
|
popup = (options[:popup] == nil) ? true : false
|
57
57
|
skipcookie = (options[:skipcookie] == nil) ? false : true
|
58
|
+
hidecheckbox = (options[:hidecheckbox] == nil) ? false : true
|
58
59
|
|
59
60
|
# get some extra portions of the URL
|
60
61
|
optionalNext = (path_next == nil) ? "" : "&next=#{CGI.escape(path_next.to_s)}"
|
data/lib/facebook_web_session.rb
CHANGED
@@ -51,6 +51,7 @@ class FacebookWebSession < FacebookSession
|
|
51
51
|
path_next = options[:next] ||= nil
|
52
52
|
popup = (options[:popup] == nil) ? true : false
|
53
53
|
skipcookie = (options[:skipcookie] == nil) ? false : true
|
54
|
+
hidecheckbox = (options[:hidecheckbox] == nil) ? false : true
|
54
55
|
|
55
56
|
# get some extra portions of the URL
|
56
57
|
optionalNext = (path_next == nil) ? "" : "&next=#{CGI.escape(path_next.to_s)}"
|