Create an manual twitter login and show profile ios app - twitter

I want to create an app to login into twitter, and then show user profile, I known how to show profile but I have to use account from setting. I want to create a login view, I found some information about xAuth and download a demo app, but it always have error 1012, another one is 401. Any other ways to login?
Please show me how to do this. Thank you!

I'm not totally sure about what you want to achieve.
If you want to login on Twitter from an iOS application without using the account defined in Settings, then you can use the STTwitter library.
The demo project for iOS shows how to login through Safari.
You can also use consumer xAuth-enabled tokens and login directly with Twitter credentials.

Related

Is There A Way To Sign In With LinkedIn Without Using the Webview on iOS

I'd like to implement sign in functionality to my iOS app with LinkedIn. So far all the examples I have seen that are using OAuth with LinkedIn use a pop up webview. But is it possible to create a custom native view that uses the LinkedIn API to sign in?
Thanks
James
Yes, you can use https://developer.linkedin.com/docs/ios-sdk . However, the user will have to have the app install (or install it after a popup shows up).
The scenario that I have right now, checks if the user has the LinkedIn app installed, if he doesn't, it will open up as a webview.

Is there any library to implement twitter web view login dialog in iOS

i have an app that want to share to twitter
when user click the share button and he has a token the app will process in the background and tweet using predefined message (user cannot change the message)
but if he/she doesn't have the token then the app will show popup login webview dialog
to the user with our app name like in the picture.
After he/she successfully login dismiss login dialog and the app will repeat step 1 (tweet in background)
how can i archive this?
thanks.
refer FHSTwitterEngineyou can use newly FHSTwitterEngine you need to send consumer key and token along with screen_name..
Solution to your problem is to implement the Single Sign on (SSO) using native App residing on Device. Almost all the Social Framework SKD's are approaching to use the account information residing centrally on the device. (That's called as SSO via Native)
Please read more about it here
Also if you face difficulty in implementing it, kindly use shareKit or PFTwitterUtils-NativeTwitter.
In ShareKit, you many need to perform a "Granular Install" to just link to "Twitter" library rather than all other bunch of Social Frameworks.

Not automatically login to Google+ using UIWebView (iOS)?

I have a question about authentication with UIWebView.
I want to login in webview in plus.google.co
I sign in in google plus one time as shown in
https://developers.google.com/+/mobile/ios/sign-in
When user go to google+ page again in UIWebView then program should be automatically
logged in and save the user's session. But in fact it is not keep logged in.How can i keep user logged in for google+ although user is one time sign in for Google+ in my application.
I also checked condition for this as :[[GPPSignIn sharedInstance]
authentication] and it return true that i am logged in already.but when i checked in uiwebview by pushing new ViewController then it ask me to sign in.
And When i open plus.google.com in safari in iPhone then it show me
as a login user.
I searched a lot but can not find an answer.please help me out from
this.
If I understand your question correctly you have implemented sign in with the iOS SDK, but you would like to enable sign in for your mobile web browser following these instructions:
https://developers.google.com/+/mobile/ios/sign-in
These are for a native iOS application. To implement sign in for mobile web you should follow the instructions for sign in on the web:
https://developers.google.com/+/web/signin/
Sorry if this doesn't answer your question directly, but if it doesn't please give more details about your problem.
Sign In with Google is now supported through the new Google Sign In iOS SDK. Migration instructions for users of the Google+ Sign In SDK are available here.

How to avoid "App is allready authorized" with Facebook SDK 3.1

Every time i want to login through the Facebook idk, safari will be opened and tells me that my app is allready authorized. But i dont want to show this screen everytime a user logs in with Facebook. I followed the instructions over here to implement facebook login functionality. If the auth button is clicked i simple call the openSessionWithAllowLoginMethod which then handles the rest for me. But i dont how to apply the functionality, that it wont show the authorized screen everytime, to this code ? I would really appreciate some tips or hints.
Fill out every field related to your app in the Native iOS App section of the Basic Settings in the App Dashboard. If these fields are not configured, we can't drive traffic to your app or the iOS App Store. In addition, we use the iOS Bundle ID to streamline authentication for users who already authenticated your app. Pro-tip 3: Complete all iOS App Settings

Automatic login on facebook from my site

I am working on a web application, I am using graph API with php sdk for accessing the facebook features.
I am using facebook connect and it is working fine for login, but every time a user come to my site and get login by using the login button.
I want to make this automatic, Is there any way that when users come to my site they get logged in automatically.
How can I achieve this..
anybody help please.
thanks in advance.
Danish
If the user does not explicitly authorize you to get some private data from his Facebook account (included his Facebook ID), you can not get them.
I cannot think of a way to get the Facebook ID without the authorization of the user. So no way for you to automatically log in users.
Hope that helps.
I would say that maybe you shouldn't make it to connect automatically, some viewers of your website might not be very happy that as soon as they get there they are automatically logged in with their facebook profiles, pictures, information, etc.
Also because there could be another one's facebook already connected on the same computer, but still...
My advice would be to just leave a button to login when the user wants.

Resources