2012-02-03 6 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를 트위터 플러그인을 사용하고 있습니다 내 Spotify를 열면 아무 것도 표시되지 않습니다. app,하지만 브라우저에서 index.html 파일을 열면 트윗이 표시됩니다. 내가 뭘 놓치고 있니?

답변

2

RequiredPermissions JSON에는 쉼표가 필요합니다.

시도 : 매니페스트에 문제가있는 경우

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

상황이 자동으로 실패. 항상 JSON linter (http://jsonlint.com/)를 사용하여 최소한 적절한 형식의 JSON인지 확인하십시오.

업데이트 : manifest.json을 변경 한 후에는 Spotify를 다시 시작해야합니다.

+0

고마워요! 나는 이것을 업데이트하고, 린터를 통해 그것을 돌렸고, 여전히 표시되지 않았다. 그런 다음 Spotify를 다시 시작했는데 성공했습니다! –

+0

manifest.json에서 변경 한 후 Spotify를 다시 시작해 주셔서 감사합니다. – Falle1234