Setting up an x-callback url - iphone

I need to do this for the Soundcloud API and I have no idea what this is about or how to do it. There is a form on the Soundcloud API Developer website where you save your callback URL, but I'm not sure what sort of information I should input there.
Any help?

i believe this callback url is for oauth authentication, correct? i needed to do the same thing for twitter and ended up setting up a custom url scheme for my app (ie appname://oauth) and using this as the callback url.
in case you want to try this, see this article on how to launch your app via a custom url scheme. specifically for twitter, you can see jaanus's post on some implementation details and the github project.
while i haven't integrated with soundcloud, i did find that they have an objective-c api that you may want to check out if you aren't already here.
update
so what i mentioned is true - that you can use a custom url scheme and such to handle the authentication, but it's not exactly required. i found this article which outlines two methods for authentication - the first is for ios4 only and requires very little code. the second should work on 3.x and uses the custom url method i mentioned above (and outlines how to use it to authenticate).
so to answer your question once and for all, i suggest you:
look at this readme for the objective-c soundcloud api.
read this setup guide.
then read this usage guide.
check out this test iphone application.
hope this helps!

Related

How to check in using access token in Foursquare

I would like to integrate the "Foursquare check in" feature into my iOS application. I am able to fetch the Foursquare access token using UIWebView. But i am struggling to implement check in feature. I did searched lot in Google to implement check in feature using access token. I found the following tutorial Foursquare but this one didn't helped me to integrate in xcode
Please help me, in case you know how to implement check in feature in Foursqure. It would be really helpful
Thanks in anticipation!
Once you have an access token, the hard part is done! You can use the access token in either a call in a client library or you can make a direct HTTP POST request to our checkins/add endpoint. The URI should look like, before adding any other optional parameters:
https://api.foursquare.com/v2/checkins/add?oauth_token=ACCESS_TOKEN&venueId=VENUE_ID&v=20130822
Note that Foursquare also released native auth for iOS, which can make getting the access token even easier without having to use a UIWebView.
try this one:
Git Hub Demo Code

Launch Settings app using private api

Since opening Settings.app with a prefs:// URL no longer works in iOS 5.1+, I'm wondering if I can launch Settings using private APIs?
NOTE: Not for the app store.
Using Private APIs
GitHub Project iOS-Runtime-Headers
Here are iOS Objective-C headers as derived from runtime introspection.
The headers were generated using RuntimeBrowser for iPhone.
Of specific interest to the Settings app, take a look at the Preferences.Framework.
I've never worked with this directly, but there seems to be other SO questions on the topic:
iOS Private API Documentation
Does anybody know how I can find the the headers for IOS5 Iphones/ipod. Jailbreak development
Get a screenshot while App is in background? (Private APIs allowed)
More...
Using URLs
According to this answer on SO, it is no longer possible to manually launch the Settings app using URLs.
Asked Apple through my developer account if there is a way to programmatically launch the WiFi Settings dialog. Here is the response:
"Our engineers have reviewed your request and have concluded that there is no supported way to achieve the desired functionality given the currently shipping system configurations."
If, however, you are using the native Twitter or Facebook SDK, then a dialog will appear asking the user to login if they are not. More information from this SO question, with example image below.
I don't have a particular answer. However, I would build on previous answer about Facebook or Twitter. I think, it make sense to disassemble Twitter or Social framework and find where this dialog is shown. If you will find this place, you can check the code behind "Settings" button.
There should be some API which switches to Preferences. However, it could be that code which does it lives in some service component which has entitlement, which you won't be able to get.

can i integrate a wordpress blog into a facebook application

i was wondering whether i can incorporate wordpress blog into a facebook application so that i specify the Canvas URL to point to the blog's url.i haven't really tried it out,was just thinking about it.
2.if the answer is no,are there any other blogging platforms that allow this e.g blogger and the likes.thanks
Simply put yes although there are some things you need to be made aware of:
Facebook Applications now require a Secure URL, that is a URL that is accessed via HTTPS:// not the standard HTTP://
Facebook does not allow the use of custom Javascript and only allows you to implement the Facebook javascript SDK
Styling can be a bit of a pain. If your placing the application into a page then remember there are sizing (width) issues that you have to bear in mind.
Hope this helps out a little bit. If not here's an article I followed some time ago relating to your questions: http://www.hyperarts.com/blog/tutorial-add-an-iframe-application-to-your-facebook-fan-page-fall-2012/
Regards
Facebook Apps are simply just iFrames to another URL anywhere on the internet. You can put anything you want inside of this iFrame (within Platform Policy of course) and it will work. It won't bring you any additional functionality though, for that you'll need to start integrating plugins and APIs.

Do I need a library for Codeigniter to create a Facebook application?

Do I need an entire library to crate a Facebook app with Codeigniter? I have not made an app for Facebook before the the developer documentation looked simiple. Beyond using my "secret" id for my app what else would I need to do to send my output via my view back to the facebook canvas? Are things more complicated than they seem? Don't I just output to my view as normal except things go to the canvas? Thanks.
No, you do not need a library. You can make all requests to the Facebook Graph api using cURL or any other method to call urls. However using the Facebook PHP SDK does help, it has a lot of helper methods that you'll find useful, do check this link to the documentation for the sdk, it's helpful.Hope this answer helps you.
p.s: And yeah you just output to your view as any other web app
No, you do not need a library, but it will make the process much smoother and take care of a lot of baseline functionality that you will need.
You might checkout my post here to see exactly how to integrate the offical facebook SDK within a codeigniter application as a stand alone library...

Using oauth for creating twitter application in iphone

I am creating a twitter application in iphone using oauth. But my application request for:
oauth_consumer_key,
oauth_signature_method,
oauth_signature,
oauth_timestamp,
oauth_nonce,
oauth_version,
oauth_callback,
Please anyone help me how to create all these keys for my application.
In my twitter account xauth is disabled by default. So, how can I enable it in my application?
It's highly unlikely you need to enable xAuth. The Twitter API documentation, specifically the authentication guide explain these parameters in more detail. Also have the OAuth 1.0 spec open to refer to, even if you're using a third party library- you will save your sanity if you understand the mechanics of the token exchange.
You'll need to read up about OAuth. All the fields are part of the standard. Twitter will give you the first one (oauth_consumer_key), and the version number is always 1.0. (Version 2.0 is not yet complete and Twitter doesn't use it.) The others you need to calculate. Or at least find an open source library that does it for you.
As for enabling xAuth, you need to send a message to Twitter. Sounds like they're getting more and more strict about which apps they allow, though.