没有HTTPS的图形API访问 [英] Graph API Access without HTTPS
问题描述
我们有一个在我们的制作中使用HTTPS运行的Facebook应用程序,它运行正常。
对于同一个应用程序,我们有一个开发/阶段设置但没有HTTPS。
到2012-02-23,服务器都运行正常。
现在我们在开发/舞台服务器上的应用程序抛出以下错误:
We have a Facebook app running on our production having HTTPS and it works fine. For same app we have a development/stage setup but don’t have HTTPS. Till 2012-02-23, both the server works fine. Now our app on development/stage server throws below error:
-
CurlException:28:connect()超时!
CurlException: 28: connect() timed out!
警告:file_get_contents(https://graph.facebook.com/me?access_token = ...):无法打开流:连接超时
Warning: file_get_contents(https://graph.facebook.com/me?access_token=...): failed to open stream: Connection timed out
我有疑问:
-
是否必须使用HTTPS与Graph API进行通信?
Is it mandatory to have a HTTPS to communicate with Graph API?
或者,Facebook会将IP列入黑名单 - 如果是这样,如何制作IP白名单?
Or, Facebook does blacklisting of IP – if so how to make IP white list?
提前致谢...
推荐答案
- 是的,如果传递访问令牌(大多数API调用都需要),则必须使用HTTPS
- 可能,但更有可能是你身边的防火墙问题 - Facebook会接受连接但会返回错误信息,但你甚至没有连接到Facebook
这篇关于没有HTTPS的图形API访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!