Chrome App for Chrome and Facebook Redirect URL

I have a Chrome Packaged app that I am now integrating with the Facebook API. The Javascript SDK for Facebook requires that I provide the URL of my application and for security reasons, they redirect only to this URL.

The problem is that the Chrome Packaged Application is missing a URL. I know chrome.extension.getURL , but this URL is not static, it changes for each installation. Is there a way to set the URL of a Chrome app that works for all installations?

+4
source share
1 answer

After publishing your application, the identifier from chrome.extension.getURL will not change. The identifier matches the key used to sign the extension, and after the extension is published to the web store, this key does not change. Developing locally will be more annoying since every time you "download the unpacked extension", it gets a new identifier.

+6
source

Source: https://habr.com/ru/post/1396459/


All Articles