abhiyerra-refacebook 0.4.6 → 0.4.7
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/sinatra.rb +8 -10
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/refacebook/sinatra.rb
CHANGED
@@ -25,22 +25,20 @@ module Sinatra
|
|
25
25
|
module ReFacebookRegister
|
26
26
|
# ReFacebook configuration done at the beginning of a Sinatra file.
|
27
27
|
#
|
28
|
-
# An
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
33
|
-
#
|
34
|
-
# :store => store)
|
35
|
-
# </code></pre>
|
28
|
+
# An example:
|
29
|
+
# require_facebook(:api_key =>'MY_API_KEY',
|
30
|
+
# :secret_key => 'MY_SECRET_KEY',
|
31
|
+
# :canvas_url => 'http://apps.facebook.com/canvas-page',
|
32
|
+
# :require_login => true,
|
33
|
+
# :store => store)
|
36
34
|
#
|
37
35
|
# [:api_key] Your application's Facebook API key.
|
38
36
|
# [:secret_key] Your application's Facebook Secret key.
|
39
37
|
# [:canvas_url] The full path to your canvas page.
|
40
38
|
# [:require_login] If this is set to true then the user is redirected to
|
41
|
-
#
|
39
|
+
# the login page where she needs to authenticate.
|
42
40
|
# [:store] This currently uses memcache-client as the session store since
|
43
|
-
#
|
41
|
+
# Rack doesn't currently have non cookie based session stores.
|
44
42
|
def require_facebook *args
|
45
43
|
settings = args[0]
|
46
44
|
|