Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(instagram): oauth provider #298

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

sandros94
Copy link
Contributor

Resolves #193

This both upgrades the Instagram provider to use the new login system (only business and creator accounts are allowed), as well as adds some typing and better error data.

The two most important upstream documentation are:

  1. here for creating a meta app.
  2. here for details on what fields to use for retrieving specific user's data
  3. here for more advanced scoped access to authorize for things like messages and content management.

Note

Currently I left as default my original user's fields:

config.fields = config.fields || ['id', 'username']

But there is a not-so-clear difference between id and user_id:

  • id refers to the user's id within your current Meta application.
  • user_id refers to the actual Instagram's unique user id.

@atinux WDYT? Should I change the default to be user_id or leave id as a general purpose?

Copy link

pkg-pr-new bot commented Dec 3, 2024

Open in Stackblitz

npm i https://pkg.pr.new/atinux/nuxt-auth-utils@298

commit: 0de4f13

@atinux atinux merged commit 192e0e7 into atinux:main Dec 9, 2024
4 checks passed
@atinux
Copy link
Owner

atinux commented Dec 9, 2024

Let's go with id and see if people asks for user_id

Thank you for working on it @sandros94 !

@sandros94
Copy link
Contributor Author

Let's go with id and see if people asks for user_id

Sounds good

Thank you for working on it @sandros94 !

With pleasure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new Instagram API
2 participants