2014-02-25 45 views
5

我建立了一個混搭的APIInstagram的profile_picture安全網址

檢索調用由包括hashtag從Instagram的/嘰嘰喳喳/ Facebook的

API飼料。

我沒有任何問題,得到一個安全的網址

爲資料圖片爲Twitter和

的Facebook但對於Instagram的我做的。

我試着用:

http://images.ak.instagram.com/profiles/profile_251686283_75sq_1352714126.jpg https://images.ak.instagram.com/profiles/profile_251686283_75sq_1352714126.jpg

,但它不工作:(

UPDATE 我做

https://api.instagram.com/v1/tags/mycoolhashtag/media/recent?count=100&access_token=my_access_token 

API調用一世得到

http://images.ak.instagram.com/profiles/profile_251686283_75sq_1352714126.jpg 

,但我需要一個安全的網址,這

https://images.ak.instagram.com/profiles/profile_251686283_75sq_1352714126.jpg 

不起作用

我需要一個安全的網址,因爲所有的東西,在一個Facebook應用程序 與HTTPS因此運行協議,我沒有找到辦法得到它!

回答

0

修訂答:你不能只是決定開始使用HTTPS,並擁有一切妥當,如果在另一端的服務器不支持它,它看上去哪像在這種情況下,Instagram的不(其它比帳戶相關的操作如登錄&編輯配置文件)。

看來你必須找到從你的Facebook應用程序,這我不熟悉的都在作出這一呼籲的另一種方式,對不起

OLD答:不太清楚你在做什麼問,但是當我從Instagram獲取數據時,個人資料圖片始終爲HTTP URL。

例如:

"user": { 
     "username": "theserv", 
     "website": "", 
     "profile_picture": "http://images.ak.instagram.com/profiles/profile_239265119_75sq_1387243654.jpg", 
     "full_name": "Diane Alexandra", 
     "bio": "", 
     "id": "239265119" 
     } 

你是說,你不能訪問任何URL的,你貼?兩者都適用於我,但https會給出關於非安全內容的警告,可以理解地

+0

我已更新帖子,你同意它不是很清楚:) – Whisher

+0

看到更新的答案:) –

2

您可以使用他們的S3桶 - 酒廠。這不是CDN的一部分,但它會給出一個有效的SSL功能

https://distillery.s3.amazonaws.com/profiles/profile_183641024_75sq_1372016363.jpg

+0

這似乎不工作了。 – Francois

+0

是的,我同意它不再有效。看起來像Instagram封閉了他們的S3存儲桶的公共訪問。有趣的酒桶還在他們的文檔中:https://instagram.com/developer/endpoints/users/ – jwieland

+0

我前幾天給Instagram發電子郵件詢問這件事,至今我還沒有聽到。建議其他人也會聯繫Instagram,以便他們看到有這種需求。 – Francois

2

截至2015年9月,Instagram的/v1/users/{user-id}端點默認爲用戶的profile_picture返回HTTPS網址,服務於https://scontent.cdninstagram.com。你應該很好走!