调用 Instagram "Follow peaple" API?

Calling Instagram "Follow peaple" API?

当我 Post 此代码时: 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 ");

    }