2012-02-03 13 views
1

私は現在のアーティストの演奏からのつぶやきを表示する小さなSpotifyアプリを構築しています。インデックスファイルからhttp://code.bocoup.com/jquery-twitter-plugin/ツイートをSpotifyアプリにプル

manifest.jsonを

{ 
    "BundleType": "Application", 
    "AppIcon": { 
     "18x18": "tutorial.png" 
    }, 
    "AppName": { 
     "en": "News" 
    }, 
    "SupportedLanguages": [ 
     "en" 
    ], 
    "RequiredPermissions": [ 
       "http://twitter.com" 
       "http://*.twitter.com" 
       "http://*.twimg.com" 
    ], 
    "VendorIdentifier": "com.News", 
    "RequiredInterface": "1", 
    "BundleVersion": "0.2", 
    "BundleIdentifier": "News", 
    "AppName": "News", 
    "AppDescription": "Twitter updates from the Artist playing." 
} 

<script type="text/javascript"> 
    $(document).ready(function() { 
     $('#tweets').twitter({from: 'mediatemple', replies: false}) 
     launch(); 
    }); 
    </script> 

</head> 

<body> 
<div id="info"> 
</div> 
<div id="news"> 
</div> 
<div id="tweets"> 
</div> 
</body> 

私はつぶやきを取得し、表示するBocoupのjQueryのTwitterのプラグインを使用していますSpotifyで私が私を開いたときに何も表示されないapp。しかし、ブラウザでindex.htmlファイルを開くと、ツイートが表示されます。私は何が欠けていますか?

答えて

2

必須のパーミッションJSONにはコンマが必要です。

試み:マニフェストに問題がある場合

"RequiredPermissions": [ 
      "http://twitter.com", 
      "http://*.twitter.com", 
      "http://*.twimg.com" 
], 

物事は静かに失敗します。 JSONリンター(http://jsonlint.com/)を使用して、少なくともフォーマットが適切なJSONであることを確認してください。

更新:manifest.jsonを変更した後は、Spotifyを再起動する必要があります。

+0

ありがとうございました!私はこれを更新し、リンターを通してそれを実行し、まだ表示されていませんでした。その後、私はSpotifyを再起動し、機能しました! –

+0

manifest.jsonで変更を加えた後、Spotifyを再起動していただきありがとうございます – Falle1234

関連する問題