2015-11-18 7 views
6

---------- EDITTED -----------------------Instagramアクセストークンが無効です

私は、 mはAPIに次のリクエストを送信しようとしている:

https://api.instagram.com/v1/tags/nofilter/media/recent?access_token=MY_TOKEN 

次のエラーapeear:

私はInstagramののセキュリティ画面を経由してアプリケーションの範囲を変更しようとしている
{"meta":{"error_type":"OAuthPermissionsException","code":400,"error_message":"This request requires scope=public_content, but this access token is not authorized with this scope. The user must re-authorize your application with scope=public_content to be granted this permissions."}} 

https://instagram.com/developer/clients/MY_CLIENT/edit/ )、このメッセージが表示されます:

We will start accepting Permissions Review submissions after Dec 3, 2016. 

---------- EDITTED -----------------------

私が取得しようとしています私のpythonアプリケーションを介してInstagram APIからのデータ。

{"meta":{"error_type":"OAuthAccessTokenException","code":400,"error_message":"The access_token provided is invalid."}} 

私のコードが添付されています:

def parseData(self,hashtag): 
     url = "https://api.instagram.com/v1/tags/" + hashtag + "/media/recent?client_id=" + self.CLIENT_ID 
     content = urllib2.urlopen(url).read() 
     data = json.load(content) 

私は新しい認証キーを取得しようとしましたが、私はInstagramのAPIへのHTTPリクエストを送信していたときに が、それは私に次のエラーを返します私も同じエラーがあります

+0

が、それは 'すべきではない "...?access_tokenは= access_tokenは最近"'? – JRodDynamite

+0

@JasonEstibeiro次のリクエストを試みましたが、同じエラーが返されます。https://api.instagram.com/v1/tags/hashtag/media/recent?access_token=self.CLIENT_ID – liorko

+0

アクセストークンをもう一度確認できますか?エラーは、トークンが無効であることを示します。 – JRodDynamite

答えて

4

アプリが11月17日以降に作成されるため、ライブに行く前に審査を受ける必要があります。レビューを提出するために

Apps created before Nov 17, 2015 will only be required to submit for review by June 2016. We recommend that you update your product and start the submission process sooner than later to avoid interuptions of service.

How to Submit for Permissions Review

Go to Manage Clients and select the app you'd like to submit for Permissions Review 
Click the Permissions tab 
Click the Start Submission button 
Describe the purpose of your application and how you intend to use each permission 
+5

私の場合、私のアプリはまだサンドボックスに入っています。サンドボックスでは動作しませんか? –

+0

注:「上を選択」とは、「編集」を押すことを意味します。 –

0

InstagramがAPIポリシーを変更しているようです。 2015年12月5日に新しいアプリケーションを登録することができます。

関連する問題