instagram_graph_user_media& instagram_graph_user_profile权限仅适用于测试用户 [英] instagram_graph_user_media & instagram_graph_user_profile permissions working only for test users

查看:151
本文介绍了instagram_graph_user_media& instagram_graph_user_profile权限仅适用于测试用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个显示用户instagram媒体的应用程序(例如某些约会应用程序).

此外,我的应用已被成功审核以获取权限- instagram_graph_user_profile instagram_graph_user_media ,并且处于实时模式

但是在Facebook开发者控制台中, instagram图标没有变成绿色. 请参考屏幕截图. https://drive.google.com/open?id=1VnMHLqjTf1oRbvcm2g8Ol80Afa3

>

显示媒体的流程如下.

1.我的应用要求用户授权使用

https://api.instagram.com/oauth/access_token

带参数-client_id,client_secret,代码,grant_type,redirect_uri

3.从上述API收到令牌后,我便使用-

从短期令牌中请求了长期令牌

https://graph.instagram.com/access_token ?grant_type = ig_exchange_token& client_secret = xyz& access_token = abc

4.使用长期令牌,服务器使用API​​-

请求用户信息

https://graph.instagram.com/me?fields = id,username& access_token = abc

5.使用相同的长期令牌,服务器使用API​​发出请求以获取用户媒体-

https://graph.instagram.com/me/media?fields=id,media_type,media_url,用户名,标题,时间戳和access_token = abc

此流程仅适用于测试用户((已接受Instagram开发者平台测试员邀请的Instagram测试用户).

非测试用户尝试查看媒体时,在第3步中,我收到一条错误消息-

{错误":{ "message":不支持的获取请求.", "type":"IGApiException", 代码":100, "fbtrace_id":"A0A24rNXCScki9Ck-8J_55b"}}

我错过了什么吗?

这就是我查看我的业务API设置的方式. 请参考屏幕截图. https://drive.google.com/open?id=1Dfdihf20krEcYEmoh8z43_a1T5UQStXr >

在我的应用程序审查"部分下,我看不到任何需要再次审查的相关许可.

编辑1-

注意-我的应用程序处于beta模式(尚未在Play商店上发布). 这可能是原因吗?

解决方案

我刚刚经历了一个类似的过程,为我的应用做好了使旧API正式贬值的准备.我终于发现了这一点,希望对您有所帮助: https://developers.facebook.com/community/threads/2219648518091109/

批准您的应用后,您可以从业务经理那里获取合同.您需要在计算机上完成合同(移动电话无法工作),并且必须是该业务的管理员.

从您的业务经理中,您只需转到业务信息->业务合同( https://business. facebook.com/settings/info )

如果这个答案对您有帮助,请让我们其他人!"

感谢Juanu的分享!

I have an app that displays user's instagram media(like some of the dating apps).

Also, my app has been reviewed successfully for permissions - instagram_graph_user_profile and instagram_graph_user_media and is in live mode.

But in the Facebook Developer Console, the instagram icon is not turning up green. Please refer the screenshot. https://drive.google.com/open?id=1VnMHLqjTf1oRbvcm2g8Ol80AfB3JqMOg

Flow to display the media is as follows.

1. My app ask users to authorize using

https://api.instagram.com/oauth/authorize?client_id=instagram-app-id&redirect_uri=redirect_uri&scope=scope&response_type=code&state=state

2. Above api responds with a code.Then backend calls -

https://api.instagram.com/oauth/access_token

with params - client_id, client_secret, code, grant_type, redirect_uri

3. Once I receive token from above API, I request long lived token from short-lived token using -

https://graph.instagram.com/access_token?grant_type=ig_exchange_token&client_secret=xyz&access_token=abc

4. Using the long lived token, server requests user info using API -

https://graph.instagram.com/me?fields=id,username&access_token=abc

5. Using the same long lived token, server makes request to get user media using API -

https://graph.instagram.com/me/media?fields=id,media_type,media_url,username,caption,timestamp&access_token=abc

This flow works only for test users(Instagram test users who accepted invitation of being a tester in Instagram Developer Platform).

When non-test user tries to view media, on step 3, I get an error saying -

{ "error": { "message": "Unsupported get request.", "type": "IGApiException", "code": 100, "fbtrace_id": "A0A24rNXCScki9Ck-8J_55b" } }

Am I missing something?

This is how I see my Business API Settings. Please refer the screenshot. https://drive.google.com/open?id=1Dfdihf20krEcYEmoh8z43_a1T5UQStXr

Under my App review section, I do not see any relevant permission that needs to be reviewed again.

Edit 1 -

Note - My app is in beta mode (not yet live on play store). Could this be the reason?

解决方案

I just went through a similar process getting my app ready for the old API to officially depreciate. I finally found this— hope it helps: https://developers.facebook.com/community/threads/2219648518091109/

"After your app has been approved, you can get the contract from your Business Manager. You need to do it on a Computer (mobile wont work) and have to be an Admin on the Business.

From your business Manager you just go to Business Info -> Business Contract (https://business.facebook.com/settings/info)

Please, let us others if this answer helped you!"

Thanks to Juanu for sharing!

这篇关于instagram_graph_user_media& instagram_graph_user_profile权限仅适用于测试用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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