Skip to main content
Solved

Why is the figma.fileKey showing as undefined?

  • January 14, 2023
  • 2 replies
  • 1159 views

Kevin_Jacob

Hey,

We have recently launched a plugin namely, DesignBud. The problem we are currently facing is that, Thefigma.fileKey works in development but return undefined in production. We have also set “enablePrivatePluginApi” to true.

Any ideas on how to resolve the issue? Thanks in advance.

Best answer by Gleb

Is this a public plugin or the one published only to your Figma Organization? If it’s the former, you can’t use private plugin APIs. They are private because they are only available to private plugins that are not shared on Figma Community publicly. There is no way to get the file key for a public plugin other than ask the user to paste the link manually.

View original

2 replies

Gleb
  • Power Member
  • 4706 replies
  • Answer
  • January 14, 2023

Is this a public plugin or the one published only to your Figma Organization? If it’s the former, you can’t use private plugin APIs. They are private because they are only available to private plugins that are not shared on Figma Community publicly. There is no way to get the file key for a public plugin other than ask the user to paste the link manually.


Saad_Hasan

This was ridiculous !! They should have enable this


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings