Coder Social home page Coder Social logo

Comments (33)

lukhnos avatar lukhnos commented on August 16, 2024

Check the callback URL in your API key settings. If you're using the latest version of ObjectiveFlickr, the callback URL should already be using the new callback scheme (in which you pass the callback URL as part of token request process). So you want to double check if you have setup the URL and URL handling correctly.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

Can you please explain in detail. I removed the callback url from the app settings. But still I have the issue.

Thanks,
Swetha.

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

You have to set up your API key so that it's a "web app", with the callback URL being snapnrun://auth, because that's what SnapAndRun can handle. The app registers with iOS device/simulator the snaprun:// URL scheme.

You also want to set breakpoint/log the URL handler in the app so see if the URL does get invoked.

Another way to test is simply type snaprun://auth?12345 and see if the app launches.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

The app is launching for me, but after the launch the message always says authenticating.
I was able to login and grant permissions and directed to app, but in the app the message is always at authentication.

I am unable to pull images as the pull images is locked.

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

What do you mean by "pull image is locked"? Do you mean the "Pick Picture" button?

You may need to supply screenshots to let people know what was exactly happening to the app you're running.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

Yes the "Pick Picture" button is not working and the status of authorize is "authorizing".....
I am attaching the screenshots of my workflow.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

Sorry I am unable to attach screenshots. Below is the list of actions that I am performing.

  1. Open app. Click on login.
  2. The app is being directed to flickr website where I login and grant permissions.
  3. After the login the app is being reopened. But the "Pick picture" button is not working....and the status stays at "Authorizing".

Thanks,
Swetha.

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

Are you using the latest version of ObjectiveFlickr? Can you post the git version hash you're using? (e.g. 734c8ed) ?

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

I am using this 734c8ed.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

I downloaded from https://github.com/lukhnos/objectiveflickr and I am testing on simulator. I am not sure if that makes any difference. I would greatly appreciate if you could email me with a working api key.

My email address is: [email protected]

Any help is greatly appreciated as I need to finish it by today.

Thanks,
Swetha.

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

Which version of iOS SDK / Xcode are you using?

Also, can you set breakpoint / do logging on this method (just search to find the files) to see if they're ever called?

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

I am using xCode version Version 3.2.3.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

I tested with breakpoint....the below function is not being called:

  • (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

How do I fix the issue, so that the above function is called. I greatly appreciate any help.

Thanks,
Swetha.

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

Double check in your API key settings on Flickr, you have

(1) App type: web application
(2) Callback URL: snapnrun://auth? (you need the ending question mark too)

I tested with Xcode 4 and it works well with iPhone Simulator 4.3.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

Yes I have the callback url as "snapnrun://auth?", but still its not working. Sorry to ask this can I get your api key details if its ok with you.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

In the app there is code line which says: NSString *SRCallbackURLBaseString = @"snapnrun://auth";
should I change anything in this.

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

Also, which version of iOS SDK are you targeting?

That's all the API key details I can reveal. Another thing you want to try is to delete SnapAndRun on your device/simulator, and restart everything (Reset Content on Simulator also works). Sometimes the Springboard gets confused on the app URL settings.

If that still doesn't work, you want to type the URL manually on Mobile Safari (say snap run://auth?12345) and make sure the method I mentioned above gets called. If that doesn't get call, there's something wrong with your dev system, and that's the first thing you have to figure out (write another simple app without ObjectiveFlickr to see what really happens, etc.) That's all I can think of.

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

You should never reveal your API key and secret in public forum. I have removed your latest comment.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

Ok thanks for all your help....will let you know how it goes.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

I am targeting on os 3.0 and higher.

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

Try targeting to 4.3 first. There might be some difference in the URL handling mechanism.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

should the callback url be snapnrun or snap run or snapAndrun

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

See above, it's snapnrun://auth?

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

The IOS target is 3.0 on my xcode...do you think I have to upgrade my sdk.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

Do you have older version of this code which works on 3.0.

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

Check out the older version of ObjectiveFlickr (like two months ago). The older version uses the older Flickr auth API, which will be phased out earlier next year.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

Thank you. One last question what is the method to pull the photo stream from my flickr account.

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

You want to look up http://www.flickr.com/services/api/flickr.photos.search.html

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

Hi,

I tried to use this api http://www.flickr.com/services/api/flickr.photos.search.html, but this api is giving me all the public photos. Can you please let me know how to pull a user private albums and photos after oauth login.

Thanks,
Swetha.

from objectiveflickr.

lukhnos avatar lukhnos commented on August 16, 2024

If you're calling the API as an authenticated user, you'll be able to get the private photos.

I suggest you use http://www.flickr.com/groups/api for general API questions.

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

Thanks

from objectiveflickr.

sweetie85 avatar sweetie85 commented on August 16, 2024

Hi,

Is there a way to open flickr authentication url in uiwebview and not in safari. I created a webview and when I click authorize button the flickr is being opened in webview, but its not being closing uiwebview after authorization.

I think its because of the callback url. Can you please suggest what should I do to close the webview automatically after authentication.

Thanks,
Swetha.

from objectiveflickr.

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.