gpt4 book ai didi

javascript - 用于 HTTPS 回调的 Instagram API

转载 作者:太空宇宙 更新时间:2023-11-03 13:07:29 24 4
gpt4 key购买 nike

我正在使用 Instagram 的订阅端点如果我的 callback_url 是 HTTPS,它会给我以下错误消息;如果 callback_url 是 HTTP,它工作正常;错误信息:

{
"meta": {
"error_type": "APISubscriptionError",
"code": 400,
"error_message": "Invalid SSL certificate"
}
}

PS:我看到了这个thread说“我认为这是因为我检查了 api.instagram.com 的 SSL 证书,它看起来没问题”;但我不知道他们到底在哪里检查 SSL 证书?我在 Instagram 开发者控制台中没有看到这个选项...

这是否意味着 callback_url 不能是 HTTPS?

知道如何解决吗?

最佳答案

您的回调 URL 可能是自签名证书。 Instagram 不支持自签名证书。

因此您必须为您的网站使用 HTTP 或获取 SSL 证书。

同时检查这个线程:https://groups.google.com/forum/?fromgroups=#!topic/instagram-api-developers/MaS4fjo8GXQ

Hey folks,

We've made a couple of changes recently that affected the realtime API, and we wanted to update you all:

1) We centralized some of our error tracking, which made our previous "blacklisting" rate limits too aggressive; we've identified this and have raised these errors, resulting in fewer false positives

2) We switched the library used for the POST requests, which had the side-effect of starting to enforce proper SSL certificates. If you've noticed a drop-off in realtime hooks, please double-check that your certificate is valid on your host. Going forward, this check will be made when creating subscriptions, too, so incorrect subscriptions won't be created.

3) Finally, we've updated the documentation to reflect that http://ec2-... URLs are often problematic (as we're on Amazon and they will often resolve locally) and we instead recommend using the public IP or an Elastic IP for that host.

Thanks, Mike

关于javascript - 用于 HTTPS 回调的 Instagram API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31165419/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com