[twitter-dev] Re: Redirect to user's profile page via API
Can someone give me any suggestion about it? Many thanks On 1 Giu, 11:08, byqsri marco.rizze...@gmail.com wrote: Hi I'm newbie with Twitter API. I use OAuth to do authentication. Now I have this feature to do : From my web application allow to the user to automatically enter on his profile on twitter. Is it possible to do this using only the API and using OAuth (therefore the account crediantials aren't avaible)? Many Thanks
Re: [twitter-dev] Re: Redirect to user's profile page via API
On Thu, Jun 3, 2010 at 3:56 AM, byqsri marco.rizze...@gmail.com wrote: Can someone give me any suggestion about it? Many thanks On 1 Giu, 11:08, byqsri marco.rizze...@gmail.com wrote: Hi I'm newbie with Twitter API. I use OAuth to do authentication. Now I have this feature to do : From my web application allow to the user to automatically enter on his profile on twitter. Is it possible to do this using only the API and using OAuth (therefore the account crediantials aren't avaible)? Many Thanks Actually, as I understand it, authentication for that purpose would be necessary only if the user was keeping their account private or something. I'm very mindful of this because this is something I've been obsessed with over the past two days and nights. I've been saving my followers into a database and remotely saving their avatars for the purpose of not hitting rate limits. I've tried lots of stuff and had previously used simplexml heavily, until within the past couple of hours when I found out how much easier and faster json is! Here is an example (use with PHP): //$f1 is the user id number already in my database, you can do the same with user name instead $api_call = 'http://twitter.com/users/show/'.$f1.'.json'; $results = json_decode(file_get_contents($api_call)); $profile_image_url= str_replace('_normal', '_mini', $results-profile_image_url); $screen_name=($results-screen_name); $description= ($results-description); $location=($results-location); $name= ($results-name); $followers_count=($results-followers_count); $friends_count= ($results-friends_count); --Lil
[twitter-dev] Re: Redirect to user's profile page via API
Sorry , perhaps I have not explained well my problem. I have done OAuth authentication, I can use Twitter API. But now I must add a link to my page that if the user click on this link I redirect to twitter's user profile. My problem is that if the user is not logged in twitter he has to do every time the login. I would ask if there is a way using the Twitter OAuth API to do a automatic login to Twitter so when user click on the link on my page he is automatically redirect on his twitter user's profile. On 3 Giu, 11:10, Lil Peck lilp...@gmail.com wrote: On Thu, Jun 3, 2010 at 3:56 AM, byqsri marco.rizze...@gmail.com wrote: Can someone give me any suggestion about it? Many thanks On 1 Giu, 11:08, byqsri marco.rizze...@gmail.com wrote: Hi I'm newbie with Twitter API. I use OAuth to do authentication. Now I have this feature to do : From my web application allow to the user to automatically enter on his profile on twitter. Is it possible to do this using only the API and using OAuth (therefore the account crediantials aren't avaible)? Many Thanks Actually, as I understand it, authentication for that purpose would be necessary only if the user was keeping their account private or something. I'm very mindful of this because this is something I've been obsessed with over the past two days and nights. I've been saving my followers into a database and remotely saving their avatars for the purpose of not hitting rate limits. I've tried lots of stuff and had previously used simplexml heavily, until within the past couple of hours when I found out how much easier and faster json is! Here is an example (use with PHP): //$f1 is the user id number already in my database, you can do the same with user name instead $api_call = 'http://twitter.com/users/show/'.$f1.'.json'; $results = json_decode(file_get_contents($api_call)); $profile_image_url= str_replace('_normal', '_mini', $results-profile_image_url); $screen_name=($results-screen_name); $description= ($results-description); $location=($results-location); $name= ($results-name); $followers_count=($results-followers_count); $friends_count= ($results-friends_count); --Lil
[twitter-dev] Re: Redirect to user's profile page via API
Yes , the page where is redirect after login On 3 Giu, 11:47, Lil Peck lilp...@gmail.com wrote: On Thu, Jun 3, 2010 at 4:43 AM, byqsri marco.rizze...@gmail.com wrote: Sorry , perhaps I have not explained well my problem. I have done OAuth authentication, I can use Twitter API. But now I must add a link to my page that if the user click on this link I redirect to twitter's user profile. My problem is that if the user is not logged in twitter he has to do every time the login. I would ask if there is a way using the Twitter OAuth API to do a automatic login to Twitter so when user click on the link on my page he is automatically redirect on his twitter user's profile. Do you mean so that he is directed to the private pages of his profile rather than he public pages?
Re: [twitter-dev] Re: Redirect to user's profile page via API
As far as an application is concerned, the logged in/logged out state of the Twitter user is immaterial. The REST API is stateless and does not pertain to a session state. Your application should have no concern about the logged in status of a user. Landing on a Twitter profile URL does not require a login, regardless of the protected attribute of the Twitter user. If the user is logged out and lands on a protected user's page, they will still see an abbreviated version of the page, noting that the user has protected their tweets. If the user is unprotected, they get a standard logged-out version of the profile page. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Thu, Jun 3, 2010 at 2:54 AM, byqsri marco.rizze...@gmail.com wrote: Yes , the page where is redirect after login On 3 Giu, 11:47, Lil Peck lilp...@gmail.com wrote: On Thu, Jun 3, 2010 at 4:43 AM, byqsri marco.rizze...@gmail.com wrote: Sorry , perhaps I have not explained well my problem. I have done OAuth authentication, I can use Twitter API. But now I must add a link to my page that if the user click on this link I redirect to twitter's user profile. My problem is that if the user is not logged in twitter he has to do every time the login. I would ask if there is a way using the Twitter OAuth API to do a automatic login to Twitter so when user click on the link on my page he is automatically redirect on his twitter user's profile. Do you mean so that he is directed to the private pages of his profile rather than he public pages?
[twitter-dev] Re: Redirect to user's profile page via API
My question is another. Substantially I would know if is it possible to do an automatic login to twitter only using OAuth API and withouth know account crediantials of the user. On 3 Giu, 17:55, Taylor Singletary taylorsinglet...@twitter.com wrote: As far as an application is concerned, the logged in/logged out state of the Twitter user is immaterial. The REST API is stateless and does not pertain to a session state. Your application should have no concern about the logged in status of a user. Landing on a Twitter profile URL does not require a login, regardless of the protected attribute of the Twitter user. If the user is logged out and lands on a protected user's page, they will still see an abbreviated version of the page, noting that the user has protected their tweets. If the user is unprotected, they get a standard logged-out version of the profile page. Taylor Singletary Developer Advocate, Twitterhttp://twitter.com/episod On Thu, Jun 3, 2010 at 2:54 AM, byqsri marco.rizze...@gmail.com wrote: Yes , the page where is redirect after login On 3 Giu, 11:47, Lil Peck lilp...@gmail.com wrote: On Thu, Jun 3, 2010 at 4:43 AM, byqsri marco.rizze...@gmail.com wrote: Sorry , perhaps I have not explained well my problem. I have done OAuth authentication, I can use Twitter API. But now I must add a link to my page that if the user click on this link I redirect to twitter's user profile. My problem is that if the user is not logged in twitter he has to do every time the login. I would ask if there is a way using the Twitter OAuth API to do a automatic login to Twitter so when user click on the link on my page he is automatically redirect on his twitter user's profile. Do you mean so that he is directed to the private pages of his profile rather than he public pages?- Nascondi testo citato - Mostra testo citato -
Re: [twitter-dev] Re: Redirect to user's profile page via API
If you are asking if you can login a user into the twitter.com website using your applications oauth credentials the answer is no. They only way for a user to authenticate with the twitter.com website is by giving their password to twitter.com Abraham On Thu, Jun 3, 2010 at 09:34, byqsri marco.rizze...@gmail.com wrote: My question is another. Substantially I would know if is it possible to do an automatic login to twitter only using OAuth API and withouth know account crediantials of the user. On 3 Giu, 17:55, Taylor Singletary taylorsinglet...@twitter.com wrote: As far as an application is concerned, the logged in/logged out state of the Twitter user is immaterial. The REST API is stateless and does not pertain to a session state. Your application should have no concern about the logged in status of a user. Landing on a Twitter profile URL does not require a login, regardless of the protected attribute of the Twitter user. If the user is logged out and lands on a protected user's page, they will still see an abbreviated version of the page, noting that the user has protected their tweets. If the user is unprotected, they get a standard logged-out version of the profile page. Taylor Singletary Developer Advocate, Twitterhttp://twitter.com/episod On Thu, Jun 3, 2010 at 2:54 AM, byqsri marco.rizze...@gmail.com wrote: Yes , the page where is redirect after login On 3 Giu, 11:47, Lil Peck lilp...@gmail.com wrote: On Thu, Jun 3, 2010 at 4:43 AM, byqsri marco.rizze...@gmail.com wrote: Sorry , perhaps I have not explained well my problem. I have done OAuth authentication, I can use Twitter API. But now I must add a link to my page that if the user click on this link I redirect to twitter's user profile. My problem is that if the user is not logged in twitter he has to do every time the login. I would ask if there is a way using the Twitter OAuth API to do a automatic login to Twitter so when user click on the link on my page he is automatically redirect on his twitter user's profile. Do you mean so that he is directed to the private pages of his profile rather than he public pages?- Nascondi testo citato - Mostra testo citato - -- Abraham Williams | Developer for hire | http://abrah.am @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private.