获取带标签的Instagram帖子的所有者(图形API)

时间:2018-08-21 07:32:53

标签: facebook-graph-api instagram instagram-api instagram-graph-api

使用新的Instagram Graph API,我试图获取已为我的Instagram帐户添加标签的帖子的counter = 0 # This line added for afile in glob.glob("*.txt"): file1 = codecs.open(afile, encoding='utf-8') line = file1.read() words = word_tokenize(line) words_without_stop_words = [word for word in words if word not in stop_words] new_words = " ".join(words_without_stop_words).strip() appendFile = open('subfolder/file1' + str(counter) + ".txt",'w', encoding='utf-8') # This line changed appendFile.write(new_words) appendFile.close() counter += 1 # This line added 字段。

这是我正在使用counter发出的请求:

owner

这是响应(缺少instagram_basic, instagram_manage_comments, instagram_manage_insights):

https://graph.facebook.com/v3.1/{userid}/tags?fields=id,owner

如果将owner添加到{ "data": [ { "id": "12345" }, { "id": "67891" }, ... ] } 中,我可以获得username,但如果可能的话,我想获得更多。文档指出应将其返回:https://developers.facebook.com/docs/instagram-api/reference/user/tags

0 个答案:

没有答案