iFrame SDK best practices
We strongly encourage developers to incorporate Hootsuite's look and feel into their Apps to the highest acceptable extent in order to maximize user experience. Apps that fit into Hootsuite's themes are most likely to leave a good impression with the user, which in turn contributes towards your App's success.
To make it easier for you to create a hoot-looking App, we have compiled a list of things that can be considered a QA guideline. We recommend to take note of the list below.
QA Guidelines
- Streams can be as narrow as 297px, including space taken by a scroll bar. On a Mac, for example, the scrollbar narrows that number down to 282px
- Keep vertical space taken by a single message low - a stream is supposed to show multiple messages. Implement content expansion/toggling where adequate.
- Message icons and headings should always open the same info popup with story/user/etc. details
- The time stamps below headings should always link out to the source article/discussion/etc.
- Clicking on a username or icon should always open a user info popup with user details
- Try to achieve as much functionality as possible through API functions (e.g. share to social networks via hsp.composeMessage)
- Implement 'infinite scrolling' while keeping a 'Show More' link at the bottom as a fall-back
- Suppress reloading of messages through refresh handlers (via hsp.bind) while the user interacts with the stream (e.g. posting messages, expanded details, possibly scroll position not near the top)
- Make your apps Web Accessible following WCAG 2.1 Level AA or higher
Testing Guidelines
Hootsuite goes through these tests for every submitted App. We suggest you work through this list yourself, which will speed up the review of your App submission.
| Test Area | Description |
|---|---|
| App Authentication | Use the Hootsuite SDK Single Sign On authentication when connecting the app to Hootsuite. User authentication with your app should be done using OAuth authentication flows. Authentication should be persistent from one session to another and will not expire until the user selects to “Disconnect.” |
| Logging In | When a user enters incorrect login details, a helpful error message will be displayed. Should the user not have an account, a link to Sign-Up should be included. |
| Multiple Account Support | User can logout and login as another user and can add multiple streams and authenticate each with a different account (for Apps logging in with Social Network credentials). |
| Settings Options | Settings menu must display the account that is logged in, and a logout button. Icon must be Settings cog icon. Settings menu can contain more options. |
| Hootsuite Look and Feel | Compare the app UI/UX with other apps in the App Directory, as well as Hootsuite's native streams. The App should use comparable font, icons, and style (please use the CSS and HTML assets from the sample code). App should also respect Hootsuite's resized stream views. |
| Accessibility Standards | We require SDK apps follow Web Content Accessibility Guidelines (WCAG) 2.1 so your apps are accessible to people with disabilities. |
| Hootsuite Button Functionality | Each button does what it is intended to do, and includes a Tool Tip. |
| Bio Modal Pop-up for Twitter, Facebook, and Instagram users | Clicking on the avatar or username for a Twitter, Facebook, or Instagram handle opens up a bio modal popup. |
| Share and Ow.ly Shortener | Clicking on share arrow will open compose message box with pre-populated content, and URLs will be shortened to ow.ly. |
| Retain User Settings | The App will retain any user settings saved in the stream from one session to another. Our preference is that you use the hsp.saveData and hsp.getData methods. |
| Stream refresh + suppress reloading of messages | Fires when app column is refreshed by user in-stream, or as part of a dashboard refresh. Suppress reloading of messages through refresh handlers (via hsp.bind) while the user is interacting with the stream. |
| Support Infinite Scroll | Provide the next set of messages/updates when user scrolls down, without needing to click a "Load More" button. |
| Timestamp information + clicks | Timestamp reflects users timezone, and timestamp clicks will open source content in a new browser tab. |
| Display Username in App Header | Username/Email of logged in user is displayed in the App Header (the top bar of an App Stream). |
| Performance and App Loading Time | App should load fast (ideally <2 seconds per action). |
| App Logo | Use a vector based image with transparent backgrounds for the 16x16, 30x30, and 256x256 icons. |
| Fully HTTPS Compliant | The Hootsuite dashboard is a forced SSL connection. The app will be fully HTTPS compliant and will not generate any security breaking errors or warnings. Hootsuite can provide an image proxy service on request. |
| No Console Messages | App should not display any Error, Warning, Info, or any other messages in the console. |
| Browser Compatibility | This includes current releases and the prior two versions of: Google Chrome, Firefox, and Safari. Internet Explorer support for IE11 only. |