[twitter-dev] Re: Tweet button and iphone

2011-07-27 Thread Victor Ruiz
Please, let me summarize.

On Android, working with intents and after sharing successfully, the
window closes automatically so it returns to the previous page. The
window that automatically closes should have set up a timeout because
it takes some seconds to be closed. If for example client browser
doesn't support Javascript, there is a cancel button that also works
perfectly.

On iPhone, is different than in Android, because after sharing
successfully, you don't have possibility to close and return back. I
guess Twitter detects the user agent and show different pages in
Android and iPhone, isn't it?

Does anybody know if it is something that is going to be fixed?
Thanks!



On 21 jul, 07:21, anaj...@ibs.com.jo anajjar
%ibs.com...@gtempaccount.com wrote:
 It's working perfectly,Thanks Ben

 Note: This issue is also noticed in another url,please check my other
 thread here:

 https://groups.google.com/group/twitter-development-talk/browse_threa...

-- 
Have you visited the Developer Discussions feature on 
https://dev.twitter.com/discussions yet?

Twitter developer links:
Documentation and resources: https://dev.twitter.com/docs
API updates via Twitter: https://twitter.com/twitterapi

Unsubscribe or change your group membership settings: 
http://groups.google.com/group/twitter-development-talk/subscribe


Re: [twitter-dev] Re: Tweet button and iphone

2011-07-27 Thread Ben Ward
On Jul 27, 2011, at 3:43 AM, Victor Ruiz wrote:

 On Android, working with intents and after sharing successfully, the
 window closes automatically so it returns to the previous page. The
 window that automatically closes should have set up a timeout because
 it takes some seconds to be closed. If for example client browser
 doesn't support Javascript, there is a cancel button that also works
 perfectly.
 
 On iPhone, is different than in Android, because after sharing
 successfully, you don't have possibility to close and return back. I
 guess Twitter detects the user agent and show different pages in
 Android and iPhone, isn't it?

iPhone and Android both have the same Web Intents UI (as do all devices, 
actually.) The behaviour you describe for Android, where the Intent page 
automatically closes and the browser takes you back to the original page is the 
correct behaviour. You should get the same experience on Android and iPhone.

The behaviour you're seeing on iPhone there is odd, but could occur (on any 
device) if the Tweet Intent is invoked in a different way (either without 
JavaScript, or without a window.opener being set.)

Can you link to the specific case where the iPhone UI isn't behaving as 
expected? I'll take a look to debug it.

Thanks,

Ben

On 21 jul, 07:21, anaj...@ibs.com.jo anajjar
 %ibs.com...@gtempaccount.com wrote:
 It's working perfectly,Thanks Ben
 
 Note: This issue is also noticed in another url,please check my other
 thread here:
 
 https://groups.google.com/group/twitter-development-talk/browse_threa...
 
 -- 
 Have you visited the Developer Discussions feature on 
 https://dev.twitter.com/discussions yet?
 
 Twitter developer links:
 Documentation and resources: https://dev.twitter.com/docs
 API updates via Twitter: https://twitter.com/twitterapi
 
 Unsubscribe or change your group membership settings: 
 http://groups.google.com/group/twitter-development-talk/subscribe

-- 
Have you visited the Developer Discussions feature on 
https://dev.twitter.com/discussions yet?

Twitter developer links:
Documentation and resources: https://dev.twitter.com/docs
API updates via Twitter: https://twitter.com/twitterapi

Unsubscribe or change your group membership settings: 
http://groups.google.com/group/twitter-development-talk/subscribe


[twitter-dev] Re: Tweet button and iphone

2011-07-27 Thread anaj...@ibs.com.jo
Can you link to the specific case where the iPhone UI isn't behaving
as expected?

What about the oauth page? first make sure you're already logged in
your twitter account,copy the following link then paste it in a new
window/tab,use any browser you want;Firefox,Chrome or safari

https://oauth.twitter.com/2/authorize?oauth_callback_url=http://mobijoke.internet.com.jo%2Flogin.htmloauth_mode=flow_web_clientoauth_client_identifier=HUuFkcSyjWptABGMxytpwwredirect_uri=http%3A%2F%2Fmobijoke.internet.com.jo%2Flogin.htmlresponse_type=token_=1311159077071client_id=HUuFkcSyjWptABGMxytpww

You will notice that cancel button doesn't work at all,you can click
as much as you want on it but no effect,as if the button click event
isn't handled at all,this is the issue,It should return the user back
to the url provided in the querystring oauth_callback_url in case the
user clicked on cancel button.

Note: In case you wondered what is that link,it's the url of the popup
that appears by clicking on  connect with twitter button,you can
find what I'm talking about here in my website here:

http://mobijoke.internet.com.jo/login2.html

Please I want a solution for this or any alternatives,I've been stuck
with this issue for more than a week and no response from twitter on
it at all.

-- 
Have you visited the Developer Discussions feature on 
https://dev.twitter.com/discussions yet?

Twitter developer links:
Documentation and resources: https://dev.twitter.com/docs
API updates via Twitter: https://twitter.com/twitterapi

Unsubscribe or change your group membership settings: 
http://groups.google.com/group/twitter-development-talk/subscribe


[twitter-dev] Re: Tweet button and iphone

2011-07-21 Thread anaj...@ibs.com.jo
It's working perfectly,Thanks Ben

Note: This issue is also noticed in another url,please check my other
thread here:

https://groups.google.com/group/twitter-development-talk/browse_thread/thread/4707a56e863e9b1f/623b40b3ba18601b?lnk=gstq=anajjar#623b40b3ba18601b

-- 
Have you visited the Developer Discussions feature on 
https://dev.twitter.com/discussions yet?

Twitter developer links:
Documentation and resources: https://dev.twitter.com/docs
API updates via Twitter: https://twitter.com/twitterapi

Unsubscribe or change your group membership settings: 
http://groups.google.com/group/twitter-development-talk/subscribe


Re: [twitter-dev] Re: Tweet button and iphone

2011-07-18 Thread Ben Ward
Hi Anajjar,

On Jul 17, 2011, at 7:35 AM, anaj...@ibs.com.jo wrote:

 Thank you very much,can you please inform me when it's going to be
 deployed this week? or at least update me on this thread once it's
 deployed? Thanks again

This fix is live now. You should now find that cancel buttons link to the 
original_referer where appropriate.

Ben

-- 
Have you visited the Developer Discussions feature on 
https://dev.twitter.com/discussions yet?

Twitter developer links:
Documentation and resources: https://dev.twitter.com/docs
API updates via Twitter: https://twitter.com/twitterapi

Unsubscribe or change your group membership settings: 
http://groups.google.com/group/twitter-development-talk/subscribe


[twitter-dev] Re: Tweet button and iphone

2011-07-14 Thread anaj...@ibs.com.jo
Can someone please respond on my issue? Why the support doesn't follow
up with my issue to the end?!! :\ ,Is there any other place to get
better support than here ?

-- 
Have you visited the Developer Discussions feature on 
https://dev.twitter.com/discussions yet?

Twitter developer links:
Documentation and resources: https://dev.twitter.com/docs
API updates via Twitter: https://twitter.com/twitterapi

Unsubscribe or change your group membership settings: 
http://groups.google.com/group/twitter-development-talk/subscribe


Re: [twitter-dev] Re: Tweet button and iphone

2011-07-14 Thread Ben Ward
Hi Anajjar,

The fix for the cancel button links is done, and should be deployed next week.

Ben

On Jul 13, 2011, at 11:05 PM, anaj...@ibs.com.jo wrote:

 Can someone please respond on my issue? Why the support doesn't follow
 up with my issue to the end?!! :\ ,Is there any other place to get
 better support than here ?
 
 -- 
 Have you visited the Developer Discussions feature on 
 https://dev.twitter.com/discussions yet?
 
 Twitter developer links:
 Documentation and resources: https://dev.twitter.com/docs
 API updates via Twitter: https://twitter.com/twitterapi
 
 Unsubscribe or change your group membership settings: 
 http://groups.google.com/group/twitter-development-talk/subscribe

-- 
Have you visited the Developer Discussions feature on 
https://dev.twitter.com/discussions yet?

Twitter developer links:
Documentation and resources: https://dev.twitter.com/docs
API updates via Twitter: https://twitter.com/twitterapi

Unsubscribe or change your group membership settings: 
http://groups.google.com/group/twitter-development-talk/subscribe


[twitter-dev] Re: Tweet button and iphone

2011-07-10 Thread anaj...@ibs.com.jo
Ah, you've found a bug. Thanks! I'll fix that. The cancel button there should 
behave the same way as cancel buttons elsewhere (e.g. in the after-Tweet 
screen) and redirect to the original referrer.

If you fix this issue then all my issues with tweet button will be
solved and I will be able to keep it in all of our projects,please
tell me when you can fix it? it's very urgent!! Our management want a
decision if we can add tweet button in all of our projects without any
issues with the web container.


Unfortunatly `window.opener` isn't available in our web
container,instead it will open in the same window of the original
page,and what's worse is that it's a native web container programmed
in XCODE and it's built as a generic web container to work with any
website,so it's impossible to make any changes on the web container,I
need to fix the issue either from my side on my pages or your side by
fixing the issue of the cancel button,as I can see it's easier to be
fixed from your side.

I will be waiting for your response ^^ ,thanks again Seth

On Jul 8, 1:17 am, Ben Ward benw...@twitter.com wrote:
 Hi Anajjar,

 On Jul 7, 2011, at 6:28 AM, anaj...@ibs.com.jo wrote:

  the login page will appear and you can see the cancel button,click on 
  cancel button,now it should return the user back to that link and as you 
  can see the link has a querystring original_referer with the original url 
  so the cancel button SHOULD return back to that url,but you will notice 
  that it doesn't return the user back to that page and instead it redirects 
  to twitter homepage

 Ah, you've found a bug. Thanks! I'll fix that. The cancel button there should 
 behave the same way as cancel buttons elsewhere (e.g. in the after-Tweet 
 screen) and redirect to the original referrer.

 On Jul 2, 2011, anaj...@ibs.com.jo wrote:

  In Safari I don't have any issues,but I do have issues with tweet
  button within the container,once the login window of twitter appears
  and user clicks on cancel it doesn't return the user back to my
  page,instead it redirects the user to twitter homepage,Is there any
  solution for this?

 For what it's worth, this is the full cascade of behaviours that Cancel 
 buttons have within Web Intents:

 1. If the intent is a pop-up window (e.g. if `window.opener` is available) 
 then clicking a cancel button will close the window. On desktop, this closes 
 the window as you'd expect. On mobile platforms such as the iPhone, this 
 closes the page and flips the user back to the page that invoked the Intent.

 2. If `window.opener` isn't available, then the page is assumed to have been 
 navigated to conventionally. In this case, the destination of cancel links is 
 (or should be) set with the following priority:

 2a. To the original_referrer, if available and valid.
 2b. If original_referrer is not set, or if the original_referrer is an 
 invalid URL, or that URL falls foul of our known-malware-URL filter, then the 
 cancel buttons will simply point to twitter.com.

 Finally, note that if you “pop up” an intent within a WebView in a native 
 app, that does not set `window.opener`, so the page will believe it's been 
 invoked directly in a browser (because it has.) If you want to handle the 
 close event, you'll need to watch the source URLs.

 If it's possible to create a WebView on your platform of choice, and set a 
 default window.opener *and* override window.close() with a call to native 
 ‘close the WebView’ code, then you may be able invoke the Intent in a WebView 
 and have all the autoclose behaviour from the web work. I've never tried this 
 though.

 Ben
 --
 @benward
 Twitter, Web Intents developer

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Re: Tweet button and iphone

2011-07-07 Thread anaj...@ibs.com.jo
Thanks for your reply Seth

Is it possible that your implementation doesn't support a popup from
Twitter?

I'm not sure,but since the popup do appear without any issues so I
think our implementation support popups without any issues,but the
cancel button within twitter sharebox doesn't work as it should be,it
doesn't return the user back to my page and instead it redirects the
user to twitter page,the problem is in the behavior of cancel button
and I don't know why it behaves like that.


I can reproduce the issue in kinda the same way but here on my PC,here
are the steps:

Let's open a page that has a tweet button,maybe like this one:

http://dev.twitter.com/pages/tweet_button?utm_source=twitterfeedutm_medium=twitter

good,now scroll down to section Positioning the count box

do you see the first tweet button on the left,the one that has a word
none on top of it? right-click on that button then choose Copy Link
Address [Note: I use Google Chrome],I did that already and here the
url:

https://twitter.com/share?original_referer=http%3A%2F%2Fdev.twitter.com%2Fpages%2Ftweet_button%3Futm_source%3Dtwitterfeed%26utm_medium%3Dtwittersource=tweetbuttontext=Tweet%20Button%20%7C%20dev.twitter.comurl=http%3A%2F%2Fdev.twitter.com%2Fpages%2Ftweet_button%3Futm_source%3Dtwitterfeed%26utm_medium%3Dtwitter


now paste the url in a new window/tab in your browser but first make
sure you're not already logged in twitter account,the login page will
appear and you can see the cancel button,click on cancel button,now it
should return the user back to that link and as you can see the link
has a querystring original_referer with the original url so the cancel
button SHOULD return back to that url,but you will notice that it
doesn't return the user back to that page and instead it redirects to
twitter homepage,that's exactly how the web container behave and this
is the issue with the cancel button,I hope I cleared my issue and my
steps are straightforward, I hope you have a solution for this.

On Jul 7, 2:50 am, Seth Bindernagel s...@twitter.com wrote:
 Hi Anajjar:

 Sorry we couldn't be more help.

 Is it possible that your implementation doesn't support a popup from
 Twitter? If so, there might be a solution that works, but we'd have to
 specifically diagnose why your app is not working. If I can find
 anything that might help your situation, I'll be sure to add it to this
 thread.

 Best wishes,

 Seth

 anaj...@ibs.com.jo wrote:
  Because of Lack of support by Twitter and we didn't face any such
  issues with Facebook,we had no choice but to remove twitter from all
  of our projects and use Facebook instead,Thanks to everyone who tried
  to help .

 --
 Seth Bindernagel | @binder
 https://twitter.com/intent/follow?screen_name=binder

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Re: Tweet button and iphone

2011-07-07 Thread Ben Ward
Hi Anajjar,

On Jul 7, 2011, at 6:28 AM, anaj...@ibs.com.jo wrote:

 the login page will appear and you can see the cancel button,click on cancel 
 button,now it should return the user back to that link and as you can see the 
 link has a querystring original_referer with the original url so the cancel 
 button SHOULD return back to that url,but you will notice that it doesn't 
 return the user back to that page and instead it redirects to twitter homepage

Ah, you've found a bug. Thanks! I'll fix that. The cancel button there should 
behave the same way as cancel buttons elsewhere (e.g. in the after-Tweet 
screen) and redirect to the original referrer.

On Jul 2, 2011, anaj...@ibs.com.jo wrote:

 In Safari I don't have any issues,but I do have issues with tweet
 button within the container,once the login window of twitter appears
 and user clicks on cancel it doesn't return the user back to my
 page,instead it redirects the user to twitter homepage,Is there any
 solution for this?

For what it's worth, this is the full cascade of behaviours that Cancel buttons 
have within Web Intents:

1. If the intent is a pop-up window (e.g. if `window.opener` is available) then 
clicking a cancel button will close the window. On desktop, this closes the 
window as you'd expect. On mobile platforms such as the iPhone, this closes the 
page and flips the user back to the page that invoked the Intent.

2. If `window.opener` isn't available, then the page is assumed to have been 
navigated to conventionally. In this case, the destination of cancel links is 
(or should be) set with the following priority:

2a. To the original_referrer, if available and valid.
2b. If original_referrer is not set, or if the original_referrer is an invalid 
URL, or that URL falls foul of our known-malware-URL filter, then the cancel 
buttons will simply point to twitter.com.

Finally, note that if you “pop up” an intent within a WebView in a native app, 
that does not set `window.opener`, so the page will believe it's been invoked 
directly in a browser (because it has.) If you want to handle the close event, 
you'll need to watch the source URLs.

If it's possible to create a WebView on your platform of choice, and set a 
default window.opener *and* override window.close() with a call to native 
‘close the WebView’ code, then you may be able invoke the Intent in a WebView 
and have all the autoclose behaviour from the web work. I've never tried this 
though.

Ben
--
@benward
Twitter, Web Intents developer

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Re: Tweet button and iphone

2011-07-06 Thread Seth Bindernagel

Hi Anajjar:

Sorry we couldn't be more help.

Is it possible that your implementation doesn't support a popup from 
Twitter? If so, there might be a solution that works, but we'd have to 
specifically diagnose why your app is not working. If I can find 
anything that might help your situation, I'll be sure to add it to this 
thread.


Best wishes,

Seth

anaj...@ibs.com.jo wrote:

Because of Lack of support by Twitter and we didn't face any such
issues with Facebook,we had no choice but to remove twitter from all
of our projects and use Facebook instead,Thanks to everyone who tried
to help .



--
Seth Bindernagel | @binder 
https://twitter.com/intent/follow?screen_name=binder


--
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Re: Tweet button and iphone

2011-07-05 Thread anaj...@ibs.com.jo
Because of Lack of support by Twitter and we didn't face any such
issues with Facebook,we had no choice but to remove twitter from all
of our projects and use Facebook instead,Thanks to everyone who tried
to help .

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Re: Tweet button and iphone

2011-07-02 Thread anaj...@ibs.com.jo
Sorry about the link,and I think I didn't provide all details ^^;

Well...the problem is that another department in my company developed
an application for iphone that acts like a web container,this
application request my page and that's it.

In Safari I don't have any issues,but I do have issues with tweet
button within the container,once the login window of twitter appears
and user clicks on cancel it doesn't return the user back to my
page,instead it redirects the user to twitter homepage,Is there any
solution for this?

On Jun 30, 8:06 pm, Seth Bindernagel s...@twitter.com wrote:
 Hi Anajjar,

 I've been trying to click on your site to test your example, but the
 site is not responding. However, when a user clicks a Tweet Button on a
 site using mobile Safari on the iPhone, a new browser window will open
 with the Tweet intent. If a user is logged in, he can complete that
 intent. If not, he will be prompted to sign in. I just tested this with
 Twitter's main blog athttp://blog.twitter.comfrom an iPhone using iOS
 4.3.3. Users can return to your site by pressing the iOS UI that shows
 all open pages (up to 8) and swiping back to your site.

 Hope this helps.

 Seth









 anaj...@ibs.com.jo wrote:
  Hi:

  I develop mobile websites and I want to use a tweet button in one of
  my pages,since using twitter with a mobile website is the first time
  for me I did a test page.

  This is my page:http://iphone.internet.com.jo/login.html

  When a user visit my website from a device like iphone and click tweet
  button,it will show the popup [Share box] as the current page [not as
  a popup],if the user doesn't want to login and clicked on cancel then
  twitter page should redirect the user back to my page but that wasn't
  the result,it redirects the user to twitter homepage.

  Is there a solution or any workarounds for this? I want the user to be
  able to tweet from iphone without any popups and also be able to
  return back to my site if (s)he didn't want to login.

 --
 Seth Bindernagel | @binder
 https://twitter.com/intent/follow?screen_name=binder

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk