rfacebook 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,7 @@ module RFacebook
31
31
 
32
32
  def fbparams
33
33
 
34
- params = (params || {}).dup
34
+ params = (self.params || {}).dup
35
35
 
36
36
  # try to get fbparams from the params hash
37
37
  if (@fbparams.length <= 0)
@@ -150,7 +150,7 @@ module RFacebook
150
150
 
151
151
  def require_facebook_install
152
152
  sess = fbsession
153
- if (in_facebook_canvas? and !sess.is_valid?)
153
+ if (in_facebook_canvas? and (!sess.is_valid? or (fbparams["added"].to_i != 1)))
154
154
  render :text => "<fb:redirect url=\"#{sess.get_install_url}\" />"
155
155
  end
156
156
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: rfacebook
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.6.7
7
- date: 2007-07-22 00:00:00 -07:00
6
+ version: 0.6.8
7
+ date: 2007-07-25 00:00:00 -07:00
8
8
  summary: A Ruby interface to the Facebook API v1.0+. Supports the new features from F8.
9
9
  require_paths:
10
10
  - lib