0

I am creating a MVC 5 application in Visual Studio 2013 Preview. I want to integrate Twitter in my MVC application. I have used Twitter.Helper from Package Manager. But when my application runs on the browser nothing happen. Here is my code in Index.cshtml file:

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

1 回答 1

0

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

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

于 2013-09-10T13:35:43.797 回答