Google 好友连接 - 关于 API 和 .net 变量的简单问题
我想将登录人员的 Person.Field.ID 号码存储在 .aspx .net 变量中,以便我可以在 VB 脚本中使用它。我正在我的网站上使用登录小工具。我该怎么做?
I want to store the Person.Field.ID number of a logged-in person in a .aspx .net variable so that I can use it in a VB script. I am using the sign-in gadget on my site. How do I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 .NET OpenSocial 客户端库 和 C# 端口 href="http://chow-down.appspot.com/" rel="nofollow noreferrer">吃东西。这将是在 .NET 中提取当前查看器的 GFC ID 的两种替代方法,但如果您想使用它,您可能必须将后者从 C# 转换为 VB.NET,因为它不是共享库。不幸的是,我认为客户端库在编写时并未考虑到 Google 朋友群,因此更简单的
fcauth
方法可能不可用。您必须完成双腿 OAuth 流程。我假设客户端库支持这一点,因为它是 Java 版本的端口,确实如此。如果这一切听起来太复杂,而您真正需要的只是 ID,您可以通过简单的 Ajax/XHR 调用将其传回。以下是用于获取 ID 的 JS API 调用:
更新:您可能还对 Brian Clifton 刚刚发布的项目感兴趣:friendconnect-dotnet
Check out the .NET OpenSocial client library and the C# port of the Chow Down. These would be two alternate methods for pulling in the GFC ID of the current viewer in .NET, though you'd probably have to translate the latter from C# to VB.NET if you wanted to use it, since it's not a shared library. Unfortunately, I don't think the client library was written with Friend Connect in mind, so the simpler
fcauth
method probably isn't available. You'll have to go through the 2-legged OAuth process. I assume the client library supports this, since it's a port of the Java version, which does.If all that sounds too complicated, and all you really need is the ID, you might just pass it back with a simple Ajax/XHR call. Here's the JS API call for getting the ID:
Update: You may also be interested in the project that Brian Clifton just released: friendconnect-dotnet