abhiyerra-refacebook 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/refacebook.rb +3 -4
- data/lib/refacebook/sinatra.rb +5 -5
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/refacebook.rb
CHANGED
@@ -41,9 +41,8 @@ module ReFacebook
|
|
41
41
|
end
|
42
42
|
|
43
43
|
# Generate a redirect path to the default login page.
|
44
|
-
# :next
|
45
|
-
#
|
46
|
-
# :canvas - If this is true redirects to the canvas page.
|
44
|
+
# [:next] The page to redirect to after login.
|
45
|
+
# [:canvas] _Optional._ If this is true redirects to the canvas page.
|
47
46
|
def get_login_url *args
|
48
47
|
params = {}
|
49
48
|
params['v'] = '1.0'
|
@@ -64,7 +63,7 @@ module ReFacebook
|
|
64
63
|
end
|
65
64
|
end
|
66
65
|
|
67
|
-
# All
|
66
|
+
# All API[http://wiki.developers.facebook.com/index.php/API] calls go
|
68
67
|
# through this class. To request a method just modify the call such that . become _.
|
69
68
|
# If you create a session update the session_key with the session value so that
|
70
69
|
# all the calls become authenticated.
|
data/lib/refacebook/sinatra.rb
CHANGED
@@ -34,12 +34,12 @@ module Sinatra
|
|
34
34
|
# :store => store)
|
35
35
|
# </code></pre>
|
36
36
|
#
|
37
|
-
# :api_key
|
38
|
-
# :secret_key
|
39
|
-
# :canvas_url
|
40
|
-
# :require_login
|
37
|
+
# [:api_key] Your application's Facebook API key.
|
38
|
+
# [:secret_key] Your application's Facebook Secret key.
|
39
|
+
# [:canvas_url] The full path to your canvas page.
|
40
|
+
# [:require_login] If this is set to true then the user is redirected to
|
41
41
|
# the login page where she needs to authenticate.
|
42
|
-
# :store
|
42
|
+
# [:store] This currently uses memcache-client as the session store since
|
43
43
|
# Rack doesn't currently have non cookie based session stores.
|
44
44
|
def require_facebook *args
|
45
45
|
settings = args[0]
|