how to create An app in twitter? - twitter

I'm new in this ... I followed this steps
http://iag.me/socialmedia/how-to-create-a-twitter-app-in-8-easy-steps/
but i don't know what's the exact URL i should write it ? i found different URLs on different examples .. but i don't have one !
and i read if i don't have URL yet i should put placeholder !! what's the placeholder ?
and what's the callback URL
i hope someone help me on this .

While creating app in twitter you have to specify your website URL, if you dont have any you can put any URL which refers your identity (like linkedIn public profile URL).
Coming to the callback URL, it tells where to navigate right after login with twitter credentials in your app.
Hope it helps you.

Create a Twitter Appliation here with the Read and write access permissions and Organization or personal website for callback url in Application.

Related

What redirect URL to use when logging in with GitHUB with OAuth2?

I'm new in ios sdk and English. Therefore, sorry for my Eng.
I try to do authentication through github using OAuthSwift.
In the registration of the application (https://github.com/settings/apps), there is need a redirect URL. In the tutorial from raywenderlich.com was an example, they did authorization through Google. They wrote a unique domain in this line that does not work: com.raywenderlich.Incognito. And in Info.plist, we added a Scheme URL with com.raywenderlich.Incognito, so that (as I understood it) when we go to this address after authentication, we’ve got into our application. But if you try to add in the application settings (https://github.com/settings/apps) the Redirect URL: something like com.raywenderlich.Incognito, will generate an error, because github wants the URL to have to be valid. If we put the Valid URL there, then when we will be redirected to this address, we will simply go to it and will not return to the application.
I would be grateful for any help.
Sorry for my English.
Redirect url in OAuth is the url that the authentication provider navigates to when authentication is successful.
For mobile apps it is the link that launches the app (a sort of deep linking)
For websites it is the website home screen

How to handle the redirected uri in ios for google sign in programmatically?

I am currently doing a task in which i need to implement google sign in programmatically. I am passing the client id in the custom uri scheme and present it through svc. When i do authorization, google is not returning to my app instead it opening google.co.in page. I can get the uri in the open url method of app delegate but i don't know how to handle it and open my app instead of google.co.in page. Can someone help me to resolve it programmatically? since i should not use any predefined libraries here. Thanks in advance!
Are you using Google SDK ? If so then you should've created an App on console.firebase.com , get you redirect URI from there and add it in you info.plist. It's not returning because it's not finding the redirect URI.

Update App to add redirect url

I registered my app, but didn't provide a redirect url. Now my app has been approved, but I have no way to edit so I can add it.
Please let me know how I can add my redirect url to the sound cloud api settings for my app.
Thanks
best way is to edit the code and deploy new package it will work.
You'll need to get in touch with SoundCloud Support to do this: support#soundcloud.com.

What's a redirect URI? how does it apply to iOS app for OAuth2.0?

Beginner programmer here, please pardon ignorance & explanations will be really nice :)
I've tried to read the tutorials for a certain OAuth 2.0 service, but I don't understand this redirect URI... in my particular context, let's say I'm trying to build an iPhone app that uses OAuth 2.0 for some service. I have an App ID that was generated, but i need to provide some sort of redirect URI to generate the API key.
Is this a URL that I'm supposed to host somewhere myself?? As the name suggests, I would think that the redirect URL is supposed to "redirect" someone somewhere. My only guess is that it's the URL a user is redirected to after they log in to the service.
However, even if that assumption is correct, I don't understand one other thing - how can my app be opened again after I've sent them to the browser for the user login?
Read this:
http://www.quora.com/OAuth-2-0/How-does-OAuth-2-0-work
or an even simpler but quick explanation:
http://agileanswer.blogspot.se/2012/08/oauth-20-for-my-ninth-grader.html
The redirect URI is the callback entry point of the app. Think about how OAuth for Facebook works - after end user accepts permissions, "something" has to be called by Facebook to get back to the app, and that "something" is the redirect URI. Furthermore, the redirect URI should be different than the initial entry point of the app.
The other key point to this puzzle is that you could launch your app from a URL given to a webview. To do this, i simply followed the guide on here:
http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
and
http://inchoo.net/mobile-development/iphone-development/launching-application-via-url-scheme/
note: on those last 2 links, "http://" works in opening mobile safari but "tel://" doesn't work in simulator
in the first app, I call
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"secondApp://"]];
In my second app, I register "secondApp" (and NOT "secondApp://") as the name of URL Scheme, with my company as the URL identifier.
Take a look at OAuth 2.0 playground.You will get an overview of the protocol.It is basically an environment(like any app) that shows you the steps involved in the protocol.
https://developers.google.com/oauthplayground/
redirected uri is the location where the user will be redirected after successfully login to your app. for example to get access token for your app in facebook you need to subimt redirected uri which is nothing only the app Domain that your provide when you create your facebook app.
If you are using Facebook SDK, you don't need to bother yourself to enter
anything for redirect URI on the app management page of facebook. Just setup a
URL scheme for your iOS app.
The URL scheme of your app should be a value "fbxxxxxxxxxxx" where xxxxxxxxxxx is
your app id as identified on facebook.
To setup URL scheme for your iOS app, go to info tab of your app settings
and add URL Type.

Add tweet button on wordpress blog

I have been trying to put twitter's new tweet button on my wordpress blog. I have tried code provided on official twitter website, and couple of wordpress plugins to add tweet button on the blog. But on every try I am running into same issue. When I click on tweet button it goes to the twitter website but says
url' parameter does not contain a valid URL.
Could anyone please suggest me the way out for the same. thanks in advance!
Use this plugin: http://wordpress.org/extend/plugins/wp-tweet-button/
It works fine for me, and has couple of options to choose from.
hmmm.....I don't know why this is happening but I think you are using a local server and your url contains some ip address so that when you are clicking on the tweet button it will take your ip address also to connect with tweer site.
So it make url invalid, work on live site I think it will work.all the best.....

Resources