From matteo.gavagnin at gmail.com Tue Oct 6 12:29:21 2009 From: matteo.gavagnin at gmail.com (Matteo Gavagnin) Date: Tue, 6 Oct 2009 18:29:21 +0200 Subject: [Facebooker-talk] After login redirect Message-ID: <9B14C4C4-31A9-45CF-AC0A-363AD46CE789@gmail.com> I have a problem because i've bought Mike's screencasts but i cannot have the application working as expected when a user logins. If i give the link of my app http://apps.facebook.com/example/ to someone not logged into facebook the application ask te credentials an then redirects the user to the canvas page http://my_example_domain.com The problem is that i cannot set the url of my app (http://apps.facebook.com/example/ ) as Post Authorize Callback url because it doesn't validate. So i created a redirect page on my site that redirects the call and setted that page, but it is never called by facebook after the login process. Instead it calls the canvas page http/my_domain.com Any idea to resolve this issue? Thanks, Matteo From mmangino at elevatedrails.com Tue Oct 6 12:43:48 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 6 Oct 2009 12:43:48 -0400 Subject: [Facebooker-talk] After login redirect In-Reply-To: <9B14C4C4-31A9-45CF-AC0A-363AD46CE789@gmail.com> References: <9B14C4C4-31A9-45CF-AC0A-363AD46CE789@gmail.com> Message-ID: <340527FE-E039-45D2-A200-0D8061093E33@elevatedrails.com> On Oct 6, 2009, at 12:29 PM, Matteo Gavagnin wrote: > I have a problem because i've bought Mike's screencasts but i cannot > have the application working as expected when a user logins. > > If i give the link of my app http://apps.facebook.com/example/ to > someone not logged into facebook the application ask te credentials > an then redirects the user to the canvas page http://my_example_domain.com > Are you using the newest version of Facebooker? By default, you should be redirected back to your canvas path. Is a next parameter being sent? If so, what is it? Mike > The problem is that i cannot set the url of my app (http://apps.facebook.com/example/ > ) as Post Authorize Callback url because it doesn't validate. > So i created a redirect page on my site that redirects the call and > setted that page, but it is never called by facebook after the login > process. Instead it calls the canvas page http/my_domain.com > > Any idea to resolve this issue? > > Thanks, > Matteo > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From matteo.gavagnin at gmail.com Tue Oct 6 12:49:14 2009 From: matteo.gavagnin at gmail.com (Matteo Gavagnin) Date: Tue, 6 Oct 2009 18:49:14 +0200 Subject: [Facebooker-talk] After login redirect In-Reply-To: <340527FE-E039-45D2-A200-0D8061093E33@elevatedrails.com> References: <9B14C4C4-31A9-45CF-AC0A-363AD46CE789@gmail.com> <340527FE-E039-45D2-A200-0D8061093E33@elevatedrails.com> Message-ID: <3819197D-4D2C-4817-9A8B-86EDEDBA77A9@gmail.com> Il giorno 06/ott/2009, alle ore 18.43, Mike Mangino ha scritto: > > On Oct 6, 2009, at 12:29 PM, Matteo Gavagnin wrote: > >> I have a problem because i've bought Mike's screencasts but i >> cannot have the application working as expected when a user logins. >> >> If i give the link of my app http://apps.facebook.com/example/ to >> someone not logged into facebook the application ask te credentials >> an then redirects the user to the canvas page http://my_example_domain.com >> > > Are you using the newest version of Facebooker? By default, you > should be redirected back to your canvas path. Is a next parameter > being sent? If so, what is it? > > Mike > I installed the plugin no more than 10 days ago. There's no next parameter in the url. > >> The problem is that i cannot set the url of my app (http://apps.facebook.com/example/ >> ) as Post Authorize Callback url because it doesn't validate. >> So i created a redirect page on my site that redirects the call and >> setted that page, but it is never called by facebook after the >> login process. Instead it calls the canvas page http/my_domain.com >> >> Any idea to resolve this issue? >> >> Thanks, >> Matteo >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > From mmangino at elevatedrails.com Tue Oct 6 13:09:57 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 6 Oct 2009 13:09:57 -0400 Subject: [Facebooker-talk] After login redirect In-Reply-To: <3819197D-4D2C-4817-9A8B-86EDEDBA77A9@gmail.com> References: <9B14C4C4-31A9-45CF-AC0A-363AD46CE789@gmail.com> <340527FE-E039-45D2-A200-0D8061093E33@elevatedrails.com> <3819197D-4D2C-4817-9A8B-86EDEDBA77A9@gmail.com> Message-ID: On Oct 6, 2009, at 12:49 PM, Matteo Gavagnin wrote: > > Il giorno 06/ott/2009, alle ore 18.43, Mike Mangino ha scritto: > >> >> On Oct 6, 2009, at 12:29 PM, Matteo Gavagnin wrote: >> >>> I have a problem because i've bought Mike's screencasts but i >>> cannot have the application working as expected when a user logins. >>> >>> If i give the link of my app http://apps.facebook.com/example/ to >>> someone not logged into facebook the application ask te >>> credentials an then redirects the user to the canvas page http://my_example_domain.com >>> >> >> Are you using the newest version of Facebooker? By default, you >> should be redirected back to your canvas path. Is a next parameter >> being sent? If so, what is it? >> >> Mike >> > > I installed the plugin no more than 10 days ago. > There's no next parameter in the url. It's always worth updating. I pushed a bunch of updates on Friday. I don't think any will affect this, but it's worth a try. If there is no next parameter, then the app won't know where to go. That should be there. Are you using the facebooker_authentication plugin? It should set it. Mike > >> >>> The problem is that i cannot set the url of my app (http://apps.facebook.com/example/ >>> ) as Post Authorize Callback url because it doesn't validate. >>> So i created a redirect page on my site that redirects the call >>> and setted that page, but it is never called by facebook after the >>> login process. Instead it calls the canvas page http/my_domain.com >>> >>> Any idea to resolve this issue? >>> >>> Thanks, >>> Matteo >>> _______________________________________________ >>> 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 From matteo.gavagnin at gmail.com Tue Oct 6 13:16:21 2009 From: matteo.gavagnin at gmail.com (Matteo Gavagnin) Date: Tue, 6 Oct 2009 19:16:21 +0200 Subject: [Facebooker-talk] After login redirect In-Reply-To: References: <9B14C4C4-31A9-45CF-AC0A-363AD46CE789@gmail.com> <340527FE-E039-45D2-A200-0D8061093E33@elevatedrails.com> <3819197D-4D2C-4817-9A8B-86EDEDBA77A9@gmail.com> Message-ID: Il giorno 06/ott/2009, alle ore 19.09, Mike Mangino ha scritto: > > On Oct 6, 2009, at 12:49 PM, Matteo Gavagnin wrote: > >> >> Il giorno 06/ott/2009, alle ore 18.43, Mike Mangino ha scritto: >> >>> >>> On Oct 6, 2009, at 12:29 PM, Matteo Gavagnin wrote: >>> >>>> I have a problem because i've bought Mike's screencasts but i >>>> cannot have the application working as expected when a user logins. >>>> >>>> If i give the link of my app http://apps.facebook.com/example/ to >>>> someone not logged into facebook the application ask te >>>> credentials an then redirects the user to the canvas page http://my_example_domain.com >>>> >>> >>> Are you using the newest version of Facebooker? By default, you >>> should be redirected back to your canvas path. Is a next parameter >>> being sent? If so, what is it? >>> >>> Mike >>> >> >> I installed the plugin no more than 10 days ago. >> There's no next parameter in the url. > > It's always worth updating. I pushed a bunch of updates on Friday. I > don't think any will affect this, but it's worth a try. > > If there is no next parameter, then the app won't know where to go. > That should be there. Are you using the facebooker_authentication > plugin? It should set it. > > Mike I'm using the facebook_authentication plugin, but for now i'll try to update everything. Thanks, Matteo >> >>> >>>> The problem is that i cannot set the url of my app (http://apps.facebook.com/example/ >>>> ) as Post Authorize Callback url because it doesn't validate. >>>> So i created a redirect page on my site that redirects the call >>>> and setted that page, but it is never called by facebook after >>>> the login process. Instead it calls the canvas page http/ >>>> my_domain.com >>>> >>>> Any idea to resolve this issue? >>>> >>>> Thanks, >>>> Matteo >>>> _______________________________________________ >>>> 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 > > > From ouwind at gmail.com Mon Oct 19 23:04:19 2009 From: ouwind at gmail.com (pei wang) Date: Tue, 20 Oct 2009 11:04:19 +0800 Subject: [Facebooker-talk] when i call fb_name return no method error Message-ID: 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: From digidigo at gmail.com Mon Oct 19 23:12:59 2009 From: digidigo at gmail.com (David Clements) Date: Mon, 19 Oct 2009 21:12:59 -0600 Subject: [Facebooker-talk] when i call fb_name return no method error In-Reply-To: References: Message-ID: 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 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: From ouwind at gmail.com Mon Oct 19 23:19:01 2009 From: ouwind at gmail.com (pei wang) Date: Tue, 20 Oct 2009 11:19:01 +0800 Subject: [Facebooker-talk] when i call fb_name return no method error In-Reply-To: References: Message-ID: 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 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 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: From digidigo at gmail.com Mon Oct 19 23:30:25 2009 From: digidigo at gmail.com (David Clements) Date: Mon, 19 Oct 2009 21:30:25 -0600 Subject: [Facebooker-talk] when i call fb_name return no method error In-Reply-To: References: Message-ID: 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 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 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 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: From ouwind at gmail.com Tue Oct 20 00:27:39 2009 From: ouwind at gmail.com (pei wang) Date: Tue, 20 Oct 2009 12:27:39 +0800 Subject: [Facebooker-talk] when i call fb_name return no method error In-Reply-To: References: Message-ID: 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 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 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 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 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: From ouwind at gmail.com Tue Oct 20 00:29:35 2009 From: ouwind at gmail.com (pei wang) Date: Tue, 20 Oct 2009 12:29:35 +0800 Subject: [Facebooker-talk] when i call fb_name return no method error In-Reply-To: References: Message-ID: here is the website http://facebooker.pjkh.com/helpers/fb_namebut in my application it show nothing On Tue, Oct 20, 2009 at 12:27 PM, pei wang 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 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 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 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 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: From ouwind at gmail.com Tue Oct 20 11:28:55 2009 From: ouwind at gmail.com (pei wang) Date: Tue, 20 Oct 2009 23:28:55 +0800 Subject: [Facebooker-talk] when i call fb_name return no method error In-Reply-To: References: Message-ID: my code: <%= fb_name("504532317") %> it show nothing On Tue, Oct 20, 2009 at 12:29 PM, pei wang 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 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 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 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 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 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: From mmangino at elevatedrails.com Tue Oct 20 12:38:17 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 20 Oct 2009 12:38:17 -0400 Subject: [Facebooker-talk] when i call fb_name return no method error In-Reply-To: References: Message-ID: 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: > > <%= fb_name("504532317") %> > it show nothing > > On Tue, Oct 20, 2009 at 12:29 PM, pei wang 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 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 > 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 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 > 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 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: From ouwind at gmail.com Fri Oct 23 10:41:30 2009 From: ouwind at gmail.com (pei wang) Date: Fri, 23 Oct 2009 22:41:30 +0800 Subject: [Facebooker-talk] when i call fb_name return no method error In-Reply-To: References: <91C50FA0-61E7-49A5-877A-8E2D47B55562@elevatedrails.com> Message-ID: 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 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 > 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 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 >> >> 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: >> >>> <%= fb_name("504532317") %> >> >>> it show nothing >> >>> >> >>> On Tue, Oct 20, 2009 at 12:29 PM, pei wang 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 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 >> 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 >> 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: From mmangino at elevatedrails.com Fri Oct 23 11:15:54 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 23 Oct 2009 11:15:54 -0400 Subject: [Facebooker-talk] when i call fb_name return no method error In-Reply-To: References: <91C50FA0-61E7-49A5-877A-8E2D47B55562@elevatedrails.com> Message-ID: <641AF75A-9D42-475D-9357-8B19DF954B54@elevatedrails.com> 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 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 > 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 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 > > > 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 > >> 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: > >>> <%= fb_name("504532317") %> > >>> it show nothing > >>> > >>> On Tue, Oct 20, 2009 at 12:29 PM, pei wang > 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 > 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 > > >>>>> 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 > 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 > > >>>>>>> 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 > 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: From ouwind at gmail.com Sun Oct 25 03:06:53 2009 From: ouwind at gmail.com (pei wang) Date: Sun, 25 Oct 2009 15:06:53 +0800 Subject: [Facebooker-talk] when i call fb_name return no method error In-Reply-To: References: <000F7DA9-742C-4344-B834-677F87375A93@elevatedrails.com> <3266C873-B06C-4BEB-BD13-FCC71D3DC726@elevatedrails.com> <95469F2F-9A86-4610-8A31-CD2BF2C4B1FA@elevatedrails.com> Message-ID: 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 wrote: > get it > > > On Sat, Oct 24, 2009 at 1:02 AM, Mike Mangino 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:* >>> >>> >>> >>> >>> Products: <%= controller.action_name %> >>> <%= stylesheet_link_tag 'base' %> >>> >>> >>> >>> <%= 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') %> >>> >>> >>> >>> >>> 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 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 >>>>> >> 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: >>>>> >>> <%= fb_name("504532317") %> >>>>> >>> it show nothing >>>>> >>> >>>>> >>> On Tue, Oct 20, 2009 at 12:29 PM, pei wang >>>>> 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 >>>>> 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 >>>>> 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 >>>>> 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: From mmangino at elevatedrails.com Mon Oct 26 08:57:29 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Mon, 26 Oct 2009 08:57:29 -0400 Subject: [Facebooker-talk] when i call fb_name return no method error In-Reply-To: References: <000F7DA9-742C-4344-B834-677F87375A93@elevatedrails.com> <3266C873-B06C-4BEB-BD13-FCC71D3DC726@elevatedrails.com> <95469F2F-9A86-4610-8A31-CD2BF2C4B1FA@elevatedrails.com> Message-ID: 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 wrote: > get it > > > On Sat, Oct 24, 2009 at 1:02 AM, Mike Mangino > 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 > > 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: >>> >>> >>> >>> >>> Products: <%= controller.action_name %> >>> <%= stylesheet_link_tag 'base' %> >>> >>> >>> >>> <%= 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') %> >>> >>> >>> >>> >>> On Fri, Oct 23, 2009 at 10:55 PM, Mike Mangino >> > 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 >>> > 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 >>>> 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 >>> > >>>> > 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 >>>> >> 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: >>>> >>> <%= fb_name("504532317") %> >>>> >>> it show nothing >>>> >>> >>>> >>> On Tue, Oct 20, 2009 at 12:29 PM, pei wang >>>> 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 >>>> 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 >>> > >>>> >>>>> 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 >>>> 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 >>> > >>>> >>>>>>> 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 >>> > 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: