From Instagram's documentation:
Instagram Basic Display is not an authentication solution. Data returned by the API cannot be used to authenticate your app users or log them into your app. If you need an authentication solution we recommend using Facebook Login instead.
A Facebook authentication provider is available from Microsoft.
services.AddAuthentication(options => /* Auth configuration */)
.AddInstagram(options =>
{
options.ClientId = Configuration["Instagram:ClientId"];
options.ClientSecret = Configuration["Instagram:ClientSecret"];
// Optionally return the account type
options.Fields.Add("account_type");
// Optionally return the user's media
options.Fields.Add("media_count");
options.Fields.Add("media");
options.Scope.Add("user_media");
})
None.
Property Name | Property Type | Description | Default Value |
---|---|---|---|
Fields |
ISet<string> |
The list of list of fields and edges to retrieve from the user information endpoint. | [ "id", "username" ] |