Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

sachin-handiekar/jInstagram-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: This example is based on the legacy Instagram API and is not using the latest Graph API provided by Instagram. Please see the RestFB library for more details in using the new API (https://restfb.com/).

jInstagram-examples

#Basic Web Demo

Live Demo

jInstagram Web Demo

##How to use it

Note : Create a new client with the following redirect uri -

http://host.name/handleInstagramToken

e.x. http://localhost:8080/BasicWebDemo/handleInstagramToken/

  1. Import the maven project in your favourite IDE.
  2. Change the following lines in DemoAppContextListener.java (src/main/java/com/sachinhandiekar/examples/listener/)
        String clientId = System.getenv(Constants.CLIENT_ID);
        String clientSecret = System.getenv(Constants.CLIENT_SECRET);
        String callbackUrl = System.getenv(Constants.REDIRECT_URI);

to

        String clientId = "Your Client ID"
        String clientSecret = "Your Client Secret";
        String callbackUrl = "Your callback URL";
  1. Replace the clientId, clientSecret and callbackUrl with the values used during Client registration on Instagram Developer website.
  2. Build the project and deploy the war file in your web server.
  3. Open the following URL : http://localhost:8080/IGWebDemo/

About

Sign in with Instagram - A demo webapp showing signing in with Instagram.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published