lib/fb_graph/application.rb in fb_graph-1.8.5 vs lib/fb_graph/application.rb in fb_graph-1.8.6
- old
+ new
@@ -31,7 +31,13 @@
self.secret ||= secret
auth = Auth.new(self.identifier, self.secret)
self.access_token = auth.client.access_token!
end
+ def access_token_with_auto_fetch
+ access_token_without_auto_fetch ||
+ self.secret && get_access_token
+ end
+ alias_method_chain :access_token, :auto_fetch
+
end
end
\ No newline at end of file