网络应用程序的正确instagram身份验证方法(没有instagram帐户的用户)
correct instagram authentication method for web applications (users without instagram account)
我想在我的婚礼网站上显示所有带有特定标签的instagram图片,与发布它的用户无关,也不要求我的网站用户登录instagram(他们不能有instagram帐户!)。什么是最好和正确的方法?
我现在在做什么:
1) 我在我的个人instagram"管理客户"部分配置了一个新客户"婚礼"。
2) 我有一个令牌调用MANUALLY(我的意思是在我的个人浏览器中复制并通过一次url)以下url:
https://api.instagram.com/oauth/authorize/?client_id=client_id_of_my_client_wedding&redirect_uri=redirect_uri_of_my_client婚礼&response_type=令牌
并在Instagram登录弹出窗口询问后使用我的个人帐户登录Instagram
3) 我在我的html页面中添加了以下javascript:
<script>
function myinstagramfunction (json_object)
{
// I fetch here the json object that contains the info of all the pictures returned
}
</script>
<script type="text/javascript" src="https://api.instagram.com/v1/tags/<my_wedding_tag>/media/recent?access_token=<token_retrieved_in_step_2>&callback=myinstagramfunction"/>
第二个脚本使用JSONP(带填充的JSON)对instagramapi执行跨域调用,并调用我的本地函数"myinstagramfunction"。
问题:
a) 这是正确的方法,也是instagram官方建议/允许的方法吗?
b) 当前客户端Wedding配置为"沙盒模式"。你是否建议将其提交给instagram审批,或者我的程序中是否有不允许的内容?
请告诉我!
谢谢
Davide
类似https://lightwidget.com/不符合你的需求?
无需编码技能,只需复制粘贴即可。。我认为这应该适用于除草网站。
编辑:
好吧,试试这个方法:
function myinstagramfunction (json_object)
{
// I fetch here the json object that contains the info of all the pictures returned
console.log("OK");
}
$.ajax({
type: "GET",
dataType: "jsonp",
url: 'https://api.instagram.com/v1/tags/YOUR_HASHTAG/media/recent?access_token=YOUR_ACCESS_TOKEN_HERE&callback=myinstagramfunction',
success: function (result) {
console.log(result);
}
});
请记住,Instagram api调用有速率限制。
- 有没有任何方法可以将控制器从文件加载到ui路由器$stateProvider中
- D3在一个调用中绘制不同的SVG形状,没有可见性
- 我的jQuery插件参数没有正确启动,遇到了问题
- 视频HTML没有'无法在Internet Explorer 11上工作
- Firebase迁移-简单的Firebase.set没有'不再工作了——旧的还是新的
- 节点Js:How to catch a“;没有这样的文件或目录“;读取线模块出错
- document.open/document.write没有正确地清除chrome中的文档——这是chrome的错误吗
- angular.js没有'无法在PhoneGap中处理视图标记
- 有没有一种方法可以添加相同的项目val=“0”;4〃;到JavaScript中数组的每个对象
- 有没有一种方法可以防止img get请求使用css或js发生
- Javascript,有没有一种方法可以将数组写成没有逗号或空格的单个文本字符串
- 网络应用程序的正确instagram身份验证方法(没有instagram帐户的用户)
- Instagram实时更新没有回应
- Instagram API没有在一个请求中提取所有数据
- 试图在Instagram的Instafeed脚本上加载更多的按钮,但事实并非如此;t在我的网站上没有回应
- 我可以在没有访问令牌的情况下从instagram照片中获取所有评论吗?
- Instagram API和导入照片没有服务器端认证
- 有没有办法删除照片与Instagram的API
- Instagram api没有返回我的以下列表
- Instagram-有可能获得用户'最近的媒体没有登录