What is the proper way to launch a twitter profile from iOS5? - ios

Let's say I want the user to be able to view my Twitter account feed via a button in my app's credits view.
What's the proper way to do this?
I can load the URL easily enough to twitter.com but what if the user doesn't use the web version of twitter but the Twitter app or Tweetbot, etc.?
I failed to find anything obvious about a twitter:// protocol.
Thank you!

Related

Twitter profile pictures don't appear in rails app

I'm building a web app using rails. In this site I basically have several profiles, each of them linked to a specific profile picture from twitter.
Instead of install a twitter gem or similar, I just use this line of code:
https://twitter.com/<%= influencer.username %>/profile_image?size=original
It works great, but what I've discovered is that in some devices the browser can't show them. Specially on phones.
Any ideas of why this thing doesn't work?
Or, is there another way to do this?
The website (super beta) is: https://influencerlist.io
Thank you!
That’s because on phones, Twitter redirects to mobile.twitter.com, and the image URL is not available on mobile.twitter.com (try this in a browser for yourself). The correct way to obtain the user profile image would be via the Twitter API and querying the user object from /1.1/users/show.json (or, via the users/lookup batch endpoint).

Integrating twitter login in IOS

In my IOS app i Want to add twitter login in order to fetch the user's information like Name, Email ID and Profile picture.Can anyone please provide me some useful information or some tutorial link that can help in integrating twitter login in my app and to fetch user information.
If you're just trying to do some really simple login stuff and are new to iOS, I would definitely check out Parse's Twitter Login tools.
https://parse.com/docs/ios_guide#twitterusers/iOS
Really user friendly and simple to get the hang of.
If you want to add twitter login to your app in a simple way, I would recommend you to use Fabric framework. Follow this link: https://dev.twitter.com/fabric/ios
Note: You can't bring user's email easily. You need to get permissions from twitter by filling a form in twitter website or else by sending email to fabric team.
Twitter Kit provides all the required functionalities and mechanism for making authenticated requests to Twitter's REST API.
Follow the configuration process here.
Using TWTRSession, you can request for TWTRUser object and that will have what you need.
This is the right way and advisable one too.

Can we add Twitter permissions on demand in an iOS app?

We are making an iOS app that has two points of integration with Twitter:
1. User can use Twitter account to login (or FB account or just email/password)
2. User can share his freshly done work to twitter (just post a tweet)
So for some users we need a read/write access to twitter, but for some only minimal permission for loggin in would be enough and I wouldn't like to scare users away by asking for a write permission on the first login, when they might not even realize the app can share their work to Twitter.
Is it somehow possible to request only login permissions on first start and tweeting permission only on a first Tweeting need?
P.S.
We are not going to use the built-in iOS sharing sheets, because they are good only for sharing to either FB OR Twitter OR elsewhere. We want to offer sharing to Twitter, Facebook, Email and maybe somewhere else simultaneously, in a foursquare app style
I'm not familiar with the recent changes, but I believe that the permission is the one you set in https://dev.twitter.com/apps. So no, you can't do it. I don't think you can do that on facebook as well.
(sidebar: twitter's documentation now is complete mess. I can't find any useful information there)

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.

Sharing a link on Twitter

Hey all,
I would like to make possible to share links of my website on twitter with a click. I've already done this for facebook, just one click and the classic facebook window appears where you can also write what you're thinking while sharing the link.
Is it possible to do the same for Twitter? I've searched through the web but I could only find apps that go on your browser and not for a website. Moreover it would be better a simple code instead of an app, if it's possible.
Thanks
You mean this?
Twitter tweet button
Twitter Dev tweet button

Resources