OnDevice Instagram - User Manual
OnDevice Instagram - User Manual
1 Overview 2
1.1 Features .......................................................................................................... 2
2 Prerequisites 3
2.1 Application Registration................................................................................... 3
2.2 Creating Sandbox Users ................................................................................. 8
2.3 Phone Setup ..................................................................................................10
3 Activity Configuration 11
3.1.1 Sample script .................................................................................11
3.1.2 Instagram Logon ............................................................................11
3.1.3 Instagram .......................................................................................11
3.1.4 Instagram Logoff ............................................................................12
5 Highlights 15
5.1 Limitations .....................................................................................................15
5.2 Potential Issues .............................................................................................15
1 Overview
1.1 Features
Features Description
2 Load Feeds Load the Instagram feeds of the account logged on with. The
operation is considered success if any feeds is successfully
retrieved. Any photos related to the feeds will be downloaded.
3 Search By Hashtag Search for recently tagged media based on the hashtag
provided. The operation is considered success if any feeds
related to the hashtag is successfully retrieved. Any photos
related to the feeds will be downloaded.
2 Prerequisites
2.1 Application Registration
In order to perform Instagram testing, first you need to register your app with Instagram
to get the app/client id.
First, make sure a valid email account is available. Create one if necessary.
Then register an Instagram account using the Instagram app on your Android device
and a valid email address.
Once you have a valid Instagram account, browse to the Instagram developer website
and logon at https://www.instagram.com/accounts/login/?next=%2Fdeveloper%2F.
After logging on, at the Instagram developer website, click on the ‘Register Your
Application’ button.
You will be asked to sign up as a developer if this is the first time you are trying to register
an app. Input your/company website, your phone number and a brief description on the
purpose of the developer registration. For example, you may input ‘Android app with
Instagram integration’ as the registration purpose.
At the ‘Manage Clients’ page, click on the ‘Register a New Client’ button.
At the ‘Register new Client ID’ page, in the ‘Details’ tab, fill in the form. The application
name can be anything as long as it does not contain the word ‘Instagram’, ‘IG’, ‘Insta’ or
‘gram’. You may input ‘Android app with Instagram integration’ as the registration
purpose.
You may skip the ‘Company Name’, ‘Privacy Policy URL’ and ‘Contact Email’ fields.
Make sure the redirect URI is a valid public URI that is accessible through the
internet as this will be used during the logon operation.
In the ‘Security’ tab, untick the ‘Disable implicit OAuth’ checkbox. Finish registration by
clicking on the ‘Register’ button.
Upon successful app/client registration, click on the ‘Manage Clients’ menu. Here it will
show the details of the created app/client. The client id and redirect uri will be used
during the logon operation.
Click on the ‘Edit’ button and then the ‘Sandbox’ tab to start adding sandbox users.
Input an account that you want to add as a sandbox user and click the ‘Save Changes’
button. The account’s sandbox user status will be in ‘pending’ status until the user
accepted the invitation to become a sandbox user for the app/client.
Logon using the account that the invitation to be added as sandbox user was sent to. At
the Instagram developer page, click on the ‘Sandbox Invites’ menu. Fill in the form to be
registered as a developer. For example, you may input ‘Integration testing with sandbox
account’ for the registration purpose.
Finally, click on the ‘Accept’ button to accept the sandbox invite. Now, the account is
ready to be used with Instagram service.
3 Activity Configuration
3.1.1 Sample script
Test script Sample screen shot
Instagram.tsc
Redirect URL Redirect URL of the app with the client id being used. It must be a
valid public URL that is accessible through the internet.
Network Access Timeout Maximum wait time for the device data connection up.
3.1.3 Instagram
Performs a user action while logged on to an Instagram account.
Be aware that the data fetched by the load operations is not saved and cannot be
inspected in TEMS Investigation.
It is not possible to run multiple Instagram activities concurrently using a Parallel
construct.
Property Description
Network Access Timeout Maximum wait time for the device data connection up.
Tr-1 Send logon request First HTTP request sent to Instagram server.
Logged on to Instagram Received Instagram session opened status with a valid access
Tr-2
token
Send operation request First HTTP request sent to Instagram server on the dedicated
Tr-3
endpoint.
Tr-6 Logged off from Instagram Received Instagram session closed status.
4.2 Events
Events Description
Instagram Logon Duration Logon finished when active session with valid access token is opened.
Instagram Logoff Attempt Close and clear token information sent from OnDevice Instagram Service.
Instagram Operation Success Ratio Success rate for Instagram Operations (all types of user actions taken
together).
5 Highlights
5.1 Limitations
Limitations
2 NOT support to run in parallel with any activity that uses HTTP protocol.
3 A limit is imposed on the logon frequency. After logging off from Instagram, you must wait least
30 seconds before logging on again, otherwise the logon will fail. In case of failure, wait at least
10 minutes before retrying.
There are also limits on the frequency of posting, as detailed here:
https://instagram.com/developer/limits.
4 A sandbox account is only allowed to make 500 API calls per hour.
5 A sandbox account can only retrieve data from other sandbox users that are tied to the same
app/client id.
1 Instagram Logon operation is tightly coupled with the Instagram Logon request flow. Any changes
made on the flow or request parameters will break the Instagram Logon functionality.