以下是我目前如何使用Facebook Javascript C# SDK (这是内存中的代码,但我认为它是准确的伪代码):
FbApp = new FacebookApp
Is FbApp.Session null?
No - they're logged into Facebook, pull profile from DB
Is profile null?
Yes - they aren't a member, ask for permission then save their FacebookId, Name, and Email
No - they're a member
Yes - they're not logged into Facebook真的就是这样。但是通过阅读the tutorial here,我想知道我是不是做错了什么?还是一种“坏”的方式?我已经以这种方式使用了大约3个月,没有出现任何问题。
我读到过其他人在Facebook更改身份验证API时遇到的问题,但我从来没有遇到过任何问题。自从我开始使用Facebook C# SDK以来,它已经更新了几次,但我还没有升级。
只是想确认一下,我正在做的事情是正常的,还是我正在走向“火车残骸”?
发布于 2011-04-06 20:59:44
我认为最好的方法是自己理解Facebook API ( http://developers.facebook.com/docs/reference/api/ )。使用库将对您有所帮助,但它会使您依赖于库。Facebook以其更改API的频率而闻名。因此,完全依赖于库可能会使您的工作更有压力(更糟糕的是,如果库需要很长时间才能更新)。
只是我的2分钱
https://stackoverflow.com/questions/5563298
复制相似问题