lib/fgraph/rails/fgraph_helper.rb in fgraph-0.2.1 vs lib/fgraph/rails/fgraph_helper.rb in fgraph-0.3.0

- old
+ new

@@ -57,12 +57,18 @@ def fgraph_logged_in? return true if fgraph_session and fgraph_access_token end + # Currently logged in facebook user def fgraph_current_user return @fgraph_current_user if @fgraph_current_user @fgraph_current_user = fgraph_client.me + end + + # Alias for fgraph_current_user + def fgraph_user + fgraph_current_user end # Return FGraph::Client instance initialized with settings set in <tt>fgraph.yml</tt>. # Initialized with <tt>:access_token</tt> as well if Facebook session exists. def fgraph_client \ No newline at end of file