App Directory SDK
Frequently Asked Questions
- Make sure there is no error on your app stream/plugin page.
- Make sure your app stream/plugin is using the correct hsp.js. Please use: https://d2l6uygi1pgnys.cloudfront.net/jsapi/0-6/hsp.js
- Make sure apiKey in hsp.init() is correct.
- Make sure receiverPath in hsp.init() is correct.
- Make sure your app receiver page shares the same domain as your app stream/plugin.
- If the Hootsuite dashboard is in SSL mode, make sure you have provided the correct secure iframe url in the app stream setting page. Make sure your app receiver URL is also using SSL. It is important that both hsp.js and app_receiver.js are loaded in https.
I am getting 'API Key: xxxxxxxxxxxxxxxxxxx is not correct, please check your app settings' error on the dashboard.
Make sure apiKey in hsp.init() is correct.
I am getting 'API Key: is not correct, please check your app settings' error on the dashboard.
Make sure apiKey in hsp.init() is not empty. If you use hsp.js in your popup or other iframe pages, make sure hsp.init() is not called again. The only hsp function that is legitimate to use outside app stream/plugin page is hsp.cloaseCustomPopup(apiKey, pid), and it doesn't require init.
After loading my app stream, I am getting this js error: 'Uncaught TypeError: Cannot call method 'appendChild' of null'.
Check your hsp.init function. Make sure it is called after the page is completely loaded. e.g. put the function inside $(document).ready().
How to use hsp function on my custom popup page?