呼叫从本地主机Instagram的API [英] Call Instagram API from localhost

查看:148
本文介绍了呼叫从本地主机Instagram的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时有可能得到的 Instagram的通过API用户详细信息从本地主机

Is it possible to get INSTAGRAM user details through API from localhost ?

由于我试图从本地主机,但不能这样做是为了获取信息。
点击登录网址后,它重定向我在 Instagram的并成功登录后,并授权应用得当重定向在我与code回调URL。但是,当我试图通过获取访问令牌信息(卷曲),那么它返回null。

Because I am trying to doing this from localhost but unable to fetch the information. After click the login url it redirect me to the INSTAGRAM and after successfully login and authorize the apps it redirect me properly in my callback URL with code. But when I am trying to fetch the info (cURL) using access token then it return null.

但在现场同一code运行完美。

But same code run perfectly in live.

推荐答案

最后,我解决了这个问题。现在我能够连接Instagram的。

Ultimately I resolved the problem. now I am able to connect INSTAGRAM.

我使用由伊恩·Luckraft http://ianluckraft.co.uk C $ cIgniter Instagram的图书馆$。
在配置文件中我只是改变了

I use the CodeIgniter Instagram Library by Ian Luckraft http://ianluckraft.co.uk. In config file I just change the

$配置['instagram_ssl_verify'] = FALSE;

$config['instagram_ssl_verify'] = FALSE;

在默认情况下它是真实的。

by default it was TRUE.

:))

这篇关于呼叫从本地主机Instagram的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆