gpt4 book ai didi

c# - 调用 Instagram "Follow peaple"API?

转载 作者:太空宇宙 更新时间:2023-11-03 14:59:26 29 4
gpt4 key购买 nike

当我发布此代码时:https://api.instagram.com/v1/users/{userid}/relationship?access_token={access_token} 或其他 Instagram Api

接收此按摩:

code = 400; "error_message" = "This request requires scope=relationships, but this access token is not authorized with this scope.

The user must re-authorize your application with scope=relationships to be granted write permissions."; "error_type" = OAuthPermissionsException;

如何使用范围,这是什么?我在 Instagram.Developer 上看不到任何示例

最佳答案

你应该设置你的身份验证范围

喜欢这段代码:

   protected void BtnLogin_Clicked(object sender, EventArgs e)
{
var client_id = ConfigurationManager.AppSettings["instagram.clientid"].ToString();
var redirect_uri = ConfigurationManager.AppSettings["instagram.redirecturi"].ToString();
Response.Redirect("https://api.instagram.com/oauth/authorize/?client_id="
+ client_id + "&redirect_uri=" + redirect_uri + "&response_type=code&scope=basic+likes+comments+relationships+follower_list+public_content ");

}

关于c# - 调用 Instagram "Follow peaple"API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46953307/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com