pei wang
2009-Oct-20 03:04 UTC
[Facebooker-talk] when i call fb_name return no method error
it shows this error"NoMethodError in GcardsController#listcard undefined method `fb_name'' for #GcardsController:" does i dont require some lib or header? i have require "facebooker" -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091020/3ecf8d67/attachment-0001.html>
David Clements
2009-Oct-20 03:12 UTC
[Facebooker-talk] when i call fb_name return no method error
fb_name is a helper method and is used within your view. It is not available in your controller. Dave On Mon, Oct 19, 2009 at 9:04 PM, pei wang <ouwind at gmail.com> wrote:> it shows this error"NoMethodError in GcardsController#listcard undefined > method `fb_name'' for #GcardsController:" > does i dont require some lib or header? > > i have require "facebooker" > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > >-- Dave Cell:303-618-7481 Email: dave at gidigo.com Apps: http://bit.ly/gidigo Web: http://www.gidigo.com Blog: http://shortpath.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091019/d43691b0/attachment.html>
pei wang
2009-Oct-20 03:19 UTC
[Facebooker-talk] when i call fb_name return no method error
but when i used it in view, it show nothing. so what can i do to know the reason why it show empty On Tue, Oct 20, 2009 at 11:12 AM, David Clements <digidigo at gmail.com> wrote:> fb_name is a helper method and is used within your view. It is not > available in your controller. > > Dave > > On Mon, Oct 19, 2009 at 9:04 PM, pei wang <ouwind at gmail.com> wrote: > >> it shows this error"NoMethodError in GcardsController#listcard undefined >> method `fb_name'' for #GcardsController:" >> does i dont require some lib or header? >> >> i have require "facebooker" >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > > > -- > > Dave > > Cell:303-618-7481 > Email: dave at gidigo.com > Apps: http://bit.ly/gidigo > Web: http://www.gidigo.com > Blog: http://shortpath.blogspot.com >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091020/0fa0c305/attachment.html>
David Clements
2009-Oct-20 03:30 UTC
[Facebooker-talk] when i call fb_name return no method error
I''ll need a lot more information to help you out. Can you send some code? I believe the fb_name method takes a User object, this is typically the authenticated user. Something like: fb_name(fb_session.user) Dave On Mon, Oct 19, 2009 at 9:19 PM, pei wang <ouwind at gmail.com> wrote:> but when i used it in view, it show nothing. so what can i do to know the > reason why it show empty > > > On Tue, Oct 20, 2009 at 11:12 AM, David Clements <digidigo at gmail.com>wrote: > >> fb_name is a helper method and is used within your view. It is not >> available in your controller. >> >> Dave >> >> On Mon, Oct 19, 2009 at 9:04 PM, pei wang <ouwind at gmail.com> wrote: >> >>> it shows this error"NoMethodError in GcardsController#listcard undefined >>> method `fb_name'' for #GcardsController:" >>> does i dont require some lib or header? >>> >>> i have require "facebooker" >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> >> >> >> -- >> >> Dave >> >> Cell:303-618-7481 >> Email: dave at gidigo.com >> Apps: http://bit.ly/gidigo >> Web: http://www.gidigo.com >> Blog: http://shortpath.blogspot.com >> > >-- Dave Cell:303-618-7481 Email: dave at gidigo.com Apps: http://bit.ly/gidigo Web: http://www.gidigo.com Blog: http://shortpath.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091019/a49317e0/attachment.html>
pei wang
2009-Oct-20 04:27 UTC
[Facebooker-talk] when i call fb_name return no method error
i write like this <%= fb_name("123123123")%>the number is my facebook id, i have test it in a website and it show my name On Tue, Oct 20, 2009 at 11:30 AM, David Clements <digidigo at gmail.com> wrote:> I''ll need a lot more information to help you out. Can you send some code? > > I believe the fb_name method takes a User object, this is typically the > authenticated user. > > Something like: > > fb_name(fb_session.user) > > Dave > > > On Mon, Oct 19, 2009 at 9:19 PM, pei wang <ouwind at gmail.com> wrote: > >> but when i used it in view, it show nothing. so what can i do to know the >> reason why it show empty >> >> >> On Tue, Oct 20, 2009 at 11:12 AM, David Clements <digidigo at gmail.com>wrote: >> >>> fb_name is a helper method and is used within your view. It is not >>> available in your controller. >>> >>> Dave >>> >>> On Mon, Oct 19, 2009 at 9:04 PM, pei wang <ouwind at gmail.com> wrote: >>> >>>> it shows this error"NoMethodError in GcardsController#listcard undefined >>>> method `fb_name'' for #GcardsController:" >>>> does i dont require some lib or header? >>>> >>>> i have require "facebooker" >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>>> >>> >>> >>> -- >>> >>> Dave >>> >>> Cell:303-618-7481 >>> Email: dave at gidigo.com >>> Apps: http://bit.ly/gidigo >>> Web: http://www.gidigo.com >>> Blog: http://shortpath.blogspot.com >>> >> >> > > > -- > > Dave > > Cell:303-618-7481 > Email: dave at gidigo.com > Apps: http://bit.ly/gidigo > Web: http://www.gidigo.com > Blog: http://shortpath.blogspot.com >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091020/a9c76d18/attachment.html>
pei wang
2009-Oct-20 04:29 UTC
[Facebooker-talk] when i call fb_name return no method error
here is the website http://facebooker.pjkh.com/helpers/fb_name<http://facebooker.pjkh.com/helpers/fb_name>but in my application it show nothing On Tue, Oct 20, 2009 at 12:27 PM, pei wang <ouwind at gmail.com> wrote:> i write like this <%= fb_name("123123123")%>the number is my facebook id, > i have test it in a website and it show my name > > > On Tue, Oct 20, 2009 at 11:30 AM, David Clements <digidigo at gmail.com>wrote: > >> I''ll need a lot more information to help you out. Can you send some code? >> >> I believe the fb_name method takes a User object, this is typically the >> authenticated user. >> >> Something like: >> >> fb_name(fb_session.user) >> >> Dave >> >> >> On Mon, Oct 19, 2009 at 9:19 PM, pei wang <ouwind at gmail.com> wrote: >> >>> but when i used it in view, it show nothing. so what can i do to know the >>> reason why it show empty >>> >>> >>> On Tue, Oct 20, 2009 at 11:12 AM, David Clements <digidigo at gmail.com>wrote: >>> >>>> fb_name is a helper method and is used within your view. It is not >>>> available in your controller. >>>> >>>> Dave >>>> >>>> On Mon, Oct 19, 2009 at 9:04 PM, pei wang <ouwind at gmail.com> wrote: >>>> >>>>> it shows this error"NoMethodError in GcardsController#listcard >>>>> undefined method `fb_name'' for #GcardsController:" >>>>> does i dont require some lib or header? >>>>> >>>>> i have require "facebooker" >>>>> >>>>> _______________________________________________ >>>>> Facebooker-talk mailing list >>>>> Facebooker-talk at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> Dave >>>> >>>> Cell:303-618-7481 >>>> Email: dave at gidigo.com >>>> Apps: http://bit.ly/gidigo >>>> Web: http://www.gidigo.com >>>> Blog: http://shortpath.blogspot.com >>>> >>> >>> >> >> >> -- >> >> Dave >> >> Cell:303-618-7481 >> Email: dave at gidigo.com >> Apps: http://bit.ly/gidigo >> Web: http://www.gidigo.com >> Blog: http://shortpath.blogspot.com >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091020/99129eee/attachment-0001.html>
pei wang
2009-Oct-20 15:28 UTC
[Facebooker-talk] when i call fb_name return no method error
my code: <td><%= fb_name("504532317") %></td> it show nothing On Tue, Oct 20, 2009 at 12:29 PM, pei wang <ouwind at gmail.com> wrote:> here is the website http://facebooker.pjkh.com/helpers/fb_name > <http://facebooker.pjkh.com/helpers/fb_name>but in my application it show > nothing > > > On Tue, Oct 20, 2009 at 12:27 PM, pei wang <ouwind at gmail.com> wrote: > >> i write like this <%= fb_name("123123123")%> >> the number is my facebook id, i have test it in a website and it show my >> name >> >> >> On Tue, Oct 20, 2009 at 11:30 AM, David Clements <digidigo at gmail.com>wrote: >> >>> I''ll need a lot more information to help you out. Can you send some >>> code? >>> >>> I believe the fb_name method takes a User object, this is typically the >>> authenticated user. >>> >>> Something like: >>> >>> fb_name(fb_session.user) >>> >>> Dave >>> >>> >>> On Mon, Oct 19, 2009 at 9:19 PM, pei wang <ouwind at gmail.com> wrote: >>> >>>> but when i used it in view, it show nothing. so what can i do to know >>>> the reason why it show empty >>>> >>>> >>>> On Tue, Oct 20, 2009 at 11:12 AM, David Clements <digidigo at gmail.com>wrote: >>>> >>>>> fb_name is a helper method and is used within your view. It is not >>>>> available in your controller. >>>>> >>>>> Dave >>>>> >>>>> On Mon, Oct 19, 2009 at 9:04 PM, pei wang <ouwind at gmail.com> wrote: >>>>> >>>>>> it shows this error"NoMethodError in GcardsController#listcard >>>>>> undefined method `fb_name'' for #GcardsController:" >>>>>> >>>>>> does i dont require some lib or header? >>>>>> >>>>>> i have require "facebooker" >>>>>> >>>>>> _______________________________________________ >>>>>> Facebooker-talk mailing list >>>>>> Facebooker-talk at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Dave >>>>> >>>>> Cell:303-618-7481 >>>>> Email: dave at gidigo.com >>>>> Apps: http://bit.ly/gidigo >>>>> Web: http://www.gidigo.com >>>>> Blog: http://shortpath.blogspot.com >>>>> >>>> >>>> >>> >>> >>> -- >>> >>> Dave >>> >>> Cell:303-618-7481 >>> Email: dave at gidigo.com >>> Apps: http://bit.ly/gidigo >>> Web: http://www.gidigo.com >>> Blog: http://shortpath.blogspot.com >>> >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091020/ae7c6325/attachment.html>
Mike Mangino
2009-Oct-20 16:38 UTC
[Facebooker-talk] when i call fb_name return no method error
Is it generating the fbml? Do you see it when you view source? Can the user you are logged in as see the user you are mentioning? Facebook has privacy features so that it won''t display a user''s name to somebody who can''t see that person. Mike On Oct 20, 2009, at 11:28 AM, pei wang wrote:> my code: > > <td><%= fb_name("504532317") %></td> > it show nothing > > On Tue, Oct 20, 2009 at 12:29 PM, pei wang <ouwind at gmail.com> wrote: > here is the website http://facebooker.pjkh.com/helpers/fb_name > but in my application it show nothing > > > On Tue, Oct 20, 2009 at 12:27 PM, pei wang <ouwind at gmail.com> wrote: > i write like this <%= fb_name("123123123")%> > the number is my facebook id, i have test it in a website and it > show my name > > > On Tue, Oct 20, 2009 at 11:30 AM, David Clements > <digidigo at gmail.com> wrote: > I''ll need a lot more information to help you out. Can you send some > code? > > I believe the fb_name method takes a User object, this is typically > the authenticated user. > > Something like: > > fb_name(fb_session.user) > > Dave > > > On Mon, Oct 19, 2009 at 9:19 PM, pei wang <ouwind at gmail.com> wrote: > but when i used it in view, it show nothing. so what can i do to > know the reason why it show empty > > > On Tue, Oct 20, 2009 at 11:12 AM, David Clements > <digidigo at gmail.com> wrote: > fb_name is a helper method and is used within your view. It is not > available in your controller. > > Dave > > On Mon, Oct 19, 2009 at 9:04 PM, pei wang <ouwind at gmail.com> wrote: > it shows this error"NoMethodError in GcardsController#listcard > undefined method `fb_name'' for #GcardsController:" > > does i dont require some lib or header? > > i have require "facebooker" > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > -- > > Dave > > Cell:303-618-7481 > Email: dave at gidigo.com > Apps: http://bit.ly/gidigo > Web: http://www.gidigo.com > Blog: http://shortpath.blogspot.com > > > > > -- > > Dave > > Cell:303-618-7481 > Email: dave at gidigo.com > Apps: http://bit.ly/gidigo > Web: http://www.gidigo.com > Blog: http://shortpath.blogspot.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091020/53798b7b/attachment.html>
pei wang
2009-Oct-23 14:41 UTC
[Facebooker-talk] when i call fb_name return no method error
and now i try the url http://74.207.245.33:3000/gcards it shows Invalid parameter and the stack is from facebooker function ''ensure_authenticated_to_facebook'' On Fri, Oct 23, 2009 at 10:35 PM, pei wang <ouwind at gmail.com> wrote:> # Logfile created on Fri Oct 23 14:21:17 +0000 2009Swapping facebooker > config: ''94f8d6f8cbf15ca6045389594be773c4'' > [4;36;1mSQL (0.2ms) [0m [0;1mSET NAMES ''utf8'' [0m > [4;35;1mSQL (0.1ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m > [4;36;1mSupermarket Load (0.8ms) [0m [0;1mSELECT * FROM `supermarkets` > ORDER BY name [0m > [4;35;1mSupermarket Columns (48.7ms) [0m [0mSHOW FIELDS FROM > `supermarkets` [0m > > > Processing GcardsController#index (for 69.63.186.245 at 2009-10-23 > 14:24:09) [GET] > Parameters: {"fb_sig_app_id"=>"173376414600", > "fb_sig_request_method"=>"GET", "fb_sig_locale"=>"en_US", > "fb_sig_in_canvas"=>"1", "fb_sig_in_new_facebook"=>"1", > "fb_sig"=>"8c155427682bdaac8f8e21a71c328c83", > "fb_sig_friends"=>"541892252,1012846767", "fb_sig_added"=>"1", > "fb_sig_expires"=>"1256396400", > "fb_sig_session_key"=>"2.T663j1FyqeKzZv7Ae_2pKg__.86400.1256396400-504532317", > "fb_sig_ext_perms"=>"auto_publish_recent_activity", > "fb_sig_api_key"=>"94f8d6f8cbf15ca6045389594be773c4", > "fb_sig_time"=>"1256307848.8551", > "fb_sig_profile_update_time"=>"1254106893", "fb_sig_user"=>"504532317"} > [4;36;1mGcard Load (0.2ms) [0m [0;1mSELECT * FROM `gcards` [0m > Completed in 239ms (View: 44, DB: 50) | 406 Not Acceptable [ > http://74.207.245.33/gcards] > > this is my log > > On Fri, Oct 23, 2009 at 12:50 AM, Mike Mangino <mmangino at elevatedrails.com > > wrote: > >> It''s really hard to diagnose these problems without the error messages >> from your log. >> >> Mike >> >> On Thu, Oct 22, 2009 at 12:13 PM, pei wang <ouwind at gmail.com> wrote: >> > canvas url:http://apps.facebook.com/cardexlingno/ >> > >> > it shows below: >> > >> > Errors while loading page from application >> > >> > Received HTTP error code 406 while loading >> http://74.207.245.33:3000/gcards >> > >> > Please try again later. We appreciate your patience as the developers of >> > cardexlingno and Facebook resolve this issue. Thanks! >> > >> > but i directly type url http://74.207.245.33:3000/gcards, it ok ,return >> http >> > status 200 >> > >> > i dont know why >> > >> > On Wed, Oct 21, 2009 at 8:27 PM, Mike Mangino < >> mmangino at elevatedrails.com> >> > wrote: >> >> >> >> When you go to the canvas url of your app, what does the source code >> look >> >> like that facebook gives you? If you view source, it should be included >> in a >> >> comment. It sounds like things aren''t wired up right. >> >> Mike >> >> On Oct 20, 2009, at 9:42 PM, pei wang wrote: >> >> >> >> i change the iframe to fbml ,dont show name in view page >> >> the user i mentioned is my facebook id.i can see it in the session. >> >> does it possible this reason: i register this application use a url >> like >> >> ouwind.vicp.net:3000, and i use webbrick as my http server, and it >> just >> >> listen at localhost:3000, so facebook does not show these name at the >> ip >> >> does not matcher call back url? by the way, i can login >> >> On Wed, Oct 21, 2009 at 12:38 AM, Mike Mangino >> >> <mmangino at elevatedrails.com> wrote: >> >>> >> >>> Is it generating the fbml? Do you see it when you view source? Can the >> >>> user you are logged in as see the user you are mentioning? Facebook >> has >> >>> privacy features so that it won''t display a user''s name to somebody >> who >> >>> can''t see that person. >> >>> Mike >> >>> On Oct 20, 2009, at 11:28 AM, pei wang wrote: >> >>> >> >>> my code: >> >>> <td><%= fb_name("504532317") %></td> >> >>> it show nothing >> >>> >> >>> On Tue, Oct 20, 2009 at 12:29 PM, pei wang <ouwind at gmail.com> wrote: >> >>>> >> >>>> here is the website http://facebooker.pjkh.com/helpers/fb_name >> >>>> but in my application it show nothing >> >>>> >> >>>> On Tue, Oct 20, 2009 at 12:27 PM, pei wang <ouwind at gmail.com> wrote: >> >>>>> >> >>>>> i write like this <%= fb_name("123123123")%> >> >>>>> the number is my facebook id, i have test it in a website and it >> show >> >>>>> my name >> >>>>> >> >>>>> On Tue, Oct 20, 2009 at 11:30 AM, David Clements < >> digidigo at gmail.com> >> >>>>> wrote: >> >>>>>> >> >>>>>> I''ll need a lot more information to help you out. Can you send >> some >> >>>>>> code? >> >>>>>> >> >>>>>> I believe the fb_name method takes a User object, this is >> typically >> >>>>>> the authenticated user. >> >>>>>> >> >>>>>> Something like: >> >>>>>> >> >>>>>> fb_name(fb_session.user) >> >>>>>> >> >>>>>> Dave >> >>>>>> >> >>>>>> On Mon, Oct 19, 2009 at 9:19 PM, pei wang <ouwind at gmail.com> >> wrote: >> >>>>>>> >> >>>>>>> but when i used it in view, it show nothing. so what can i do to >> know >> >>>>>>> the reason why it show empty >> >>>>>>> >> >>>>>>> On Tue, Oct 20, 2009 at 11:12 AM, David Clements < >> digidigo at gmail.com> >> >>>>>>> wrote: >> >>>>>>>> >> >>>>>>>> fb_name is a helper method and is used within your view. It is >> not >> >>>>>>>> available in your controller. >> >>>>>>>> >> >>>>>>>> Dave >> >>>>>>>> >> >>>>>>>> On Mon, Oct 19, 2009 at 9:04 PM, pei wang <ouwind at gmail.com> >> wrote: >> >>>>>>>>> >> >>>>>>>>> it shows this error"NoMethodError in GcardsController#listcard >> >>>>>>>>> undefined method `fb_name'' for #GcardsController:" >> >>>>>>>>> does i dont require some lib or header? >> >>>>>>>>> i have require "facebooker" >> >>>>>>>>> _______________________________________________ >> >>>>>>>>> Facebooker-talk mailing list >> >>>>>>>>> Facebooker-talk at rubyforge.org >> >>>>>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >>>>>>>>> >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> -- >> >>>>>>>> >> >>>>>>>> Dave >> >>>>>>>> >> >>>>>>>> Cell:303-618-7481 >> >>>>>>>> Email: dave at gidigo.com >> >>>>>>>> Apps: http://bit.ly/gidigo >> >>>>>>>> Web: http://www.gidigo.com >> >>>>>>>> Blog: http://shortpath.blogspot.com >> >>>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> -- >> >>>>>> >> >>>>>> Dave >> >>>>>> >> >>>>>> Cell:303-618-7481 >> >>>>>> Email: dave at gidigo.com >> >>>>>> Apps: http://bit.ly/gidigo >> >>>>>> Web: http://www.gidigo.com >> >>>>>> Blog: http://shortpath.blogspot.com >> >>>>> >> >>>> >> >>> >> >>> _______________________________________________ >> >>> Facebooker-talk mailing list >> >>> Facebooker-talk at rubyforge.org >> >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >>> >> >>> -- >> >>> Mike Mangino >> >>> http://www.elevatedrails.com >> >>> >> >>> >> >> >> >> >> >> -- >> >> Mike Mangino >> >> http://www.elevatedrails.com >> >> >> >> >> > >> > >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091023/6525423e/attachment-0001.html>
Mike Mangino
2009-Oct-23 15:15 UTC
[Facebooker-talk] when i call fb_name return no method error
It sounds like problems validating a session, but again, I''m just guessing without a stack trace, code or parameter dump. Also, you should join the google group at http://groups.google.com/groups/facebooker That list is much more active. Mike On Oct 23, 2009, at 10:41 AM, pei wang wrote:> and now i try the url http://74.207.245.33:3000/gcards > it shows Invalid parameter > and the stack is from facebooker function > ''ensure_authenticated_to_facebook'' > > > On Fri, Oct 23, 2009 at 10:35 PM, pei wang <ouwind at gmail.com> wrote: > # Logfile created on Fri Oct 23 14:21:17 +0000 2009Swapping > facebooker config: ''94f8d6f8cbf15ca6045389594be773c4'' > [4;36;1mSQL (0.2ms) [0m [0;1mSET NAMES ''utf8'' [0m > [4;35;1mSQL (0.1ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m > [4;36;1mSupermarket Load (0.8ms) [0m [0;1mSELECT * FROM > `supermarkets` ORDER BY name [0m > [4;35;1mSupermarket Columns (48.7ms) [0m [0mSHOW FIELDS FROM > `supermarkets` [0m > > > Processing GcardsController#index (for 69.63.186.245 at 2009-10-23 > 14:24:09) [GET] > Parameters: {"fb_sig_app_id"=>"173376414600", > "fb_sig_request_method"=>"GET", "fb_sig_locale"=>"en_US", > "fb_sig_in_canvas"=>"1", "fb_sig_in_new_facebook"=>"1", > "fb_sig"=>"8c155427682bdaac8f8e21a71c328c83", > "fb_sig_friends"=>"541892252,1012846767", "fb_sig_added"=>"1", > "fb_sig_expires"=>"1256396400", > "fb_sig_session_key"=>"2.T663j1FyqeKzZv7Ae_2pKg__. > 86400.1256396400-504532317", > "fb_sig_ext_perms"=>"auto_publish_recent_activity", > "fb_sig_api_key"=>"94f8d6f8cbf15ca6045389594be773c4", > "fb_sig_time"=>"1256307848.8551", > "fb_sig_profile_update_time"=>"1254106893", > "fb_sig_user"=>"504532317"} > [4;36;1mGcard Load (0.2ms) [0m [0;1mSELECT * FROM `gcards` [0m > Completed in 239ms (View: 44, DB: 50) | 406 Not Acceptable [http://74.207.245.33/gcards > ] > > this is my log > > On Fri, Oct 23, 2009 at 12:50 AM, Mike Mangino <mmangino at elevatedrails.com > > wrote: > It''s really hard to diagnose these problems without the error messages > from your log. > > Mike > > On Thu, Oct 22, 2009 at 12:13 PM, pei wang <ouwind at gmail.com> wrote: > > canvas url:http://apps.facebook.com/cardexlingno/ > > > > it shows below: > > > > Errors while loading page from application > > > > Received HTTP error code 406 while loading http://74.207.245.33:3000/gcards > > > > Please try again later. We appreciate your patience as the > developers of > > cardexlingno and Facebook resolve this issue. Thanks! > > > > but i directly type url http://74.207.245.33:3000/gcards, it > ok ,return http > > status 200 > > > > i dont know why > > > > On Wed, Oct 21, 2009 at 8:27 PM, Mike Mangino <mmangino at elevatedrails.com > > > > wrote: > >> > >> When you go to the canvas url of your app, what does the source > code look > >> like that facebook gives you? If you view source, it should be > included in a > >> comment. It sounds like things aren''t wired up right. > >> Mike > >> On Oct 20, 2009, at 9:42 PM, pei wang wrote: > >> > >> i change the iframe to fbml ,dont show name in view page > >> the user i mentioned is my facebook id.i can see it in the session. > >> does it possible this reason: i register this application use a > url like > >> ouwind.vicp.net:3000, and i use webbrick as my http server, and > it just > >> listen at localhost:3000, so facebook does not show these name at > the ip > >> does not matcher call back url? by the way, i can login > >> On Wed, Oct 21, 2009 at 12:38 AM, Mike Mangino > >> <mmangino at elevatedrails.com> wrote: > >>> > >>> Is it generating the fbml? Do you see it when you view source? > Can the > >>> user you are logged in as see the user you are mentioning? > Facebook has > >>> privacy features so that it won''t display a user''s name to > somebody who > >>> can''t see that person. > >>> Mike > >>> On Oct 20, 2009, at 11:28 AM, pei wang wrote: > >>> > >>> my code: > >>> <td><%= fb_name("504532317") %></td> > >>> it show nothing > >>> > >>> On Tue, Oct 20, 2009 at 12:29 PM, pei wang <ouwind at gmail.com> > wrote: > >>>> > >>>> here is the website http://facebooker.pjkh.com/helpers/fb_name > >>>> but in my application it show nothing > >>>> > >>>> On Tue, Oct 20, 2009 at 12:27 PM, pei wang <ouwind at gmail.com> > wrote: > >>>>> > >>>>> i write like this <%= fb_name("123123123")%> > >>>>> the number is my facebook id, i have test it in a website and > it show > >>>>> my name > >>>>> > >>>>> On Tue, Oct 20, 2009 at 11:30 AM, David Clements <digidigo at gmail.com > > > >>>>> wrote: > >>>>>> > >>>>>> I''ll need a lot more information to help you out. Can you > send some > >>>>>> code? > >>>>>> > >>>>>> I believe the fb_name method takes a User object, this is > typically > >>>>>> the authenticated user. > >>>>>> > >>>>>> Something like: > >>>>>> > >>>>>> fb_name(fb_session.user) > >>>>>> > >>>>>> Dave > >>>>>> > >>>>>> On Mon, Oct 19, 2009 at 9:19 PM, pei wang <ouwind at gmail.com> > wrote: > >>>>>>> > >>>>>>> but when i used it in view, it show nothing. so what can i > do to know > >>>>>>> the reason why it show empty > >>>>>>> > >>>>>>> On Tue, Oct 20, 2009 at 11:12 AM, David Clements <digidigo at gmail.com > > > >>>>>>> wrote: > >>>>>>>> > >>>>>>>> fb_name is a helper method and is used within your view. > It is not > >>>>>>>> available in your controller. > >>>>>>>> > >>>>>>>> Dave > >>>>>>>> > >>>>>>>> On Mon, Oct 19, 2009 at 9:04 PM, pei wang > <ouwind at gmail.com> wrote: > >>>>>>>>> > >>>>>>>>> it shows this error"NoMethodError in > GcardsController#listcard > >>>>>>>>> undefined method `fb_name'' for #GcardsController:" > >>>>>>>>> does i dont require some lib or header? > >>>>>>>>> i have require "facebooker" > >>>>>>>>> _______________________________________________ > >>>>>>>>> Facebooker-talk mailing list > >>>>>>>>> Facebooker-talk at rubyforge.org > >>>>>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk > >>>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> -- > >>>>>>>> > >>>>>>>> Dave > >>>>>>>> > >>>>>>>> Cell:303-618-7481 > >>>>>>>> Email: dave at gidigo.com > >>>>>>>> Apps: http://bit.ly/gidigo > >>>>>>>> Web: http://www.gidigo.com > >>>>>>>> Blog: http://shortpath.blogspot.com > >>>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> > >>>>>> Dave > >>>>>> > >>>>>> Cell:303-618-7481 > >>>>>> Email: dave at gidigo.com > >>>>>> Apps: http://bit.ly/gidigo > >>>>>> Web: http://www.gidigo.com > >>>>>> Blog: http://shortpath.blogspot.com > >>>>> > >>>> > >>> > >>> _______________________________________________ > >>> Facebooker-talk mailing list > >>> Facebooker-talk at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/facebooker-talk > >>> > >>> -- > >>> Mike Mangino > >>> http://www.elevatedrails.com > >>> > >>> > >> > >> > >> -- > >> Mike Mangino > >> http://www.elevatedrails.com > >> > >> > > > > > >-- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091023/ce713e1c/attachment.html>
pei wang
2009-Oct-25 07:06 UTC
[Facebooker-talk] when i call fb_name return no method error
what function can i use if i used iframe, some one like fb_name in fbml On Sat, Oct 24, 2009 at 10:18 AM, pei wang <ouwind at gmail.com> wrote:> get it > > > On Sat, Oct 24, 2009 at 1:02 AM, Mike Mangino <mmangino at elevatedrails.com>wrote: > >> Which as I said, won''t work. You need FBML. >> >> It seems like you need to follow some form of tutorial to understand the >> flow. >> >> Mike >> >> On Oct 23, 2009, at 12:52 PM, pei wang wrote: >> >> i have defined index action >> >> def index >> @gcards = Gcard.all >> >> respond_to do |format| >> format.html # index.html.erb >> format.xml { render :xml => @gcards } >> end >> end >> >> On Fri, Oct 23, 2009 at 11:53 PM, Mike Mangino < >> mmangino at elevatedrails.com> wrote: >> >>> you are defining initialize in a subclass and not calling suprt. This >>> seems like a really bad idea. You also don''t include the index action and >>> your view is HTML not FBML. >>> >>> I think you need to check out either my screencasts or my book on >>> building a facebook app. You''re nowhere close to how it needs to work. >>> >>> Mike >>> >>> On Oct 23, 2009, at 11:36 AM, pei wang wrote: >>> >>> *log:* >>> # Logfile created on Fri Oct 23 14:21:17 +0000 2009Swapping facebooker >>> config: ''94f8d6f8cbf15ca6045389594be773c4'' >>> [4;36;1mSQL (0.2ms) [0m [0;1mSET NAMES ''utf8'' [0m >>> [4;35;1mSQL (0.1ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m >>> [4;36;1mSupermarket Load (0.8ms) [0m [0;1mSELECT * FROM >>> `supermarkets` ORDER BY name [0m >>> [4;35;1mSupermarket Columns (48.7ms) [0m [0mSHOW FIELDS FROM >>> `supermarkets` [0m >>> >>> >>> Processing GcardsController#index (for 69.63.186.245 at 2009-10-23 >>> 14:24:09) [GET] >>> Parameters: {"fb_sig_app_id"=>"173376414600", >>> "fb_sig_request_method"=>"GET", "fb_sig_locale"=>"en_US", >>> "fb_sig_in_canvas"=>"1", "fb_sig_in_new_facebook"=>"1", >>> "fb_sig"=>"8c155427682bdaac8f8e21a71c328c83", >>> "fb_sig_friends"=>"541892252,1012846767", "fb_sig_added"=>"1", >>> "fb_sig_expires"=>"1256396400", >>> "fb_sig_session_key"=>"2.T663j1FyqeKzZv7Ae_2pKg__.86400.1256396400-504532317", >>> "fb_sig_ext_perms"=>"auto_publish_recent_activity", >>> "fb_sig_api_key"=>"94f8d6f8cbf15ca6045389594be773c4", >>> "fb_sig_time"=>"1256307848.8551", >>> "fb_sig_profile_update_time"=>"1254106893", "fb_sig_user"=>"504532317"} >>> [4;36;1mGcard Load (0.2ms) [0m [0;1mSELECT * FROM `gcards` [0m >>> Completed in 239ms (View: 44, DB: 50) | 406 Not Acceptable [ >>> http://74.207.245.33/gcards] >>> *controller code:* >>> class GcardsController < ApplicationController >>> ensure_authenticated_to_facebook >>> >>> GTYPE_WANT = 1 >>> GTYPE_HAVE = 2 >>> protect_from_forgery :except => ''addcard'' >>> >>> def initialize >>> @supermarkets = Supermarket.find(:all, :order => "name") >>> @supermarkets_str = "" >>> for i in 0.. at supermarkets.length-1 >>> @supermarkets_str += @supermarkets[i].name >>> if(i != @supermarkets.length-1) >>> @supermarkets_str += '','' >>> end >>> end >>> >>> end >>> *index view:* >>> >>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >>> <head> >>> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> >>> <title>Products: <%= controller.action_name %></title> >>> <%= stylesheet_link_tag ''base'' %> >>> </head> >>> >>> <body> >>> <%= render(:partial => ''alllinks'') %> >>> <%= button_to "I want a card" , {:action => ''addcard'',:gtype=>''1''} %> >>> <%= button_to "I have a card" , {:action => ''addcard'',:gtype=>''2''} %> >>> >>> <%= render(:partial => ''searchbar'') %> >>> </body> >>> </html> >>> >>> >>> On Fri, Oct 23, 2009 at 10:55 PM, Mike Mangino < >>> mmangino at elevatedrails.com> wrote: >>> >>>> My guess is that you are doing >>>> >>>> respond_to do |wants| >>>> wants.html {} >>>> wants.xml {} >>>> end >>>> >>>> and not providing a block for FBML. >>>> >>>> >>>> It''s really helpful if your bug report contains: >>>> >>>> 1) The actual error message from the logs (like you showed here) >>>> 2) The code from the controller that is causing an error >>>> 3) The code form any views. >>>> >>>> >>>> Also, you might want to try searching for "406 not acceptable >>>> facebooker". You''ll find the answer to your problem is the second results on >>>> google. >>>> >>>> Mike >>>> >>>> On Oct 23, 2009, at 10:35 AM, pei wang wrote: >>>> >>>> # Logfile created on Fri Oct 23 14:21:17 +0000 2009Swapping facebooker >>>> config: ''94f8d6f8cbf15ca6045389594be773c4'' >>>> [4;36;1mSQL (0.2ms) [0m [0;1mSET NAMES ''utf8'' [0m >>>> [4;35;1mSQL (0.1ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m >>>> [4;36;1mSupermarket Load (0.8ms) [0m [0;1mSELECT * FROM >>>> `supermarkets` ORDER BY name [0m >>>> [4;35;1mSupermarket Columns (48.7ms) [0m [0mSHOW FIELDS FROM >>>> `supermarkets` [0m >>>> >>>> >>>> Processing GcardsController#index (for 69.63.186.245 at 2009-10-23 >>>> 14:24:09) [GET] >>>> Parameters: {"fb_sig_app_id"=>"173376414600", >>>> "fb_sig_request_method"=>"GET", "fb_sig_locale"=>"en_US", >>>> "fb_sig_in_canvas"=>"1", "fb_sig_in_new_facebook"=>"1", >>>> "fb_sig"=>"8c155427682bdaac8f8e21a71c328c83", >>>> "fb_sig_friends"=>"541892252,1012846767", "fb_sig_added"=>"1", >>>> "fb_sig_expires"=>"1256396400", >>>> "fb_sig_session_key"=>"2.T663j1FyqeKzZv7Ae_2pKg__.86400.1256396400-504532317", >>>> "fb_sig_ext_perms"=>"auto_publish_recent_activity", >>>> "fb_sig_api_key"=>"94f8d6f8cbf15ca6045389594be773c4", >>>> "fb_sig_time"=>"1256307848.8551", >>>> "fb_sig_profile_update_time"=>"1254106893", "fb_sig_user"=>"504532317"} >>>> [4;36;1mGcard Load (0.2ms) [0m [0;1mSELECT * FROM `gcards` [0m >>>> Completed in 239ms (View: 44, DB: 50) | 406 Not Acceptable [ >>>> http://74.207.245.33/gcards] >>>> >>>> this is my log >>>> >>>> On Fri, Oct 23, 2009 at 12:50 AM, Mike Mangino < >>>> mmangino at elevatedrails.com> wrote: >>>> >>>>> It''s really hard to diagnose these problems without the error messages >>>>> from your log. >>>>> >>>>> Mike >>>>> >>>>> On Thu, Oct 22, 2009 at 12:13 PM, pei wang <ouwind at gmail.com> wrote: >>>>> > canvas url:http://apps.facebook.com/cardexlingno/ >>>>> > >>>>> > it shows below: >>>>> > >>>>> > Errors while loading page from application >>>>> > >>>>> > Received HTTP error code 406 while loading >>>>> http://74.207.245.33:3000/gcards >>>>> > >>>>> > Please try again later. We appreciate your patience as the developers >>>>> of >>>>> > cardexlingno and Facebook resolve this issue. Thanks! >>>>> > >>>>> > but i directly type url http://74.207.245.33:3000/gcards, it ok >>>>> ,return http >>>>> > status 200 >>>>> > >>>>> > i dont know why >>>>> > >>>>> > On Wed, Oct 21, 2009 at 8:27 PM, Mike Mangino < >>>>> mmangino at elevatedrails.com> >>>>> > wrote: >>>>> >> >>>>> >> When you go to the canvas url of your app, what does the source code >>>>> look >>>>> >> like that facebook gives you? If you view source, it should be >>>>> included in a >>>>> >> comment. It sounds like things aren''t wired up right. >>>>> >> Mike >>>>> >> On Oct 20, 2009, at 9:42 PM, pei wang wrote: >>>>> >> >>>>> >> i change the iframe to fbml ,dont show name in view page >>>>> >> the user i mentioned is my facebook id.i can see it in the session. >>>>> >> does it possible this reason: i register this application use a url >>>>> like >>>>> >> ouwind.vicp.net:3000, and i use webbrick as my http server, and it >>>>> just >>>>> >> listen at localhost:3000, so facebook does not show these name at >>>>> the ip >>>>> >> does not matcher call back url? by the way, i can login >>>>> >> On Wed, Oct 21, 2009 at 12:38 AM, Mike Mangino >>>>> >> <mmangino at elevatedrails.com> wrote: >>>>> >>> >>>>> >>> Is it generating the fbml? Do you see it when you view source? Can >>>>> the >>>>> >>> user you are logged in as see the user you are mentioning? Facebook >>>>> has >>>>> >>> privacy features so that it won''t display a user''s name to somebody >>>>> who >>>>> >>> can''t see that person. >>>>> >>> Mike >>>>> >>> On Oct 20, 2009, at 11:28 AM, pei wang wrote: >>>>> >>> >>>>> >>> my code: >>>>> >>> <td><%= fb_name("504532317") %></td> >>>>> >>> it show nothing >>>>> >>> >>>>> >>> On Tue, Oct 20, 2009 at 12:29 PM, pei wang <ouwind at gmail.com> >>>>> wrote: >>>>> >>>> >>>>> >>>> here is the website http://facebooker.pjkh.com/helpers/fb_name >>>>> >>>> but in my application it show nothing >>>>> >>>> >>>>> >>>> On Tue, Oct 20, 2009 at 12:27 PM, pei wang <ouwind at gmail.com> >>>>> wrote: >>>>> >>>>> >>>>> >>>>> i write like this <%= fb_name("123123123")%> >>>>> >>>>> the number is my facebook id, i have test it in a website and it >>>>> show >>>>> >>>>> my name >>>>> >>>>> >>>>> >>>>> On Tue, Oct 20, 2009 at 11:30 AM, David Clements < >>>>> digidigo at gmail.com> >>>>> >>>>> wrote: >>>>> >>>>>> >>>>> >>>>>> I''ll need a lot more information to help you out. Can you send >>>>> some >>>>> >>>>>> code? >>>>> >>>>>> >>>>> >>>>>> I believe the fb_name method takes a User object, this is >>>>> typically >>>>> >>>>>> the authenticated user. >>>>> >>>>>> >>>>> >>>>>> Something like: >>>>> >>>>>> >>>>> >>>>>> fb_name(fb_session.user) >>>>> >>>>>> >>>>> >>>>>> Dave >>>>> >>>>>> >>>>> >>>>>> On Mon, Oct 19, 2009 at 9:19 PM, pei wang <ouwind at gmail.com> >>>>> wrote: >>>>> >>>>>>> >>>>> >>>>>>> but when i used it in view, it show nothing. so what can i do >>>>> to know >>>>> >>>>>>> the reason why it show empty >>>>> >>>>>>> >>>>> >>>>>>> On Tue, Oct 20, 2009 at 11:12 AM, David Clements < >>>>> digidigo at gmail.com> >>>>> >>>>>>> wrote: >>>>> >>>>>>>> >>>>> >>>>>>>> fb_name is a helper method and is used within your view. It >>>>> is not >>>>> >>>>>>>> available in your controller. >>>>> >>>>>>>> >>>>> >>>>>>>> Dave >>>>> >>>>>>>> >>>>> >>>>>>>> On Mon, Oct 19, 2009 at 9:04 PM, pei wang <ouwind at gmail.com> >>>>> wrote: >>>>> >>>>>>>>> >>>>> >>>>>>>>> it shows this error"NoMethodError in >>>>> GcardsController#listcard >>>>> >>>>>>>>> undefined method `fb_name'' for #GcardsController:" >>>>> >>>>>>>>> does i dont require some lib or header? >>>>> >>>>>>>>> i have require "facebooker" >>>>> >>>>>>>>> _______________________________________________ >>>>> >>>>>>>>> Facebooker-talk mailing list >>>>> >>>>>>>>> Facebooker-talk at rubyforge.org >>>>> >>>>>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>> >>>>>>>>> >>>>> >>>>>>>> >>>>> >>>>>>>> >>>>> >>>>>>>> >>>>> >>>>>>>> -- >>>>> >>>>>>>> >>>>> >>>>>>>> Dave >>>>> >>>>>>>> >>>>> >>>>>>>> Cell:303-618-7481 >>>>> >>>>>>>> Email: dave at gidigo.com >>>>> >>>>>>>> Apps: http://bit.ly/gidigo >>>>> >>>>>>>> Web: http://www.gidigo.com >>>>> >>>>>>>> Blog: http://shortpath.blogspot.com >>>>> >>>>>>> >>>>> >>>>>> >>>>> >>>>>> >>>>> >>>>>> >>>>> >>>>>> -- >>>>> >>>>>> >>>>> >>>>>> Dave >>>>> >>>>>> >>>>> >>>>>> Cell:303-618-7481 >>>>> >>>>>> Email: dave at gidigo.com >>>>> >>>>>> Apps: http://bit.ly/gidigo >>>>> >>>>>> Web: http://www.gidigo.com >>>>> >>>>>> Blog: http://shortpath.blogspot.com >>>>> >>>>> >>>>> >>>> >>>>> >>> >>>>> >>> _______________________________________________ >>>>> >>> Facebooker-talk mailing list >>>>> >>> Facebooker-talk at rubyforge.org >>>>> >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>> >>> >>>>> >>> -- >>>>> >>> Mike Mangino >>>>> >>> http://www.elevatedrails.com >>>>> >>> >>>>> >>> >>>>> >> >>>>> >> >>>>> >> -- >>>>> >> Mike Mangino >>>>> >> http://www.elevatedrails.com >>>>> >> >>>>> >> >>>>> > >>>>> > >>>>> >>>> >>>> >>>> -- >>>> Mike Mangino >>>> http://www.elevatedrails.com >>>> >>>> >>>> >>>> >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091025/4f5d7261/attachment-0001.html>
Mike Mangino
2009-Oct-26 12:57 UTC
[Facebooker-talk] when i call fb_name return no method error
You should check the the Facebook documentation for iframe apps. This is extensively covered. Mike On Oct 25, 2009, at 3:06 AM, pei wang wrote:> what function can i use if i used iframe, some one like fb_name in > fbml > > On Sat, Oct 24, 2009 at 10:18 AM, pei wang <ouwind at gmail.com> wrote: > get it > > > On Sat, Oct 24, 2009 at 1:02 AM, Mike Mangino <mmangino at elevatedrails.com > > wrote: > Which as I said, won''t work. You need FBML. > > It seems like you need to follow some form of tutorial to understand > the flow. > > Mike > > On Oct 23, 2009, at 12:52 PM, pei wang wrote: > >> i have defined index action >> >> def index >> @gcards = Gcard.all >> >> respond_to do |format| >> format.html # index.html.erb >> format.xml { render :xml => @gcards } >> end >> end >> >> On Fri, Oct 23, 2009 at 11:53 PM, Mike Mangino <mmangino at elevatedrails.com >> > wrote: >> you are defining initialize in a subclass and not calling suprt. >> This seems like a really bad idea. You also don''t include the index >> action and your view is HTML not FBML. >> >> I think you need to check out either my screencasts or my book on >> building a facebook app. You''re nowhere close to how it needs to >> work. >> >> Mike >> >> On Oct 23, 2009, at 11:36 AM, pei wang wrote: >> >>> log: >>> # Logfile created on Fri Oct 23 14:21:17 +0000 2009Swapping >>> facebooker config: ''94f8d6f8cbf15ca6045389594be773c4'' >>> [4;36;1mSQL (0.2ms) [0m [0;1mSET NAMES ''utf8'' [0m >>> [4;35;1mSQL (0.1ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m >>> [4;36;1mSupermarket Load (0.8ms) [0m [0;1mSELECT * FROM >>> `supermarkets` ORDER BY name [0m >>> [4;35;1mSupermarket Columns (48.7ms) [0m [0mSHOW FIELDS FROM >>> `supermarkets` [0m >>> >>> >>> Processing GcardsController#index (for 69.63.186.245 at 2009-10-23 >>> 14:24:09) [GET] >>> Parameters: {"fb_sig_app_id"=>"173376414600", >>> "fb_sig_request_method"=>"GET", "fb_sig_locale"=>"en_US", >>> "fb_sig_in_canvas"=>"1", "fb_sig_in_new_facebook"=>"1", >>> "fb_sig"=>"8c155427682bdaac8f8e21a71c328c83", >>> "fb_sig_friends"=>"541892252,1012846767", "fb_sig_added"=>"1", >>> "fb_sig_expires"=>"1256396400", >>> "fb_sig_session_key"=>"2.T663j1FyqeKzZv7Ae_2pKg__. >>> 86400.1256396400-504532317", >>> "fb_sig_ext_perms"=>"auto_publish_recent_activity", >>> "fb_sig_api_key"=>"94f8d6f8cbf15ca6045389594be773c4", >>> "fb_sig_time"=>"1256307848.8551", >>> "fb_sig_profile_update_time"=>"1254106893", >>> "fb_sig_user"=>"504532317"} >>> [4;36;1mGcard Load (0.2ms) [0m [0;1mSELECT * FROM `gcards` [0m >>> Completed in 239ms (View: 44, DB: 50) | 406 Not Acceptable [http://74.207.245.33/gcards >>> ] >>> controller code: >>> class GcardsController < ApplicationController >>> ensure_authenticated_to_facebook >>> >>> GTYPE_WANT = 1 >>> GTYPE_HAVE = 2 >>> protect_from_forgery :except => ''addcard'' >>> >>> def initialize >>> @supermarkets = Supermarket.find(:all, :order => "name") >>> @supermarkets_str = "" >>> for i in 0.. at supermarkets.length-1 >>> @supermarkets_str += @supermarkets[i].name >>> if(i != @supermarkets.length-1) >>> @supermarkets_str += '','' >>> end >>> end >>> >>> end >>> index view: >>> >>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >>> <head> >>> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> >>> <title>Products: <%= controller.action_name %></title> >>> <%= stylesheet_link_tag ''base'' %> >>> </head> >>> >>> <body> >>> <%= render(:partial => ''alllinks'') %> >>> <%= button_to "I want a card" , {:action => ''addcard'',:gtype=>''1''} >>> %> >>> <%= button_to "I have a card" , {:action => ''addcard'',:gtype=>''2''} >>> %> >>> >>> <%= render(:partial => ''searchbar'') %> >>> </body> >>> </html> >>> >>> >>> On Fri, Oct 23, 2009 at 10:55 PM, Mike Mangino <mmangino at elevatedrails.com >>> > wrote: >>> My guess is that you are doing >>> >>> respond_to do |wants| >>> wants.html {} >>> wants.xml {} >>> end >>> >>> and not providing a block for FBML. >>> >>> >>> It''s really helpful if your bug report contains: >>> >>> 1) The actual error message from the logs (like you showed here) >>> 2) The code from the controller that is causing an error >>> 3) The code form any views. >>> >>> >>> Also, you might want to try searching for "406 not acceptable >>> facebooker". You''ll find the answer to your problem is the second >>> results on google. >>> >>> Mike >>> >>> On Oct 23, 2009, at 10:35 AM, pei wang wrote: >>> >>>> # Logfile created on Fri Oct 23 14:21:17 +0000 2009Swapping >>>> facebooker config: ''94f8d6f8cbf15ca6045389594be773c4'' >>>> [4;36;1mSQL (0.2ms) [0m [0;1mSET NAMES ''utf8'' [0m >>>> [4;35;1mSQL (0.1ms) [0m [0mSET SQL_AUTO_IS_NULL=0 [0m >>>> [4;36;1mSupermarket Load (0.8ms) [0m [0;1mSELECT * FROM >>>> `supermarkets` ORDER BY name [0m >>>> [4;35;1mSupermarket Columns (48.7ms) [0m [0mSHOW FIELDS FROM >>>> `supermarkets` [0m >>>> >>>> >>>> Processing GcardsController#index (for 69.63.186.245 at >>>> 2009-10-23 14:24:09) [GET] >>>> Parameters: {"fb_sig_app_id"=>"173376414600", >>>> "fb_sig_request_method"=>"GET", "fb_sig_locale"=>"en_US", >>>> "fb_sig_in_canvas"=>"1", "fb_sig_in_new_facebook"=>"1", >>>> "fb_sig"=>"8c155427682bdaac8f8e21a71c328c83", >>>> "fb_sig_friends"=>"541892252,1012846767", "fb_sig_added"=>"1", >>>> "fb_sig_expires"=>"1256396400", >>>> "fb_sig_session_key"=>"2.T663j1FyqeKzZv7Ae_2pKg__. >>>> 86400.1256396400-504532317", >>>> "fb_sig_ext_perms"=>"auto_publish_recent_activity", >>>> "fb_sig_api_key"=>"94f8d6f8cbf15ca6045389594be773c4", >>>> "fb_sig_time"=>"1256307848.8551", >>>> "fb_sig_profile_update_time"=>"1254106893", >>>> "fb_sig_user"=>"504532317"} >>>> [4;36;1mGcard Load (0.2ms) [0m [0;1mSELECT * FROM `gcards` [0m >>>> Completed in 239ms (View: 44, DB: 50) | 406 Not Acceptable [http://74.207.245.33/gcards >>>> ] >>>> >>>> this is my log >>>> >>>> On Fri, Oct 23, 2009 at 12:50 AM, Mike Mangino <mmangino at elevatedrails.com >>>> > wrote: >>>> It''s really hard to diagnose these problems without the error >>>> messages >>>> from your log. >>>> >>>> Mike >>>> >>>> On Thu, Oct 22, 2009 at 12:13 PM, pei wang <ouwind at gmail.com> >>>> wrote: >>>> > canvas url:http://apps.facebook.com/cardexlingno/ >>>> > >>>> > it shows below: >>>> > >>>> > Errors while loading page from application >>>> > >>>> > Received HTTP error code 406 while loading http://74.207.245.33:3000/gcards >>>> > >>>> > Please try again later. We appreciate your patience as the >>>> developers of >>>> > cardexlingno and Facebook resolve this issue. Thanks! >>>> > >>>> > but i directly type url http://74.207.245.33:3000/gcards, it >>>> ok ,return http >>>> > status 200 >>>> > >>>> > i dont know why >>>> > >>>> > On Wed, Oct 21, 2009 at 8:27 PM, Mike Mangino <mmangino at elevatedrails.com >>>> > >>>> > wrote: >>>> >> >>>> >> When you go to the canvas url of your app, what does the >>>> source code look >>>> >> like that facebook gives you? If you view source, it should be >>>> included in a >>>> >> comment. It sounds like things aren''t wired up right. >>>> >> Mike >>>> >> On Oct 20, 2009, at 9:42 PM, pei wang wrote: >>>> >> >>>> >> i change the iframe to fbml ,dont show name in view page >>>> >> the user i mentioned is my facebook id.i can see it in the >>>> session. >>>> >> does it possible this reason: i register this application use >>>> a url like >>>> >> ouwind.vicp.net:3000, and i use webbrick as my http server, >>>> and it just >>>> >> listen at localhost:3000, so facebook does not show these name >>>> at the ip >>>> >> does not matcher call back url? by the way, i can login >>>> >> On Wed, Oct 21, 2009 at 12:38 AM, Mike Mangino >>>> >> <mmangino at elevatedrails.com> wrote: >>>> >>> >>>> >>> Is it generating the fbml? Do you see it when you view >>>> source? Can the >>>> >>> user you are logged in as see the user you are mentioning? >>>> Facebook has >>>> >>> privacy features so that it won''t display a user''s name to >>>> somebody who >>>> >>> can''t see that person. >>>> >>> Mike >>>> >>> On Oct 20, 2009, at 11:28 AM, pei wang wrote: >>>> >>> >>>> >>> my code: >>>> >>> <td><%= fb_name("504532317") %></td> >>>> >>> it show nothing >>>> >>> >>>> >>> On Tue, Oct 20, 2009 at 12:29 PM, pei wang <ouwind at gmail.com> >>>> wrote: >>>> >>>> >>>> >>>> here is the website http://facebooker.pjkh.com/helpers/fb_name >>>> >>>> but in my application it show nothing >>>> >>>> >>>> >>>> On Tue, Oct 20, 2009 at 12:27 PM, pei wang >>>> <ouwind at gmail.com> wrote: >>>> >>>>> >>>> >>>>> i write like this <%= fb_name("123123123")%> >>>> >>>>> the number is my facebook id, i have test it in a website >>>> and it show >>>> >>>>> my name >>>> >>>>> >>>> >>>>> On Tue, Oct 20, 2009 at 11:30 AM, David Clements <digidigo at gmail.com >>>> > >>>> >>>>> wrote: >>>> >>>>>> >>>> >>>>>> I''ll need a lot more information to help you out. Can you >>>> send some >>>> >>>>>> code? >>>> >>>>>> >>>> >>>>>> I believe the fb_name method takes a User object, this is >>>> typically >>>> >>>>>> the authenticated user. >>>> >>>>>> >>>> >>>>>> Something like: >>>> >>>>>> >>>> >>>>>> fb_name(fb_session.user) >>>> >>>>>> >>>> >>>>>> Dave >>>> >>>>>> >>>> >>>>>> On Mon, Oct 19, 2009 at 9:19 PM, pei wang >>>> <ouwind at gmail.com> wrote: >>>> >>>>>>> >>>> >>>>>>> but when i used it in view, it show nothing. so what can >>>> i do to know >>>> >>>>>>> the reason why it show empty >>>> >>>>>>> >>>> >>>>>>> On Tue, Oct 20, 2009 at 11:12 AM, David Clements <digidigo at gmail.com >>>> > >>>> >>>>>>> wrote: >>>> >>>>>>>> >>>> >>>>>>>> fb_name is a helper method and is used within your >>>> view. It is not >>>> >>>>>>>> available in your controller. >>>> >>>>>>>> >>>> >>>>>>>> Dave >>>> >>>>>>>> >>>> >>>>>>>> On Mon, Oct 19, 2009 at 9:04 PM, pei wang <ouwind at gmail.com >>>> > wrote: >>>> >>>>>>>>> >>>> >>>>>>>>> it shows this error"NoMethodError in >>>> GcardsController#listcard >>>> >>>>>>>>> undefined method `fb_name'' for #GcardsController:" >>>> >>>>>>>>> does i dont require some lib or header? >>>> >>>>>>>>> i have require "facebooker" >>>> >>>>>>>>> _______________________________________________ >>>> >>>>>>>>> Facebooker-talk mailing list >>>> >>>>>>>>> Facebooker-talk at rubyforge.org >>>> >>>>>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>>>>>>>> >>>> >>>>>>>> >>>> >>>>>>>> >>>> >>>>>>>> >>>> >>>>>>>> -- >>>> >>>>>>>> >>>> >>>>>>>> Dave >>>> >>>>>>>> >>>> >>>>>>>> Cell:303-618-7481 >>>> >>>>>>>> Email: dave at gidigo.com >>>> >>>>>>>> Apps: http://bit.ly/gidigo >>>> >>>>>>>> Web: http://www.gidigo.com >>>> >>>>>>>> Blog: http://shortpath.blogspot.com >>>> >>>>>>> >>>> >>>>>> >>>> >>>>>> >>>> >>>>>> >>>> >>>>>> -- >>>> >>>>>> >>>> >>>>>> Dave >>>> >>>>>> >>>> >>>>>> Cell:303-618-7481 >>>> >>>>>> Email: dave at gidigo.com >>>> >>>>>> Apps: http://bit.ly/gidigo >>>> >>>>>> Web: http://www.gidigo.com >>>> >>>>>> Blog: http://shortpath.blogspot.com >>>> >>>>> >>>> >>>> >>>> >>> >>>> >>> _______________________________________________ >>>> >>> Facebooker-talk mailing list >>>> >>> Facebooker-talk at rubyforge.org >>>> >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>> >>>> >>> -- >>>> >>> Mike Mangino >>>> >>> http://www.elevatedrails.com >>>> >>> >>>> >>> >>>> >> >>>> >> >>>> >> -- >>>> >> Mike Mangino >>>> >> http://www.elevatedrails.com >>>> >> >>>> >> >>>> > >>>> > >>>> >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > >-- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20091026/a4d5195c/attachment-0001.html>