Coder Social home page Coder Social logo

Comments (5)

sachin-handiekar avatar sachin-handiekar commented on June 7, 2024

Hi,

You can find a sample usage of jInstagram at https://gist.github.com/3971607

To run this, create a new Instagram client and register the following
callback url :

http://reveal-it.appspot.com/oauthtest

After that use the clientId and clientSecret in the code.

Let me know if you need any help.

Regards,
Sachin

On Mon, Oct 29, 2012 at 4:25 AM, Jefferson [email protected] wrote:

Hello everyone

I'm trying to use jinstagram I check the wikihttps://github.com/sachin-handiekar/jInstagram/wiki/jInstagram-Usageand the README.md.
I follow the usage (replace the values for necessary ones) and I get this
error

Exception in thread "main" org.jinstagram.auth.exceptions.OAuthException:
Cannot extract an acces token. Response was: {"code": 400, "error_type":
"OAuthException", "error_message": "No matching code found."}
at org.jinstagram.auth.InstagramApi$1.extract(InstagramApi.java:53)
at
org.jinstagram.auth.oauth.InstagramService.getAccessToken(InstagramService.java:53)

Does someone help me with this?

Thank you


Reply to this email directly or view it on GitHubhttps://github.com//issues/5.

from jinstagram.

sachin-handiekar avatar sachin-handiekar commented on June 7, 2024

Also can you please post your code here.

from jinstagram.

jeffarrubla avatar jeffarrubla commented on June 7, 2024

Hello Sachin

The source you provide me works here is my source (I created a question in stackoverflow), but I have a doubt, I checked this code is for access to my user's data in instagram, if I want to make an app when people login with their own users, how do I do this?, the wiki doesn't have anything about this.

Thank you,
Regards

from jinstagram.

sachin-handiekar avatar sachin-handiekar commented on June 7, 2024

Hi,

Can you tell me how are you getting the verifier code? As you've to use the
verifier code in a single session. (So if you are running the main method
twice, it won't work as the verifier code gets changed if you run the main
method again).

As the verifier code you are sending to the Instagram server for
comparison, might be different. And that's why you might be getting this
exception.

The example I've send you shows the verifier code in the redirect-uri. And
you've to copy & paste the code in the console.

And for building application for other users, it's better to test it as a
web-app.

I might be having a sample web-app, will send you once I find it.

Regards,
Sachin

On Mon, Oct 29, 2012 at 10:47 PM, Jefferson [email protected]:

Hello Sachin

The source you provide me works here is my sourcehttp://stackoverflow.com/questions/13114538/org-jinstagram-auth-exceptions-oauthexception-when-i-try-to-connect-to-instagram(I created a question in stackoverflow), but I have a doubt, I checked this
code is for access to my user's data in instagram, if I want to make an app
when people login with their own users, how do I do this?, the wiki doesn't
have anything about this.

Thank you,
Regards


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-9877194.

from jinstagram.

jeffarrubla avatar jeffarrubla commented on June 7, 2024

Hello Sachin

Thanks for the quickly answer, I tested the example you give in the link
and it works perfectly, let me explain what i try to do, I'm building an
swing app, the user has to login with his/her instagram credential, the app
fills with instagram pictures, and then there is a manipulation of the
photos, to used locally, now I want to know how use jInstagram to take the
user credential an authenticate against instagram and get the user data (in
this case, photos).

I would like you can send me the app you told me.
Thank you

Regards,
Jefferson

On Mon, Oct 29, 2012 at 1:51 PM, Sachin Handiekar
[email protected]:

Hi,

Can you tell me how are you getting the verifier code? As you've to use
the
verifier code in a single session. (So if you are running the main method
twice, it won't work as the verifier code gets changed if you run the main
method again).

As the verifier code you are sending to the Instagram server for
comparison, might be different. And that's why you might be getting this
exception.

The example I've send you shows the verifier code in the redirect-uri. And
you've to copy & paste the code in the console.

And for building application for other users, it's better to test it as a
web-app.

I might be having a sample web-app, will send you once I find it.

Regards,
Sachin

On Mon, Oct 29, 2012 at 10:47 PM, Jefferson [email protected]:

Hello Sachin

The source you provide me works here is my source<
http://stackoverflow.com/questions/13114538/org-jinstagram-auth-exceptions-oauthexception-when-i-try-to-connect-to-instagram>(I
created a question in stackoverflow), but I have a doubt, I checked this
code is for access to my user's data in instagram, if I want to make an
app
when people login with their own users, how do I do this?, the wiki
doesn't
have anything about this.

Thank you,
Regards


Reply to this email directly or view it on GitHub<
https://github.com/sachin-handiekar/jInstagram/issues/5#issuecomment-9877194>.


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-9880762.

from jinstagram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.