繁体   English   中英

Twitter整合

[英]Twitter Integration

我正在Visual Studio 2013预览中创建MVC 5应用程序。 我想将Twitter集成到我的MVC应用程序中。 我已经使用了Package Manager中的Twitter.Helper。 但是,当我的应用程序在浏览器上运行时,什么也没有发生。 这是我在Index.cshtml文件中的代码:

<div class="span4">
    <h2>My Profile</h2>
    @TwitterGoodies.Profile("Sandeep Sharma")
</div>

如果您在浏览器控制台中查看,将会看到错误:

TWITTER WIDGET: The Twitter API v1.0 is deprecated, and this widget has ceased functioning. widget.js:1
TWITTER WIDGET: You can replace it with a new, upgraded widget from <https://twitter.com/settings/widgets/new/user?screen_name=ranganh> widget.js:1
TWITTER WIDGET: For more information on alternative Twitter tools, see <https://dev.twitter.com/docs/twitter-for-websites> widget.js:1

这意味着Twitter.Helper使用旧的和已弃用的Twitter API,应进行修改以符合API的更改。 您可以在以下文件中手动创建它: MvcApplicationProject\\App_Code\\TwitterGoodies.cshtml

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM