将Instagram Graph Api与永久页面访问令牌一起使用仅适用于某些帐户 [英] Using Instagram Graph Api with permanent page access token only works for some accounts

查看:142
本文介绍了将Instagram Graph Api与永久页面访问令牌一起使用仅适用于某些帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用永久性的页面访问令牌(

I try to fetch some images from an instagram business account through the instagram graph api by means of a permanent page access token (facebook: permanent Page Access Token?). These specific tokens seem to be the only possibility to get permanent access to the graph api for a server-side app.

另一方面,我在fb文档中发现了一个提示,即只有用户访问令牌才能用于访问instagram商业帐户.

On the other side I found a hint in the fb documentation that only user accesss tokens can be used to access instagram business accounts.

不支持页面访问令牌."

"Page access tokens are not supported."

https://developers.facebook.com/docs/instagram-api/overview/?locale = zh_CN

到目前为止,我一直在使用页面令牌没有任何问题,这很有趣.重置项目数据库并生成新令牌后,我观察到某些帐户无法提取数据,而其他帐户则没有问题.

Funny enough I was using page tokens so far without any problems. After resetting the database of my project and generating new tokens I observered that some accounts weren't able to fetch the data while others had no problems.

不支持的获取请求.ID为'XXX'的对象不存在,由于缺少权限而无法加载,或者不支持此操作."

"Unsupported get request. Object with ID 'XXX' does not exist, cannot be loaded due to missing permissions, or does not support this operation."

我有2个instagram帐户:1个正在使用页面访问令牌,而另一个则没有.因此,我在fb图资源管理器中对其进行了检查.使用用户访问令牌,两个帐户都没有问题.分别对两个帐户使用页面访问令牌,一个可以很好地进行查询,而另一个则不能.我创建的第三个帐户也有同样的问题.

I had 2 instagram accounts: 1 was working with page access tokens the other didn't. So, I checked it in the fb graph explorer. Using the user access token I have no problem with both accounts. Using the page access token respectivly for both accounts one is working fine for the query while the other isn't. A third account that I created has the same problem.

我尝试解决的问题:

  1. 从我的数据库中删除所有永久页面访问令牌,然后再次生成它们
  2. 通过fb图资源管理器工具手动生成永久页面访问令牌
  3. 将我的instagram帐户重新设置为个人帐户,然后再通过该应用重新设置为企业帐户
  4. 将我的instagram帐户重新设置为个人帐户,然后再通过facebook页面再次设置为企业帐户
  5. 创建一个新的instagram帐户和一个新的facebook页面进行连接(重复3.和4.)

我现在的问题:

  1. 我可以为instagram图表api使用永久页面访问令牌吗?
  2. 如果没有,我如何获得对instagram图表api的永久服务器端访问权限?

我现在在互联网和stackoverflow上搜索了好几天,然后变得疯狂,因为我似乎是唯一遇到此问题的人.因此,我的开发人员将非常感谢您的帮助.蒂亚.

I am now searching the internet and stackoverflow for days and getting crazy because I seem to be the only person experiencing this problem. So, help will be highly appreciated by my fellow developers. Tia.

推荐答案

从昨天开始,使用永久页面访问令牌时,一切仍然可以正常运行.好像fb解决了一个内部错误.但是,问题仍然存在,即是否可以普遍使用页面访问令牌,或者它本身仅仅是一个错误.

Since yesterday everything works fine again also when using the permanent page access token. Seems like fb resolved an internal bug. However, the question remains, if page access token can be used in general or if it is just a bug itself.

这篇关于将Instagram Graph Api与永久页面访问令牌一起使用仅适用于某些帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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