3

I've been following Stuart's tutorial at http://www.madebymany.co.uk/tutorial-for-restful_authentication-on-rails-with-facebook-connect-in-15-minutes-00523

and have been having a problem:

  • I get a NoMethodError in UsersController#link_user_accounts; Rails doesn’t seem to recognize “facebook_session”. I have facebooker installed and have successfully authenticated using the normal Facebook API methods.

Has anyone tried this before? Anyone know what might be wrong? It seems that somehow the Facebooker library isn't getting fully loaded...

4

2 回答 2

1

如果您尝试将 Facebook Connect 身份验证集成到您的应用程序中,我强烈建议您从 restful_authentication 切换到Authlogic。它有一个插件,可让您轻松访问 Facebook Connect。

您可以在此处下载使用 Authlogic 的示例应用程序进行查看。

于 2009-07-30T20:33:43.407 回答
0

为了使 facebook-session 正常工作,所有文件都应该位于正确的域中。你有同一个域上的所有文件/库吗?

于 2009-03-27T09:21:59.837 回答