Displaying 1 result from an estimated 1 matches for "get_facebook_sess".
2008 Mar 12
3
a way to restrict who can install your app, for private testing
...t''s
messy but works. Put at the top of your controller, at the end of
your filters.
# This filter is only until we open everything up
before_filter do |c|
acceptable_uids = [''594180515'', ''122612996'']
unless acceptable_uids.include? c.get_facebook_session.user.uid
RAILS_DEFAULT_LOGGER.debug "my UID = " +
c.get_facebook_session.user.uid + " but acceptable_uids = " +
acceptable_uids.to_s
raise RuntimeError("This isn''t going to work")
end
end
def get_facebook_session
@facebook_...