0

Visual Studio 2013 Preview で MVC 5 アプリケーションを作成しています。MVC アプリケーションに Twitter を統合したいと考えています。Package Manager の Twitter.Helper を使用しました。しかし、アプリケーションをブラウザで実行しても何も起こりません。Index.cshtml ファイルのコードは次のとおりです。

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

1 に答える 1

0

If you look in the browser console, you will see errors:

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

This means Twitter.Helper use old and deprecated Twitter API and should be modified to conform API changes. You could make it manually in file: MvcApplicationProject\App_Code\TwitterGoodies.cshtml

于 2013-09-10T13:35:43.797 に答える