Sure you can widen the conversation.&nbsp; Well i should have explained why the auth_token is there, to be honest I haven&#39;t tested if i really need it.&nbsp; I got that code when I went to <span style="font-size: 78%;"><span style="font-family: Verdana;"><a href="http://www.facebook.com/code_gen.php?v=1.0&amp;api_key=YOUR_API_KEY">http://www.facebook.com/code_gen.php?v=1.0&amp;api_key=YOUR_API_KEY</a>.&nbsp; See the article here: <a href="http://shimikoif.wordpress.com/2008/04/13/how-to-create-mobile-service-as-faceb/">http://shimikoif.wordpress.com/2008/04/13/how-to-create-mobile-service-as-faceb/</a></span></span><br>
<br>Also what version of facebooker are you using, make sure you have at least 0.9.9 if you want to follow the online documentation, there is a newer version as well, i think its somewhere around 1.0.13.<br><br><div class="gmail_quote">
On Sat, Feb 21, 2009 at 5:22 PM, Ethan Herdrick <span dir="ltr">&lt;<a href="mailto:herdrick@gmail.com">herdrick@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for the code, Lee. &nbsp;Funny thing - I have no idea what an<br>
auth_token is. &nbsp;I have a live FB app running that uses infinite<br>
session keys and works OK even though I&#39;ve ever set an auth token.<br>
What are they?<br>
<br>
You&#39;ve been very helpful would you mind if I widened our conversation<br>
to the mailing list?<br>
-Ethan<br>
<br>
P.S. &nbsp;By the way, in examining the source code I&#39;ve found that the<br>
most direct way to call Users.getInfo is indeed<br>
Facebooker::Session.users. &nbsp;Or it&#39;s supposed to be that way. &nbsp;It<br>
doesn&#39;t work as written, but I find if I remove some code from the<br>
source of that method then it works, more or less.<br>
<div><div></div><div class="Wj3C7c"><br>
On Sat, Feb 21, 2009 at 7:56 AM, Lee Connell &lt;<a href="mailto:lee.a.connell@gmail.com">lee.a.connell@gmail.com</a>&gt; wrote:<br>
&gt; if you don&#39;t have an infinite session key, change cached to false. make sure<br>
&gt; to put your key and secret.<br>
&gt; #!/usr/bin/env ruby<br>
&gt; require &#39;rubygems&#39;<br>
&gt; require &#39;facebooker&#39;<br>
&gt; API_KEY = &#39;yourkey&#39;<br>
&gt; API_SECRET = &#39;yoursecret&#39;<br>
&gt; session = Facebooker::Session.create(API_KEY, API_SECRET)<br>
&gt; cached = true<br>
&gt; if cached then<br>
&gt; &nbsp; token = &quot;yourtoken&quot;<br>
&gt; &nbsp; user_id = &quot;youruserid&quot;<br>
&gt; &nbsp; session_key = &quot;yourinfinitesessionkey&quot;<br>
&gt; &nbsp; session.auth_token = token<br>
&gt; &nbsp; #puts session.infinite?.to_s<br>
&gt; &nbsp; session.secure_with!(session_key, user_id, 0)<br>
&gt; else<br>
&gt; &nbsp; token = session.auth_token<br>
&gt; &nbsp; puts &quot;Paste the URL into your web browser and login&quot;<br>
&gt; &nbsp; puts session.login_url + &quot;&amp;auth_token=#{token}&quot;<br>
&gt; &nbsp; puts &quot;Hit return to continue...&quot;<br>
&gt; &nbsp; gets<br>
&gt; end<br>
&gt; session.user.populate(:name, :status, :pic_square, :uid)<br>
&gt; puts &quot;Session: #{session.session_key}&quot;<br>
&gt; puts &quot;ID: #{session.user.uid}&quot;<br>
&gt; puts &quot;Full Name: #{<a href="http://session.user.name" target="_blank">session.user.name</a>}&quot;<br>
&gt; puts &quot;Status: #{session.user.status.message}&quot;<br>
&gt; puts &quot;Picture: #{session.user.pic_square}&quot;<br>
&gt; friends = session.user.friends!(:name, :status)<br>
&gt; friends.each do |friend|<br>
&gt; &nbsp; puts &quot;First Name: #{<a href="http://friend.name" target="_blank">friend.name</a>}&quot;<br>
&gt; &nbsp; puts &quot;Status: #{friend.status.message}&quot;<br>
&gt; end<br>
&gt; session.user.set_status(&quot;Home with the family&quot;)<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Feb 21, 2009 at 12:52 AM, Ethan Herdrick &lt;<a href="mailto:herdrick@gmail.com">herdrick@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Thanks, Lee!<br>
&gt;&gt;<br>
&gt;&gt; But Facebooker::Session doesn&#39;t have a populate method. &nbsp;I&#39;ve tried<br>
&gt;&gt; Facebooker::Session.users, but it breaks, claiming my session key is<br>
&gt;&gt; invalid. &nbsp;Not sure what&#39;s going on there.<br>
&gt;&gt;<br>
&gt;&gt; -Ethan<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Feb 20, 2009 at 7:35 AM, Lee Connell &lt;<a href="mailto:lee.a.connell@gmail.com">lee.a.connell@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; you get it through calling the method populate on your facebook session,<br>
&gt;&gt; &gt; passing it arguments of what fields you want, lilke :name, :last_name,<br>
&gt;&gt; &gt; :uid<br>
&gt;&gt; &gt; etc... then you access it through the user object, &quot;<a href="http://session.user.name" target="_blank">session.user.name</a>,<br>
&gt;&gt; &gt; session.user.last_name&quot; I don&#39;t have the code i was working on in front<br>
&gt;&gt; &gt; of<br>
&gt;&gt; &gt; me but that should get you started.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Thu, Feb 19, 2009 at 3:46 AM, Ethan Herdrick &lt;<a href="mailto:herdrick@gmail.com">herdrick@gmail.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Where is Facebooker&#39;s wrapper of the FB API Users.getInfo ?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; (<a href="http://wiki.developers.facebook.com/index.php/Users.getInfo" target="_blank">http://wiki.developers.facebook.com/index.php/Users.getInfo</a>)<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thanks!<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; Facebooker-talk mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:Facebooker-talk@rubyforge.org">Facebooker-talk@rubyforge.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://rubyforge.org/mailman/listinfo/facebooker-talk" target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>