Re: [twitter-dev] Facing problem.
Hi there, I am using Mr David Billingham's PHP class file in application. http://twitter.slawcup.com/twitter.class.phps;. The request URL include parameter as username to fetch data from methods like userstatus($unm) (gives particular user's data) and followerscid($unm) gives that user's followers info and ratelimit() method (gives rate_limit_status). One of the e.g to API request is: function userstatus($unm) { $request = 'http://api.twitter.com/1/users/show/'.$unm.'.xmlhttp://api.twitter.com/1/users/show/%27.$unm.%27.xml'; return $this-process($request); } and call this method with twitter class object, gives error on accessing data as invalid arguments supplied in the main code but when I call it individually with print_r(arrayname) then it gives like- bool(false) . same thing happens with ratelimit() which gives error as Invalid Arguments Supplied to the method Using xml as extension to get data in xml format and developed whole code using xml(key-value pair) There is no proxy like thing as I hv uploaded files on server and dealing directly with it. Please help me on this. Thank you in advance. Rushi. On Wed, May 19, 2010 at 1:27 AM, Abraham Williams 4bra...@gmail.com wrote: What is the exact error? Abraham On Tue, May 18, 2010 at 00:07, Rushikesh Bhanage rishibhan...@gmail.comwrote: Hi, Yes, I had the same doubt, so I replaced a month back's TwitterAPI.php file and tried to run, but no happy moment and saw same error. Actually I was working on another module of this project so was not in touch with this, now I tried to run this but I don't understand why this is so because it was running perfectly few days back, but started giving error now. When I access ratelimit status through request URL it gives me data in value form not in (key-value) of xml format as it was giving previously. twitter is a class and ratelimit method has no arguments passed neither before nor now. your help will be greatly appreciated, Rushi On Mon, May 17, 2010 at 9:49 PM, Abraham Williams 4bra...@gmail.comwrote: Did you recently update TwitterAPI.php? It sounds like twitter() or ratelimit() need an argument passed int. Abraham On Mon, May 17, 2010 at 03:39, Rushikesh Bhanage rishibhan...@gmail.com wrote: Hi there, I am using this (sample code)code to get ratelimit status: ?php include(TwitterAPI.php); $t = new twitter(); $ratearr = $t-ratelimit(); print_r($ratearr); ? ratelimit() function contains the url: http://api.twitter.com/1/account/rate_limit_status.xml;. I was getting rate limit status with this up till now but now it gives error as invalid arguments supplied. But when I paste the same URL in address bar, I get rate_limit_status. why this is so? Rushi. -- 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. -- 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.
Re: [twitter-dev] Facing problem.
What does the rest of the error message say? What method is getting invalid arguments? What line in the PHP file is having the error? Abraham On Wed, May 19, 2010 at 01:23, Rushikesh Bhanage rishibhan...@gmail.comwrote: Hi there, I am using Mr David Billingham's PHP class file in application. http://twitter.slawcup.com/twitter.class.phps;. The request URL include parameter as username to fetch data from methods like userstatus($unm) (gives particular user's data) and followerscid($unm) gives that user's followers info and ratelimit() method (gives rate_limit_status). One of the e.g to API request is: function userstatus($unm) { $request = 'http://api.twitter.com/1/users/show/'.$unm.'.xmlhttp://api.twitter.com/1/users/show/%27.$unm.%27.xml'; return $this-process($request); } and call this method with twitter class object, gives error on accessing data as invalid arguments supplied in the main code but when I call it individually with print_r(arrayname) then it gives like- bool(false) . same thing happens with ratelimit() which gives error as Invalid Arguments Supplied to the method Using xml as extension to get data in xml format and developed whole code using xml(key-value pair) There is no proxy like thing as I hv uploaded files on server and dealing directly with it. Please help me on this. Thank you in advance. Rushi. On Wed, May 19, 2010 at 1:27 AM, Abraham Williams 4bra...@gmail.comwrote: What is the exact error? Abraham On Tue, May 18, 2010 at 00:07, Rushikesh Bhanage rishibhan...@gmail.comwrote: Hi, Yes, I had the same doubt, so I replaced a month back's TwitterAPI.php file and tried to run, but no happy moment and saw same error. Actually I was working on another module of this project so was not in touch with this, now I tried to run this but I don't understand why this is so because it was running perfectly few days back, but started giving error now. When I access ratelimit status through request URL it gives me data in value form not in (key-value) of xml format as it was giving previously. twitter is a class and ratelimit method has no arguments passed neither before nor now. your help will be greatly appreciated, Rushi On Mon, May 17, 2010 at 9:49 PM, Abraham Williams 4bra...@gmail.comwrote: Did you recently update TwitterAPI.php? It sounds like twitter() or ratelimit() need an argument passed int. Abraham On Mon, May 17, 2010 at 03:39, Rushikesh Bhanage rishibhan...@gmail.com wrote: Hi there, I am using this (sample code)code to get ratelimit status: ?php include(TwitterAPI.php); $t = new twitter(); $ratearr = $t-ratelimit(); print_r($ratearr); ? ratelimit() function contains the url: http://api.twitter.com/1/account/rate_limit_status.xml;. I was getting rate limit status with this up till now but now it gives error as invalid arguments supplied. But when I paste the same URL in address bar, I get rate_limit_status. why this is so? Rushi. -- 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. -- 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. -- 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.
Re: [twitter-dev] Facing problem.
Hi there I have included TwitterAPI.php file in say show.php, in this main file when i call first function ratelimit() and access it thru foreach loop, it gives error as Invalid arguments supplied for foreach. I thought that problem would be for ratelimit() only, but when I executed userstatus($unm) and followers function individually in another file, it's giving error as: bool(false). Thank you in advance. On Wed, May 19, 2010 at 12:21 PM, Abraham Williams 4bra...@gmail.comwrote: What does the rest of the error message say? What method is getting invalid arguments? What line in the PHP file is having the error? Abraham On Wed, May 19, 2010 at 01:23, Rushikesh Bhanage rishibhan...@gmail.comwrote: Hi there, I am using Mr David Billingham's PHP class file in application. http://twitter.slawcup.com/twitter.class.phps;. The request URL include parameter as username to fetch data from methods like userstatus($unm) (gives particular user's data) and followerscid($unm) gives that user's followers info and ratelimit() method (gives rate_limit_status). One of the e.g to API request is: function userstatus($unm) { $request = 'http://api.twitter.com/1/users/show/'.$unm.'.xmlhttp://api.twitter.com/1/users/show/%27.$unm.%27.xml'; return $this-process($request); } and call this method with twitter class object, gives error on accessing data as invalid arguments supplied in the main code but when I call it individually with print_r(arrayname) then it gives like- bool(false) . same thing happens with ratelimit() which gives error as Invalid Arguments Supplied to the method Using xml as extension to get data in xml format and developed whole code using xml(key-value pair) There is no proxy like thing as I hv uploaded files on server and dealing directly with it. Please help me on this. Thank you in advance. Rushi. On Wed, May 19, 2010 at 1:27 AM, Abraham Williams 4bra...@gmail.comwrote: What is the exact error? Abraham On Tue, May 18, 2010 at 00:07, Rushikesh Bhanage rishibhan...@gmail.com wrote: Hi, Yes, I had the same doubt, so I replaced a month back's TwitterAPI.php file and tried to run, but no happy moment and saw same error. Actually I was working on another module of this project so was not in touch with this, now I tried to run this but I don't understand why this is so because it was running perfectly few days back, but started giving error now. When I access ratelimit status through request URL it gives me data in value form not in (key-value) of xml format as it was giving previously. twitter is a class and ratelimit method has no arguments passed neither before nor now. your help will be greatly appreciated, Rushi On Mon, May 17, 2010 at 9:49 PM, Abraham Williams 4bra...@gmail.comwrote: Did you recently update TwitterAPI.php? It sounds like twitter() or ratelimit() need an argument passed int. Abraham On Mon, May 17, 2010 at 03:39, Rushikesh Bhanage rishibhan...@gmail.com wrote: Hi there, I am using this (sample code)code to get ratelimit status: ?php include(TwitterAPI.php); $t = new twitter(); $ratearr = $t-ratelimit(); print_r($ratearr); ? ratelimit() function contains the url: http://api.twitter.com/1/account/rate_limit_status.xml;. I was getting rate limit status with this up till now but now it gives error as invalid arguments supplied. But when I paste the same URL in address bar, I get rate_limit_status. why this is so? Rushi. -- 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. -- 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. -- 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.
[twitter-dev] Re: oAuth Echo problems
Their echo service is working properly as of Sunday when I was talking with one of their engineers who deployed a fix. If you still get a 401 it's likely you haven't signed the echo header properly 1) You do not oAuth sign the actual request to TwitPic 2) You make a fake request to Twitter's verify credentials api over SSL and grab the Authorization header that would be sent, however when you create the header make sure you include a 'Realm' of https://api.twitter.com 3) Create a new post request to TwitPic and put the oAuth header that you grabbed from Authorization in the HTTP header X-Verify-Credentials- Authorization 4) Add a X-Auth-Service-Provider header with the URL to verify credentials. 5) You should be good to go after that If you get the signature right, it will work as I and a few others have got it working when we were liasing with their engineers on Sunday On May 19, 3:41 am, uprise78 des...@gmail.com wrote: I'm in the same boat. My call to Twitter works fine but I get 401's from TwitPic every time.
[twitter-dev] Twitter app on iPhone
So Tweetie is now Twitter and has features that no other API client can offer. How about giving us access to features that the new Tweetie has that there is no public end point for such as signing up for an account or suggested user lists?
[twitter-dev] Oauth authenticated user
How do I force a user to log in to Twitter during the Oauth dance, even though he/she may already be logged in to Twitter via the web? Our users may have more than one Twitter account they want to authenticate/register, and I want to make sure they are forced to put the correct credentials, and not just click accept for the currently logged in account. Thanks, Gary Zukowski
Re: [twitter-dev] Oauth authenticated user
U can adf the if you are not user name log out Then log again with his righr cridentials Sent by IPhone On 19/05/2010, at 14:28, Gary Zukowski ga...@tweetmyjobs.com wrote: How do I force a user to log in to Twitter during the Oauth dance, even though he/she may already be logged in to Twitter via the web? Our users may have more than one Twitter account they want to authenticate/register, and I want to make sure they are forced to put the correct credentials, and not just click “accept” for the currently logged in account. Thanks, Gary Zukowski
RE: [twitter-dev] Oauth authenticated user
What does “adf” mean? I want to force the logout and present the Twitter login when doing the authentication…. Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. From: Roee Aizman [mailto:roe...@gmail.com] Sent: Wednesday, May 19, 2010 7:41 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] Oauth authenticated user U can adf the if you are not user name log out Then log again with his righr cridentials Sent by IPhone On 19/05/2010, at 14:28, Gary Zukowski ga...@tweetmyjobs.com wrote: How do I force a user to log in to Twitter during the Oauth dance, even though he/she may already be logged in to Twitter via the web? Our users may have more than one Twitter account they want to authenticate/register, and I want to make sure they are forced to put the correct credentials, and not just click “accept” for the currently logged in account. Thanks, Gary Zukowski
Re: [twitter-dev] Oauth authenticated user
add to your code If you are not user name please log out. Then you will connect him again with the right credentials. Regards, On Wed, May 19, 2010 at 3:19 PM, Gary Zukowski ga...@tweetmyjobs.comwrote: What does “adf” mean? I want to force the logout and present the Twitter login when doing the authentication…. Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 *This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.* *From:* Roee Aizman [mailto:roe...@gmail.com] *Sent:* Wednesday, May 19, 2010 7:41 AM *To:* twitter-development-talk@googlegroups.com *Subject:* Re: [twitter-dev] Oauth authenticated user U can adf the if you are not user name log out Then log again with his righr cridentials Sent by IPhone On 19/05/2010, at 14:28, Gary Zukowski ga...@tweetmyjobs.com wrote: How do I force a user to log in to Twitter during the Oauth dance, even though he/she may already be logged in to Twitter via the web? Our users may have more than one Twitter account they want to authenticate/register, and I want to make sure they are forced to put the correct credentials, and not just click “accept” for the currently logged in account. Thanks, Gary Zukowski -- Roee Aizman, CTO E: roe...@gmail.com M: +972-542345222 Amigos-Online.com Friends have never been so close
RE: [twitter-dev] Oauth authenticated user
So there's no way to automatically do this? I have to ask the user to log out? Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. From: Roee A. [mailto:roe...@gmail.com] Sent: Wednesday, May 19, 2010 8:28 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] Oauth authenticated user add to your code If you are not user name please log out. Then you will connect him again with the right credentials. Regards, On Wed, May 19, 2010 at 3:19 PM, Gary Zukowski ga...@tweetmyjobs.com wrote: What does adf mean? I want to force the logout and present the Twitter login when doing the authentication.. Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. From: Roee Aizman [mailto:roe...@gmail.com] Sent: Wednesday, May 19, 2010 7:41 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] Oauth authenticated user U can adf the if you are not user name log out Then log again with his righr cridentials Sent by IPhone On 19/05/2010, at 14:28, Gary Zukowski ga...@tweetmyjobs.com wrote: How do I force a user to log in to Twitter during the Oauth dance, even though he/she may already be logged in to Twitter via the web? Our users may have more than one Twitter account they want to authenticate/register, and I want to make sure they are forced to put the correct credentials, and not just click accept for the currently logged in account. Thanks, Gary Zukowski -- Roee Aizman, CTO E: roe...@gmail.com M: +972-542345222 Amigos-Online.com Friends have never been so close
Re: [twitter-dev] Oauth authenticated user
I do not think forcing the user to logout is a good idea. Isn't this a security breach? Twitter will any how ask the user to signout if the user does not wish to connect to your app with the logged in account.Then he will be shown the login page and after successful authentication user will be redirected back to your app (like normal flow) On Wed, May 19, 2010 at 6:01 PM, Gary Zukowski ga...@tweetmyjobs.comwrote: So there’s no way to automatically do this? I have to ask the user to log out? Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 *This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.* *From:* Roee A. [mailto:roe...@gmail.com] *Sent:* Wednesday, May 19, 2010 8:28 AM *To:* twitter-development-talk@googlegroups.com *Subject:* Re: [twitter-dev] Oauth authenticated user add to your code If you are not user name please log out. Then you will connect him again with the right credentials. Regards, On Wed, May 19, 2010 at 3:19 PM, Gary Zukowski ga...@tweetmyjobs.com wrote: What does “adf” mean? I want to force the logout and present the Twitter login when doing the authentication…. Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 *This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.* *From:* Roee Aizman [mailto:roe...@gmail.com] *Sent:* Wednesday, May 19, 2010 7:41 AM *To:* twitter-development-talk@googlegroups.com *Subject:* Re: [twitter-dev] Oauth authenticated user U can adf the if you are not user name log out Then log again with his righr cridentials Sent by IPhone On 19/05/2010, at 14:28, Gary Zukowski ga...@tweetmyjobs.com wrote: How do I force a user to log in to Twitter during the Oauth dance, even though he/she may already be logged in to Twitter via the web? Our users may have more than one Twitter account they want to authenticate/register, and I want to make sure they are forced to put the correct credentials, and not just click “accept” for the currently logged in account. Thanks, Gary Zukowski -- Roee Aizman, CTO E: roe...@gmail.com M: +972-542345222 Amigos-Online.com Friends have never been so close
RE: [twitter-dev] Oauth authenticated user
This question has been raised before. We have the same issue for our sports chat sites. I would have preferred to have the user log in each time an oauth request is made as it's frustrating when people contat us at support because their in chat twitter posts aren't appearing only to find the posts are being made but to someone else twitter accounts who was using the computer before and even though the browser was closed Twitter automatically sued this account when we sent the oauth requests. It's a big problem and a choice should be offered to the developer to force logout before an oauth call if this is the process flow they want to implement. Cheers, Dean From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of srikanth reddy Sent: Wednesday, May 19, 2010 8:46 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] Oauth authenticated user I do not think forcing the user to logout is a good idea. Isn't this a security breach? Twitter will any how ask the user to signout if the user does not wish to connect to your app with the logged in account.Then he will be shown the login page and after successful authentication user will be redirected back to your app (like normal flow) On Wed, May 19, 2010 at 6:01 PM, Gary Zukowski ga...@tweetmyjobs.com wrote: So there's no way to automatically do this? I have to ask the user to log out? Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. From: Roee A. [mailto:roe...@gmail.com] Sent: Wednesday, May 19, 2010 8:28 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] Oauth authenticated user add to your code If you are not user name please log out. Then you will connect him again with the right credentials. Regards, On Wed, May 19, 2010 at 3:19 PM, Gary Zukowski ga...@tweetmyjobs.com wrote: What does adf mean? I want to force the logout and present the Twitter login when doing the authentication Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. From: Roee Aizman [mailto:roe...@gmail.com] Sent: Wednesday, May 19, 2010 7:41 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] Oauth authenticated user U can adf the if you are not user name log out Then log again with his righr cridentials Sent by IPhone On 19/05/2010, at 14:28, Gary Zukowski ga...@tweetmyjobs.com wrote: How do I force a user to log in to Twitter during the Oauth dance, even though he/she may already be logged in to Twitter via the web? Our users may have more than one Twitter account they want to authenticate/register, and I want to make sure they are forced to put the correct credentials, and not just click accept for the currently logged in account. Thanks, Gary Zukowski -- Roee Aizman, CTO E: roe...@gmail.com M: +972-542345222 Amigos-Online.com Friends have never been so close
RE: [twitter-dev] Oauth authenticated user
Dean, Exactly the same concern I have. We're going to store the access tokens in the db under their user profile, and some of our users have multiple Twitter accounts. We feel that some of them may see the big allow button, click it, and not realize that they are allowing the wrong Twitter account to be linked to their TMJ account. Any way around this? Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. From: Dean Collins [mailto:d...@cognation.net] Sent: Wednesday, May 19, 2010 8:53 AM To: twitter-development-talk@googlegroups.com Subject: RE: [twitter-dev] Oauth authenticated user This question has been raised before. We have the same issue for our sports chat sites. I would have preferred to have the user log in each time an oauth request is made as it's frustrating when people contat us at support because their in chat twitter posts aren't appearing only to find the posts are being made but to someone else twitter accounts who was using the computer before and even though the browser was closed Twitter automatically sued this account when we sent the oauth requests. It's a big problem and a choice should be offered to the developer to force logout before an oauth call if this is the process flow they want to implement. Cheers, Dean _ From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of srikanth reddy Sent: Wednesday, May 19, 2010 8:46 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] Oauth authenticated user I do not think forcing the user to logout is a good idea. Isn't this a security breach? Twitter will any how ask the user to signout if the user does not wish to connect to your app with the logged in account.Then he will be shown the login page and after successful authentication user will be redirected back to your app (like normal flow) On Wed, May 19, 2010 at 6:01 PM, Gary Zukowski ga...@tweetmyjobs.com wrote: So there's no way to automatically do this? I have to ask the user to log out? Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. From: Roee A. [mailto:roe...@gmail.com] Sent: Wednesday, May 19, 2010 8:28 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] Oauth authenticated user add to your code If you are not user name please log out. Then you will connect him again with the right credentials. Regards, On Wed, May 19, 2010 at 3:19 PM, Gary Zukowski ga...@tweetmyjobs.com wrote: What does adf mean? I want to force the logout and present the Twitter login when doing the authentication.. Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this
[twitter-dev] Re: How do we deal with application's Consumer secret in real life
Is there any reason why each developer who takes the source code cant apply for their own keys? Thank you, very interesting idea. I think we may go that way. So in our case each developer will register at Twitter and use for development his own AndTweet-MySuffix application. And main AndTweet secrets will be used for official project packages only. We may exclude source file with real application secrets from the source code repository, putting there file with some mock values... On May 18, 5:15 pm, Dean Collins d...@cognation.net wrote: Is there any reason why each developer who takes the source code cant apply for their own keys? We did this for MyPostButler in the old version, there was a space for each user to enter in their own consumer key/consumer secret right in the main panel. Cheers, Dean
[twitter-dev] @anywhere tweet box + public timeline
I would like to integrate twitter anywhere on mysite with following functionality: - when user logs into twitter, user is able to tweet - when user logs in, i would like to embed a box with latest tweet from the people user is following (timeline). So the user can stay on my site and also able to view tweets. Is this provided by twitter @anywhere functionality? Thanks Ankur K
[twitter-dev] Using Twitter to accept messages for a web app
I have a web app which I would like to accept direct messages via twitter. I.e. my users could tweet: d myappname This is a message for the app It will essentially be a bot controlled account as I would only access the account via an API to check for direct messages. I may post occasional notices via the twitter account though. Is this kind of usage permitted within twitter's t c? My app certainly won't be sending out any spam. Thanks a lot! Jon
Re: [twitter-dev] Re: Invalid application, intermittently
Thanks for all the details Ellsass. We're working on some infrastructure changes and it's possible that there are moments where the layers of caches might not be in sync. We'll continue looking into this. I would recommend sticking with the same app, or a collection of apps, when you encounter the problem instead of deleting and re-registering an application. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Wed, May 19, 2010 at 5:47 AM, Ellsass cpa...@gmail.com wrote: 1. Yes, I'm sure. 2. On one occasion I requested new API keys, and on another occasion (as mentioned above) I deleted the app and re-registered it from scratch. Here are the three scenarios: A. Get new API key. App works fine for a while (a few [10?] page loads over perhaps 5-10 minutes), before getting the error. If I wait a while (an hour, maybe) it will work again, but only for a few page loads/10 minutes. (A page load = 3 API calls: statuses/home_timeline, statuses/mentions, and account/verify_credentials.) B. Delete app, re-register from scratch. Same as above: app works fine for a while (a few page loads or about 10 minutes), then the error, then after waiting a while it will work again for a short time. C. Do neither of the above (keep the same API key). Same results as above. As I said before, I hadn't made any changes to my API calls for a day or two prior to the error. (I was working on the HTML/JS/CSS, so I was making API requests, but certainly 150 per hour.) Once the errors began, the only API-related changes I tried were to request 100 statuses from statuses/home_timeline instead of 200. I'm not sure if this factors in, but the app isn't publicly available (I'm blocking access to the directory with .htaccess) and it's hard- coded to use my Twitter screen name (the same one the app is registered under). The only other thing I observed was that often the page would work fine on my PC (Firefox), but as soon as I tried loading it on my iPhone it would fail (and then fail on the PC as well). I didn't do any careful experimentation to determine whether this was repeatable or just a coincidence, but it's something I noticed in hindsight. And again, everything has been working just fine for over 36 hours now. Not a single hiccup. On May 18, 7:02 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Thanks, Ellsass. A few more questions to better help us identify the issue: - You're sure you're using the same consumer key and secret for these requests and not switching between different API keys and possibly mis-matching access tokens with the wrong consumer key? - Have you been making any changes to your application record on twitter.com or dev.twitter.com before or during these requests? Thanks! Taylor Singletary Developer Advocate, Twitterhttp://twitter.com/episod On Tue, May 18, 2010 at 3:27 PM, Ellsass cpa...@gmail.com wrote: Today (5/18) I haven't gotten the error at all. It was happening occasionally on 5/16 and very often on 5/17 during the daytime and evening, eastern US. My request, in PHP (I've modified EpiTwitter slightly to deal in XML rather than JSON): $twitterObj = new EpiTwitter($consumer_key, $consumer_secret, $_COOKIE['oauth_token'], $_COOKIE['oauth_token_secret']); $twitterInfo = $twitterObj- get_statusesHome_timeline(array(count=$numTweets)); and then the contents of $twitterInfo-responseText is this: ?xml version=1.0 encoding=UTF-8? hash request/statuses/home_timeline.xml?count=100/request errorInvalid application/error /hash On May 18, 9:55 am, Taylor Singletary taylorsinglet...@twitter.com wrote: This sounds strange. Can you share the return XML you get when it says invalid application? Taylor Singletary Developer Advocate, Twitterhttp://twitter.com/episod On Mon, May 17, 2010 at 3:56 PM, Ellsass cpa...@gmail.com wrote: When attempting to retrieve a timeline (or mentions, etc) I am getting the response Invalid application in the XML. I am using Oauth (with EpiTwitter). It just started today, and occasionally I will be able to retrieve the timeline with no problems. I am not hitting my rate limit (I am the only one using the app) and there are no messages on dev.twitter.com. If I delete and re-register the app it will work a few times, then die again, going back to working intermittently. Any idea what could be causing this? I haven't changed any of my API- calling code for a few days.
Re: [twitter-dev] Mismatch oauth_callback and real url where redirects to
Hi Andrey, We have a bug right now with oauth_callbacks with non-standard URI schemes -- hope to have it fixed soon. Taylor On Tue, May 18, 2010 at 9:04 PM, Andrey Vyrvich andry.virv...@gmail.comwrote: I've make a request like http://twitter.com/oauth/request_token?oauth_callback=chrome%3A%2F%2Fid_twitter%2Fcontent%2Ftwitter_oauth.html%3FTwitterExOAuthcallback%3Dtrueoauth_consumer_key=3H.. .. where oauth_callback=chrome://id_twitter/content/twitter_oauth.html? TwitterExOAuthcallback=true but when authorization complete 'http://twitter.com/oauth/authorize' trying to redirect to chrome:///content/twitter_oauth.html?TwitterExOAuthcallback=trueoauth_token=5Pln9 meta http-equiv=refresh content=0;url=chrome:///content/ twitter_oauth.html?TwitterExOAuthcallback=trueoauth_token=5Pln9... so, id_twitter were lost somewhere please advise
Re: [twitter-dev] Oauth authenticated user
Use the force_login parameter on authenticate and set it to true? http://apiwiki.twitter.com/Twitter-REST-API-Method:-oauth-authenticate On 5/19/2010 9:06 AM, Gary Zukowski wrote: Dean, Exactly the same concern I have. We're going to store the access tokens in the db under their user profile, and some of our users have multiple Twitter accounts. We feel that some of them may see the big allow button, click it, and not realize that they are allowing the wrong Twitter account to be linked to their TMJ account. Any way around this? Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 /This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited./ *From:* Dean Collins [mailto:d...@cognation.net] *Sent:* Wednesday, May 19, 2010 8:53 AM *To:* twitter-development-talk@googlegroups.com *Subject:* RE: [twitter-dev] Oauth authenticated user This question has been raised before. We have the same issue for our sports chat sites. I would have preferred to have the user log in each time an oauth request is made as it's frustrating when people contat us at support because their in chat twitter posts aren't appearing only to find the posts are being made but to someone else twitter accounts who was using the computer before and even though the browser was closed Twitter automatically sued this account when we sent the oauth requests. It's a big problem and a choice should be offered to the developer to force logout before an oauth call if this is the process flow they want to implement. Cheers, Dean *From:* twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] *On Behalf Of *srikanth reddy *Sent:* Wednesday, May 19, 2010 8:46 AM *To:* twitter-development-talk@googlegroups.com *Subject:* Re: [twitter-dev] Oauth authenticated user I do not think forcing the user to logout is a good idea. Isn't this a security breach? Twitter will any how ask the user to signout if the user does not wish to connect to your app with the logged in account.Then he will be shown the login page and after successful authentication user will be redirected back to your app (like normal flow) On Wed, May 19, 2010 at 6:01 PM, Gary Zukowski ga...@tweetmyjobs.com mailto:ga...@tweetmyjobs.com wrote: So there's no way to automatically do this? I have to ask the user to log out? Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 /This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited./ *From:* Roee A. [mailto:roe...@gmail.com mailto:roe...@gmail.com] *Sent:* Wednesday, May 19, 2010 8:28 AM *To:* twitter-development-talk@googlegroups.com mailto:twitter-development-talk@googlegroups.com *Subject:* Re: [twitter-dev] Oauth authenticated user add to your code If you are not user name please log out. Then you will connect him again with the right credentials. Regards, On Wed, May 19, 2010 at 3:19 PM, Gary Zukowski ga...@tweetmyjobs.com mailto:ga...@tweetmyjobs.com wrote: What does adf mean? I want to force the logout and present the Twitter login when doing the authentication Thanks, Gary Zukowski TweetMyJOBS.com @garyzukowski @tweetmyjobs 704-544-9370 /This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual
[twitter-dev] OAuth change at Twitter?
Did a change to Twitter's OAuth get deployed very recently (i.e., yesterday or today)? I'm now getting Failed to validate oauth signature and token in response to OAuth requests - I can guarantee my code, that has been working for many months now, has not changed. Is anyone else seeing this, right now? -- Dossy Shiobara | do...@panoptic.com | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
Re: [twitter-dev] OAuth change at Twitter?
Hi Dossy, This is more likely load related than anything else. We've made some adjustments recently to how we treat requests that are taking a long time -- they now tend to time out a lot sooner and provide an error rather than run with a long duration. This problem should lighten when the load lightens, and we're meanwhile working on improving the situation for everyone. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Wed, May 19, 2010 at 6:59 AM, Dossy Shiobara do...@panoptic.com wrote: Did a change to Twitter's OAuth get deployed very recently (i.e., yesterday or today)? I'm now getting Failed to validate oauth signature and token in response to OAuth requests - I can guarantee my code, that has been working for many months now, has not changed. Is anyone else seeing this, right now? -- Dossy Shiobara | do...@panoptic.com | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
[twitter-dev] Re: oAuth Echo problems
Works like a charm now. Thanks!
[twitter-dev] direct_message/new to multiple users
is it possible to DM multiple user ids by specifying comma separated user_id parameter? e.g. user_id=123,125,234,345 etc etc?
[twitter-dev] re: intermittent 401 and 502 during oauth process
Hi All, I have just started to put together a small Twitter application but every so often I am seeing either a 401 Unauthorized or 502 Bad Gateway when acquiring a request token. Would it be normal to see this during twitter 'over capacity' periods? Cheers James
Re: [twitter-dev] Re: Twitter app on iPhone
Secret API calls? C'mon, if Tweetie for iPhone does have this capability, someone's going to reverse it out of there soon enough. Someone who cares enough to do it, anyway. Not offering a public API isn't exactly an unfair advantage - it merely raises the bar. Now, if Twitter punishes app developers for using the same techniques that Tweetie or other official Twitter apps use ... then it's a different story. On 5/19/10 10:44 AM, Dewald Pretorius wrote: I have not yet seen the new Twitter iPhone client, but if this is true then it's exactly what we developers feared would happen, namely Twitter competing with developers and using secret API calls to offer features that external developers cannot offer. It's really not a good move, folks, because once you open that barn door, the horses just keep bolting, and you undermine an already shaky trust in the intentions of Twitter towards developers. I know this was not decided or done by Ryan's group, but someone in your group should do some serious advocacy here, because you're the ones who want us to trust you and continue to work with you in a non-combative environment. -- Dossy Shiobara | do...@panoptic.com | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
[twitter-dev] Re: oAuth Echo Enabled Providers
I am the lead dev on Twitgoo and I just built full echo support for 'upload' there. Its on the beta site right now, so if you want to test, please contact me for the info, otherwise it should be out by the end of the week. It will have full support of header, query string and multipart body parameters. On May 17, 2:47 pm, Rich rhyl...@gmail.com wrote: With the impending switch off of Basic Auth, should we keep a list of media providers and external services that have already made the switch to oAuth Echo. So far I've found and tested TwitPic - full oAuth Echo support TwitVid - oAuth Echo by sending as a URL parameter I know MobyPicture intend to have oAuth Echo enabled this month. Any others any one knows of?
[twitter-dev] Re: OAuth change at Twitter?
I am having the same problem since yesterday. I have made no changes to my code, but I am getting a 502 error. -Ram On May 19, 9:18 am, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Dossy, This is more likely load related than anything else. We've made some adjustments recently to how we treat requests that are taking a long time -- they now tend to time out a lot sooner and provide an error rather than run with a long duration. This problem should lighten when the load lightens, and we're meanwhile working on improving the situation for everyone. Taylor Singletary Developer Advocate, Twitterhttp://twitter.com/episod On Wed, May 19, 2010 at 6:59 AM, Dossy Shiobara do...@panoptic.com wrote: Did a change to Twitter's OAuth get deployed very recently (i.e., yesterday or today)? I'm now getting Failed to validate oauth signature and token in response to OAuth requests - I can guarantee my code, that has been working for many months now, has not changed. Is anyone else seeing this, right now? -- Dossy Shiobara | do...@panoptic.com |http://dossy.org/ Panoptic Computer Network |http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
Re: [twitter-dev] direct_message/new to multiple users
Hi Dan, This is not possible. DMs really aren't meant as a platform for sending the same message to multiple users. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Wed, May 19, 2010 at 7:32 AM, Dan d...@danielprocter.com wrote: is it possible to DM multiple user ids by specifying comma separated user_id parameter? e.g. user_id=123,125,234,345 etc etc?
Re: [twitter-dev] re: intermittent 401 and 502 during oauth process
Hi James, Yes, right now we're throwing these kind of errors when our servers are stressed. We hope to have things more stable soon. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Wed, May 19, 2010 at 7:48 AM, wibblefish docherty.ja...@gmail.comwrote: Hi All, I have just started to put together a small Twitter application but every so often I am seeing either a 401 Unauthorized or 502 Bad Gateway when acquiring a request token. Would it be normal to see this during twitter 'over capacity' periods? Cheers James
[twitter-dev] Re: Introduce yourself!
Hi, I am Ramanathan Narayanan, a graduate student at Northwestern University. I do research in machine learning and text mining. I am interested in finding influential users on twitter for different trending topics. I am also trying to find similar trending topics, and sentiments in tweets. My goal is to devise efficient algorithms and tools to solve these problems. A website based on my work is Pulse of the Tweeters (http:// pulseofthetweeters.com/) . Any feedback about the site is welcome. -Ram On May 16, 10:37 pm, Jonathan jhsa...@jhsachs.com wrote: I'm Jonathan Sachs, and I'm working with a company named Kachingle (http://www.kachingle.com) that's building a new type of service for letting users give financial support to the web sites they visit. We want to use Twitter to keep our member sites and users aware of each others' activities. I've spent about half of my career doing programming, and the other half doing technical writing. (I'm a big believer in documentation, and in software design for usability.) I'currently do most of my programming in PHP, with a little Javascript thrown in. My past activities have encompassed Java, C++, C, Visual Basic for Applications, FORTH, PL/I, FORTRAN IV, SNOBOL3, and IBM Basic Assembly Language. Among other things. I'm currently wrestling with the latest (I think) version of Abraham's implementation of the API, trying to make it do the things that an older version did.
[twitter-dev] Re: Twitter app on iPhone
Which features are you actually thinking about? Except the « Signup » feature, I didn’t see anyhing that couldn’t be reproduced on another third party client using the Twitter API… Arnaud Meunier | @twitoaster http://twitoaster.com On 19 mai, 13:17, Rich rhyl...@gmail.com wrote: So Tweetie is now Twitter and has features that no other API client can offer. How about giving us access to features that the new Tweetie has that there is no public end point for such as signing up for an account or suggested user lists?
[twitter-dev] Re: direct_message/new to multiple users
thanks for the info. I just wanted to check :) On May 19, 4:24 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Dan, This is not possible. DMs really aren't meant as a platform for sending the same message to multiple users. Taylor Singletary Developer Advocate, Twitterhttp://twitter.com/episod On Wed, May 19, 2010 at 7:32 AM, Dan d...@danielprocter.com wrote: is it possible to DM multiple user ids by specifying comma separated user_id parameter? e.g. user_id=123,125,234,345 etc etc?
Re: [twitter-dev] Twitter app on iPhone
Suggested user list is a public API. http://dev.twitter.com/doc/get/users/suggestions Abraham On Wed, May 19, 2010 at 06:17, Rich rhyl...@gmail.com wrote: So Tweetie is now Twitter and has features that no other API client can offer. How about giving us access to features that the new Tweetie has that there is no public end point for such as signing up for an account or suggested user lists? -- 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.
Re: [twitter-dev] re: intermittent 401 and 502 during oauth process
Does this result in a response of Failed to validate oauth signature and token as well? On 5/19/10 11:26 AM, Taylor Singletary wrote: Hi James, Yes, right now we're throwing these kind of errors when our servers are stressed. We hope to have things more stable soon. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Wed, May 19, 2010 at 7:48 AM, wibblefish docherty.ja...@gmail.com mailto:docherty.ja...@gmail.com wrote: Hi All, I have just started to put together a small Twitter application but every so often I am seeing either a 401 Unauthorized or 502 Bad Gateway when acquiring a request token. Would it be normal to see this during twitter 'over capacity' periods? Cheers James -- Dossy Shiobara | do...@panoptic.com | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
[twitter-dev] Urls shorting connection successes
Hi Twitters , I know that I am asking too much,but i'm working and a lot of problems are facing me. First of all, If I posted and url using my application , does twitter automatically make it shorter ?or do I have to to use something special ??.Secondly, how can I know if twitter API is working ?? because now it's going down and up, and I get error messages in my application ! so could you please help me? Note : i'm using Abraham Library for Oauth . Regards, Feras Allaou
Re: [twitter-dev] re: intermittent 401 and 502 during oauth process
Correct. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Wed, May 19, 2010 at 10:18 AM, Dossy Shiobara do...@panoptic.com wrote: Does this result in a response of Failed to validate oauth signature and token as well? On 5/19/10 11:26 AM, Taylor Singletary wrote: Hi James, Yes, right now we're throwing these kind of errors when our servers are stressed. We hope to have things more stable soon. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Wed, May 19, 2010 at 7:48 AM, wibblefish docherty.ja...@gmail.com mailto:docherty.ja...@gmail.com wrote: Hi All, I have just started to put together a small Twitter application but every so often I am seeing either a 401 Unauthorized or 502 Bad Gateway when acquiring a request token. Would it be normal to see this during twitter 'over capacity' periods? Cheers James -- Dossy Shiobara | do...@panoptic.com | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
[twitter-dev] Invalid XML 0x14
Hi all, When trying to persist a stream I'm getting an invalid Unicode char 0x14, which is DEVICE CONTROL FOUR. Takes me back to my childhood, when there was probably some TTY or LPT out there that that meant something to, lol. But it's just appearing in an normal element content. Unfortunately, its giving my XML serializer fits. Is it possible that stray control chars will just appear like this and I need to handle them gracefully by pre-filtering them or pimping my serializer or is this actually something that shouldn't be showing up in the stream at all? thanks, Miles
[twitter-dev] Re: Twitter Crossdomain.xml issue
I've been asking Twitter to review the crossdomain.xml situation for months. You can find old threads on the issue by searching this forum. @raffi has said he elevated the issue to the security team for review. I'm sure they've been mulling it over day-and-night :) In the meantime you will indeed need to use a proxy, and there are lots of examples out there for creating PHP proxies. Here is one to get you started: http://www.switchonthecode.com/tutorials/using-a-php-proxy-with-flex-to-talk-cross-domain You'll have to extend that a bit if you want to pass parameters from Flex to your proxy and then on to Twitter. On May 18, 8:09 am, AndyCatch andrew.ca...@gmail.com wrote: Hello there, My name is Andy, and I'm a Flash Developer. I have been using the Tweetr/SwfJunkie library, and recently when I updated/uploaded my site recently, I got: Ignoring 'secure' attribute in policy file fromhttp://twitter.com/crossdomain.xml. The 'secure' attribute is only permitted in HTTPS and socket policy files. Seehttp://www.adobe.com/go/strict_policy_filesfor details. Now, having done a little research I found this thread from 2008: http://groups.google.com/group/twitter-development-talk/browse_thread... In which a talented Flash Dev named Kris Temmerman mentions using a server side php script on your own domain to connect to the api. He also mentions a nice php class in the docs. a) Can anyone point me to any tutorials/resources that will help me create such a script? I've googled proxy php, data php, server side script and many more but I can't even tell if it's the right thing to be looking at. b) Long shot, but these docs that Mr Temmerman mentions...where might they be? As far as I can tell, though I'm no expert, the problem is stemming from the Twitter Cross Domain policy. Have there been any resolutions that anyone knows of? I've done a lot of digging, but can't really find anything more than a few bug logs, and old forum threads. Any help/advice would be very much appreciated. Kind Regards, / Andy
[twitter-dev] Re: alert() in anywhere.js
We just rolled out @anywhere yesterday and some of our users are experiencing similar issues. http://twitpic.com/1p00d6 Steve On May 14, 6:57 pm, Larry la...@topsy.com wrote: I just came across a coworker's browser that triggered analert() call fromanywhere.js. While okay for development, the use ofalert() is not friendly for production websites. Could these be converted console.log() or some other benign mechanism? Grepping throughanywhere.js I found two instances ofalert(): alert(To set up @anywhere, please provide a client ID); alert(No version matching +Z); Cheers Larry
Re: [twitter-dev] Re: alert() in anywhere.js
On Wed, May 19, 2010 at 11:27 AM, Steve C st...@twitpic.com wrote: We just rolled out @anywhere yesterday and some of our users are experiencing similar issues. http://twitpic.com/1p00d6 We rolled out a fix at the weekend that we fixed all the browsers that we test under but there are obviously still some browsers getting the issue. I think we'll use console.info to display these message instead of an alert. We wanted to let developers know that they needed a clientID in the most noticable way but to avoid unintended annoyance of users we'll move to console.log. Thanks, -- Dan Webb Front-end Engineer, Platform d...@twitter.com / @danwrong +1 415 425 5631
[twitter-dev] Re: alert() in anywhere.js
What is your ETA on rolling out the change? We are deciding on whether we should disable @anywhere until alert() is removed. On May 19, 2:41 pm, Dan Webb d...@twitter.com wrote: On Wed, May 19, 2010 at 11:27 AM, Steve C st...@twitpic.com wrote: We just rolled out @anywhere yesterday and some of our users are experiencing similar issues. http://twitpic.com/1p00d6 We rolled out a fix at the weekend that we fixed all the browsers that we test under but there are obviously still some browsers getting the issue. I think we'll use console.info to display these message instead of an alert. We wanted to let developers know that they needed a clientID in the most noticable way but to avoid unintended annoyance of users we'll move to console.log. Thanks, -- Dan Webb Front-end Engineer, Platform d...@twitter.com / @danwrong +1 415 425 5631
Re: [twitter-dev] Re: alert() in anywhere.js
On Wed, May 19, 2010 at 1:41 PM, Dan Webb d...@twitter.com wrote: On Wed, May 19, 2010 at 11:27 AM, Steve C st...@twitpic.com wrote: We just rolled out @anywhere yesterday and some of our users are experiencing similar issues. http://twitpic.com/1p00d6 We rolled out a fix at the weekend that we fixed all the browsers that we test under but there are obviously still some browsers getting the issue. I think we'll use console.info to display these message instead of an alert. We wanted to let developers know that they needed a clientID in the most noticable way but to avoid unintended annoyance of users we'll move to console.log. Hey Dan, Just wondering...does TwitPic have a bug or misconfiguration or is this an @anywhere bug? Thanks, -damon
Re: [twitter-dev] Re: alert() in anywhere.js
On Wed, May 19, 2010 at 11:48 AM, Damon Clinkscales sca...@pobox.com wrote: On Wed, May 19, 2010 at 1:41 PM, Dan Webb d...@twitter.com wrote: On Wed, May 19, 2010 at 11:27 AM, Steve C st...@twitpic.com wrote: Just wondering...does TwitPic have a bug or misconfiguration or is this an @anywhere bug? Javascript errors at startup time (in these cases by browser bugs in certain browsers that we don't support) are causing the initialization to terminate early leaving the client ID unset. We're going to ensure that unsupport browsers fail silently rather than triggering this alert. ETA for fix is within the hour. -- Dan Webb Front-end Engineer, Platform d...@twitter.com / @danwrong +1 415 425 5631
[twitter-dev] Re: alert() in anywhere.js
Thanks Dan- We appreciate you your teams hard work. On May 19, 2:53 pm, Dan Webb d...@twitter.com wrote: On Wed, May 19, 2010 at 11:48 AM, Damon Clinkscales sca...@pobox.com wrote: On Wed, May 19, 2010 at 1:41 PM, Dan Webb d...@twitter.com wrote: On Wed, May 19, 2010 at 11:27 AM, Steve C st...@twitpic.com wrote: Just wondering...does TwitPic have a bug or misconfiguration or is this an @anywhere bug? Javascript errors at startup time (in these cases by browser bugs in certain browsers that we don't support) are causing the initialization to terminate early leaving the client ID unset. We're going to ensure that unsupport browsers fail silently rather than triggering this alert. ETA for fix is within the hour. -- Dan Webb Front-end Engineer, Platform d...@twitter.com / @danwrong +1 415 425 5631
[twitter-dev] Re: alert() in anywhere.js
One of us is crazy here. If I'm not wrong console.log belongs to firebug. Which means you will get a javascript error on ALL browsers which do not have firebug installed and running. -Nischal On May 19, 11:41 pm, Dan Webb d...@twitter.com wrote: On Wed, May 19, 2010 at 11:27 AM, Steve C st...@twitpic.com wrote: We just rolled out @anywhere yesterday and some of our users are experiencing similar issues. http://twitpic.com/1p00d6 We rolled out a fix at the weekend that we fixed all the browsers that we test under but there are obviously still some browsers getting the issue. I think we'll use console.info to display these message instead of an alert. We wanted to let developers know that they needed a clientID in the most noticable way but to avoid unintended annoyance of users we'll move to console.log. Thanks, -- Dan Webb Front-end Engineer, Platform d...@twitter.com / @danwrong +1 415 425 5631
[twitter-dev] Re: alert() in anywhere.js
I am assuming they will create a dummy function that will be used console.log is undefined- otherwise, you are very right. On May 19, 3:03 pm, nischalshetty nischalshett...@gmail.com wrote: One of us is crazy here. If I'm not wrong console.log belongs to firebug. Which means you will get a javascript error on ALL browsers which do not have firebug installed and running. -Nischal On May 19, 11:41 pm, Dan Webb d...@twitter.com wrote: On Wed, May 19, 2010 at 11:27 AM, Steve C st...@twitpic.com wrote: We just rolled out @anywhere yesterday and some of our users are experiencing similar issues. http://twitpic.com/1p00d6 We rolled out a fix at the weekend that we fixed all the browsers that we test under but there are obviously still some browsers getting the issue. I think we'll use console.info to display these message instead of an alert. We wanted to let developers know that they needed a clientID in the most noticable way but to avoid unintended annoyance of users we'll move to console.log. Thanks, -- Dan Webb Front-end Engineer, Platform d...@twitter.com / @danwrong +1 415 425 5631
[twitter-dev] Re: alert() in anywhere.js
I think throw() seems more appropriate. Firebug and WebKit-based browsers will work with console.log(). A javascript error for an undefined function would still be better than an alert(). Larry On May 19, 12:03 pm, nischalshetty nischalshett...@gmail.com wrote: One of us is crazy here. If I'm not wrong console.log belongs to firebug. Which means you will get a javascript error on ALL browsers which do not have firebug installed and running. -Nischal On May 19, 11:41 pm, Dan Webb d...@twitter.com wrote: On Wed, May 19, 2010 at 11:27 AM, Steve C st...@twitpic.com wrote: We just rolled out @anywhere yesterday and some of our users are experiencing similar issues. http://twitpic.com/1p00d6 We rolled out a fix at the weekend that we fixed all the browsers that we test under but there are obviously still some browsers getting the issue. I think we'll use console.info to display these message instead of an alert. We wanted to let developers know that they needed a clientID in the most noticable way but to avoid unintended annoyance of users we'll move to console.log. Thanks, -- Dan Webb Front-end Engineer, Platform d...@twitter.com / @danwrong +1 415 425 5631
[twitter-dev] Stream API Basic Auth to OAuth
Is Basic Auth going to be shut off on the Stream API as well? -- Furkan Kuru
[twitter-dev] Re: alert() in anywhere.js
Phew... I would have agreed if u guys had said I was crazy too... I follow these threads to understand and learn new stuff... :) -Nischal On May 20, 12:07 am, Steve C st...@twitpic.com wrote: I am assuming they will create a dummy function that will be used console.log is undefined- otherwise, you are very right. On May 19, 3:03 pm, nischalshetty nischalshett...@gmail.com wrote: One of us is crazy here. If I'm not wrong console.log belongs to firebug. Which means you will get a javascript error on ALL browsers which do not have firebug installed and running. -Nischal On May 19, 11:41 pm, Dan Webb d...@twitter.com wrote: On Wed, May 19, 2010 at 11:27 AM, Steve C st...@twitpic.com wrote: We just rolled out @anywhere yesterday and some of our users are experiencing similar issues. http://twitpic.com/1p00d6 We rolled out a fix at the weekend that we fixed all the browsers that we test under but there are obviously still some browsers getting the issue. I think we'll use console.info to display these message instead of an alert. We wanted to let developers know that they needed a clientID in the most noticable way but to avoid unintended annoyance of users we'll move to console.log. Thanks, -- Dan Webb Front-end Engineer, Platform d...@twitter.com / @danwrong +1 415 425 5631
[twitter-dev] Re: Introduce yourself!
Hi, I'm Loreto Parisi, I'm core engineer at Stickphone. Stickphone is a web video phone for Twitter and Facebook. Stickphone permits to have funny video calls with your friends on Twitter o Facebook. We are using Twittter REST API and Facebook Graphi API plus oAuth for user authentication. The User Interface is Flex based and video streaming is a P2P service. Stickphone is in alpha pre-release and we are searching for partners and investors. Follow the stream at http://www.stick-phone.com My personal resumee at http://www.linkedin.com/in/loretoparisi Cheers, LP
[twitter-dev] xAuth gives 401 error code
Hi, I tried to use xAuth. and facing the below exception. Can u please help finding the issue. Thanks Ashok 05-20 01:36:48.582: INFO/AccessToken(530): x_auth_username=sahuashokx_auth_mode=client_authoauth_version=1.0oauth_nonce=516625b7- d264-434f-856f-a2bf3a1bb7b6oauth_signature_method=HMAC- SHA1oauth_consumer_key=4nh2gyegnLIao9MqXZB9Ngx_auth_password=ashoksahuoauth_timestamp=1274299608 05-20 01:36:48.582: INFO/AccessToken(530): https://api.twitter.com/oauth/access_token?x_auth_username=sahuashokx_auth_mode=client_authoauth_version=1.0oauth_nonce=516625b7-d264-434f-856f-a2bf3a1bb7b6oauth_signature_method=HMAC-SHA1oauth_consumer_key=4nh2gyegnLIao9MqXZB9Ngx_auth_password=ashoksahuoauth_timestamp=1274299608 05-20 01:36:48.602: INFO/AccessToken(530): POST 05-20 01:36:48.652: INFO/AccessToken(530): OAuth oauth_consumer_key=4nh2gyegnLIao9MqXZB9Ng,oauth_nonce=255f2c88-1125-401c- a86e-ec3e3f50b039,oauth_signature_method=HMAC- SHA1,oauth_timestamp=1274299608,oauth_version=1.0,oauth_signature=%5BB %4043d04910 05-20 01:36:52.551: INFO/Errorcode=(530): 401 05-20 01:36:52.561: INFO/Errorcode=(530): [Ljava.lang.String;@43d442c0 05-20 01:36:52.561: WARN/System.err(530): java.io.IOException: Received authentication challenge is null 05-20 01:36:52.588: WARN/System.err(530): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequestInternal(HttpURLConnection.java: 1596) 05-20 01:36:52.591: WARN/System.err(530): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequest(HttpURLConnection.java: 1551) 05-20 01:36:52.617: WARN/System.err(530): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getResponseCode(HttpURLConnection.java: 1273) 05-20 01:36:52.621: WARN/System.err(530): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.getResponseCode(HttpsURLConnection.java: 116) 05-20 01:36:52.621: WARN/System.err(530): at com.sahu.TestxAuth.AccessToken.request(AccessToken.java:100) 05-20 01:36:52.632: WARN/System.err(530): at com.sahu.TestxAuth.AccessToken.mainEntry(AccessToken.java:75) 05-20 01:36:52.632: WARN/System.err(530): at com.sahu.TestxAuth.TestxAuth.onCreate(TestxAuth.java:13) 05-20 01:36:52.632: WARN/System.err(530): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 05-20 01:36:52.632: WARN/System.err(530): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2431) 05-20 01:36:52.632: WARN/System.err(530): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2484) 05-20 01:36:52.632: WARN/System.err(530): at android.app.ActivityThread.access$2200(ActivityThread.java:119) 05-20 01:36:52.641: WARN/System.err(530): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1835) 05-20 01:36:52.641: WARN/System.err(530): at android.os.Handler.dispatchMessage(Handler.java:99) 05-20 01:36:52.641: WARN/System.err(530): at android.os.Looper.loop(Looper.java:123) 05-20 01:36:52.641: WARN/System.err(530): at android.app.ActivityThread.main(ActivityThread.java:4325) 05-20 01:36:52.666: WARN/System.err(530): at java.lang.reflect.Method.invokeNative(Native Method) 05-20 01:36:52.671: WARN/System.err(530): at java.lang.reflect.Method.invoke(Method.java:521) 05-20 01:36:52.691: WARN/System.err(530): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) 05-20 01:36:52.691: WARN/System.err(530): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 05-20 01:36:52.691: WARN/System.err(530): at dalvik.system.NativeStart.main(Native Method) 05-20 01:36:53.011: INFO/ActivityManager(52): Displayed activity com.sahu.TestxAuth/.TestxAuth: 5371 ms (total 5371 ms)
Re: [twitter-dev] xAuth gives 401 error code
Hi Ashok, When using xAuth, it's required that you use HTTP-header based OAuth rather than query parameter based OAuth. It appears that you are mixing both together in these requests -- using both query-string based OAuth and header based OAuth. Your request URI should only include: https://api.twitter.com/oauth/access_token and nothing else. Here's a handy checklist of things to remember with xAuth: - You must be using HTTP headers for the OAuth Authorization - You must be using POST as your method - You must be using SSL - Your POST body must contain the x_auth_* parameters as standard application/x-www-form-urlencoded parameters - Your Content-Type should be set to application/x-www-form-urlencoded - If the logins or passwords you are sending have non-url-safe characters, they should be URL encoded in your POST body and encoded again in your signature base string (just like any OAuth request) Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Wed, May 19, 2010 at 1:11 PM, asho...@huawei.com ashok.c...@gmail.comwrote: Hi, I tried to use xAuth. and facing the below exception. Can u please help finding the issue. Thanks Ashok 05-20 01:36:48.582: INFO/AccessToken(530): x_auth_username=sahuashokx_auth_mode=client_authoauth_version=1.0oauth_nonce=516625b7- d264-434f-856f-a2bf3a1bb7b6oauth_signature_method=HMAC- SHA1oauth_consumer_key=4nh2gyegnLIao9MqXZB9Ngx_auth_password=ashoksahuoauth_timestamp=1274299608 05-20 01:36:48.582: INFO/AccessToken(530): https://api.twitter.com/oauth/access_token?x_auth_username=sahuashokx_auth_mode=client_authoauth_version=1.0oauth_nonce=516625b7-d264-434f-856f-a2bf3a1bb7b6oauth_signature_method=HMAC-SHA1oauth_consumer_key=4nh2gyegnLIao9MqXZB9Ngx_auth_password=ashoksahuoauth_timestamp=1274299608 05-20https://api.twitter.com/oauth/access_token?x_auth_username=sahuashokx_auth_mode=client_authoauth_version=1.0oauth_nonce=516625b7-d264-434f-856f-a2bf3a1bb7b6oauth_signature_method=HMAC-SHA1oauth_consumer_key=4nh2gyegnLIao9MqXZB9Ngx_auth_password=ashoksahuoauth_timestamp=1274299608 05-20 01:36:48.602: INFO/AccessToken(530): POST 05-20 01:36:48.652: INFO/AccessToken(530): OAuth oauth_consumer_key=4nh2gyegnLIao9MqXZB9Ng,oauth_nonce=255f2c88-1125-401c- a86e-ec3e3f50b039,oauth_signature_method=HMAC- SHA1,oauth_timestamp=1274299608,oauth_version=1.0,oauth_signature=%5BB %4043d04910 05-20 01:36:52.551: INFO/Errorcode=(530): 401 05-20 01:36:52.561: INFO/Errorcode=(530): [Ljava.lang.String;@43d442c0 05-20 01:36:52.561: WARN/System.err(530): java.io.IOException: Received authentication challenge is null 05-20 01:36:52.588: WARN/System.err(530): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequestInternal(HttpURLConnection.java: 1596) 05-20 01:36:52.591: WARN/System.err(530): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequest(HttpURLConnection.java: 1551) 05-20 01:36:52.617: WARN/System.err(530): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getResponseCode(HttpURLConnection.java: 1273) 05-20 01:36:52.621: WARN/System.err(530): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.getResponseCode(HttpsURLConnection.java: 116) 05-20 01:36:52.621: WARN/System.err(530): at com.sahu.TestxAuth.AccessToken.request(AccessToken.java:100) 05-20 01:36:52.632: WARN/System.err(530): at com.sahu.TestxAuth.AccessToken.mainEntry(AccessToken.java:75) 05-20 01:36:52.632: WARN/System.err(530): at com.sahu.TestxAuth.TestxAuth.onCreate(TestxAuth.java:13) 05-20 01:36:52.632: WARN/System.err(530): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 05-20 01:36:52.632: WARN/System.err(530): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2431) 05-20 01:36:52.632: WARN/System.err(530): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2484) 05-20 01:36:52.632: WARN/System.err(530): at android.app.ActivityThread.access$2200(ActivityThread.java:119) 05-20 01:36:52.641: WARN/System.err(530): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1835) 05-20 01:36:52.641: WARN/System.err(530): at android.os.Handler.dispatchMessage(Handler.java:99) 05-20 01:36:52.641: WARN/System.err(530): at android.os.Looper.loop(Looper.java:123) 05-20 01:36:52.641: WARN/System.err(530): at android.app.ActivityThread.main(ActivityThread.java:4325) 05-20 01:36:52.666: WARN/System.err(530): at java.lang.reflect.Method.invokeNative(Native Method) 05-20 01:36:52.671: WARN/System.err(530): at java.lang.reflect.Method.invoke(Method.java:521) 05-20 01:36:52.691: WARN/System.err(530): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) 05-20 01:36:52.691: WARN/System.err(530): at
[twitter-dev] Re: Twitter Crossdomain.xml issue
Thanks for replying @Orian! I came to the same conclusion. That's a really great resource you've sent me, thanks very much. I feel a bit sorry for the author of the Tweetr library. Must be a very frustrating issue. Fingers cross this gets a resolution. I wonder if it will be some sort of Application Key solution a la the Flickr API. Cheers! On May 20, 4:25 am, Orian Marx (@orian) or...@orianmarx.com wrote: I've been asking Twitter to review the crossdomain.xml situation for months. You can find old threads on the issue by searching this forum. @raffi has said he elevated the issue to the security team for review. I'm sure they've been mulling it over day-and-night :) In the meantime you will indeed need to use a proxy, and there are lots of examples out there for creating PHP proxies. Here is one to get you started:http://www.switchonthecode.com/tutorials/using-a-php-proxy-with-flex-... You'll have to extend that a bit if you want to pass parameters from Flex to your proxy and then on to Twitter. On May 18, 8:09 am, AndyCatch andrew.ca...@gmail.com wrote: Hello there, My name is Andy, and I'm a Flash Developer. I have been using the Tweetr/SwfJunkie library, and recently when I updated/uploaded my site recently, I got: Ignoring 'secure' attribute in policy file fromhttp://twitter.com/crossdomain.xml. The 'secure' attribute is only permitted in HTTPS and socket policy files. Seehttp://www.adobe.com/go/strict_policy_filesfordetails.; Now, having done a little research I found this thread from 2008: http://groups.google.com/group/twitter-development-talk/browse_thread... In which a talented Flash Dev named Kris Temmerman mentions using a server side php script on your own domain to connect to the api. He also mentions a nice php class in the docs. a) Can anyone point me to any tutorials/resources that will help me create such a script? I've googled proxy php, data php, server side script and many more but I can't even tell if it's the right thing to be looking at. b) Long shot, but these docs that Mr Temmerman mentions...where might they be? As far as I can tell, though I'm no expert, the problem is stemming from the Twitter Cross Domain policy. Have there been any resolutions that anyone knows of? I've done a lot of digging, but can't really find anything more than a few bug logs, and old forum threads. Any help/advice would be very much appreciated. Kind Regards, / Andy
[twitter-dev] 4 Listed How can i get that number from an api call?
Thanks