al-facebooker 1.0.12 → 1.0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +2 -0
- data/lib/facebooker/rails/controller.rb +11 -8
- metadata +1 -1
data/History.txt
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
=== x.x.x / 2009-xx-xx
|
2
2
|
|
3
|
+
* Modified ensure_has_* and application_needs_permission methods in Controller to accept options which are to be encoded into the redirect URL (useful for setting next and next_cancel URLs) [Alan Larkin]
|
4
|
+
* Fixed bug in fql_query when result set is empty [Alan Larkin]
|
3
5
|
* Modified fql_query to return results as Hashes as a last resort [Alan Larkin]
|
4
6
|
* fixed typo in set app properties parser [Andrew Grim, shane]
|
5
7
|
* Removed actor_id param from templatized feed [shane]
|
@@ -222,18 +222,21 @@ module Facebooker
|
|
222
222
|
facebook_params['added']
|
223
223
|
end
|
224
224
|
|
225
|
-
def ensure_has_status_update
|
226
|
-
has_extended_permission?("status_update") || application_needs_permission("status_update")
|
225
|
+
def ensure_has_status_update(options = {})
|
226
|
+
has_extended_permission?("status_update") || application_needs_permission("status_update", options)
|
227
227
|
end
|
228
|
-
def ensure_has_photo_upload
|
229
|
-
has_extended_permission?("photo_upload") || application_needs_permission("photo_upload")
|
228
|
+
def ensure_has_photo_upload(options = {})
|
229
|
+
has_extended_permission?("photo_upload") || application_needs_permission("photo_upload", options)
|
230
230
|
end
|
231
|
-
def ensure_has_create_listing
|
232
|
-
has_extended_permission?("create_listing") || application_needs_permission("create_listing")
|
231
|
+
def ensure_has_create_listing(options = {})
|
232
|
+
has_extended_permission?("create_listing") || application_needs_permission("create_listing", options)
|
233
|
+
end
|
234
|
+
def ensure_has_offline_access(options = {})
|
235
|
+
has_extended_permission?('offline_access') || application_needs_permission('offline_access', options)
|
233
236
|
end
|
234
237
|
|
235
|
-
def application_needs_permission(perm)
|
236
|
-
redirect_to(facebook_session.permission_url(perm))
|
238
|
+
def application_needs_permission(perm, options = {})
|
239
|
+
redirect_to(facebook_session.permission_url(perm, options))
|
237
240
|
end
|
238
241
|
|
239
242
|
def has_extended_permission?(perm)
|