Coder Social home page Coder Social logo

Comments (18)

yujuan avatar yujuan commented on April 25, 2024

I do not see this issue. is it just slow response? BTW, I see your url is not really correct. Are they from your debugger into the sdk?

from facebook-ios-sdk.

ChristoDeluxe avatar ChristoDeluxe commented on April 25, 2024

I see this issue with the Facebook -dialog: call for stream.publish -- the webview popup comes up, and you can touch the text field to make the keyboard come up, but once you type the first letter, the cursor disappears from the field (it was there before typing), and the typing you do on the keyboard doesn't produce any text.

you have to touch a couple of times (or hold to get the magnifier) to put the focus back on the text field, and after that it works fine until you publish This problem seems to happen on iOS 4.1 devices as well as the iPhone simulator using current iOS SDK 4.1 tools. I've confirmed it on two computers here and two separate devices.

My app is a fairly simple app, built around a tab bar and a screen that slid in from a navigation controller. There's no modal stuff or extra windows or anything, so I'm not sure what is causing the focus to disappear.

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 25, 2024

Can you try to use DemoApp and change the description to a long one or add some field in the DemoApp and try to run that to see if that problem is there.

from facebook-ios-sdk.

ChristoDeluxe avatar ChristoDeluxe commented on April 25, 2024

Hi yujuan,

Yes, exactly my idea too!

If you include an image and longer description, then the problem becomes reproducible in the DemoApp

Just replace the publish method with this, and you should be able to reproduce it:


- (IBAction) publishStream: (id)sender {
SBJSON *jsonWriter = [[SBJSON new] autorelease];

NSDictionary* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys: @"Always Running",@"text",@"http://itsti.me/",@"href", nil], nil];

 NSDictionary *media = [NSDictionary dictionaryWithObjectsAndKeys: @"http://www.sodium101.ca/en/images/Sodium101_A_14.jpg", @"src", @"image", @"type",@"http://www.sodium101.ca/", @"href", nil];
 NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
 NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys: @"a long run", @"name", @"The Facebook Running app", @"caption", @"This is a long description. This is a long description. This is a long description. This is a long description. This is a long description. This is a long description. This is a long description. This is a long description. This is a long description. This is a long description.", @"description", @"http://itsti.me/", @"href", [NSArray arrayWithObject: media], @"media", nil];
NSString *attachmentStr = [jsonWriter stringWithObject:attachment];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: kAppId, @"api_key", @"Share on Facebook",  @"user_message_prompt", actionLinksStr, @"action_links", attachmentStr, @"attachment", nil];

[_facebook dialog: @"stream.publish" andParams: params andDelegate:self];
}

from facebook-ios-sdk.

ChristoDeluxe avatar ChristoDeluxe commented on April 25, 2024

ok fixed the code paste in my last post so it looks right -- I've included a media image and made the description very long -- with that code, the focus problem starts to happen

this is with today's version of the code in github (facebook sdk and demoapp)

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 25, 2024

It looks like this issue https://appcelerator.tenderapp.com/discussions/support/639-focus-set-focus

There is even a screenr show the issue
http://screenr.com/8LN

isn't it?

from facebook-ios-sdk.

ChristoDeluxe avatar ChristoDeluxe commented on April 25, 2024

Hi,

Yes, it does look like that video on http://screenr.com/8LN

It may be related, since that facebook pop-up panel is built on a UIWebView, isn't it?

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 25, 2024

Yes, it is. Can you try to use shorter description, instead, put the description in your web page, and have a url link to the description?

from facebook-ios-sdk.

jeromelebel avatar jeromelebel commented on April 25, 2024

it looks like the same problem. As I said, I can reproduce this bug without using my app, just in safari for iphone, using the 2 links I posted. The only workaround I found is to make the description of the message to post, shorter (which doesn't make sense since there is no real relation between the textfield and the message description).

I think the bug is either in the html/javascript or in webkit... I tried to change the focus using some javascript that I executed in the webview of my app, but nothing worked.

from facebook-ios-sdk.

jeromelebel avatar jeromelebel commented on April 25, 2024

I just tried again with in the simulator, I can't reproduce it anymore using the url... I will try to build a simple app to demonstrate the bug.

from facebook-ios-sdk.

ChristoDeluxe avatar ChristoDeluxe commented on April 25, 2024

@jeromelebel: you can reproduce with their DemoApp code, just using the code I pasted above

@yujuan: unfortunately, I can't change the app to put the description text on the web, since the iPhone app is generating that text custom for each post (and the user will be able to edit the text at will before posting). Really, this problem should be fixed in the SDK if possible, or filed with Apple if it's a WebKit/UIWebView bug...

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 25, 2024

As people who are not using facebook sdk are having this issue. It should be a WebKit bug. I will file with Apple to see if they can solve that

from facebook-ios-sdk.

jriskin avatar jriskin commented on April 25, 2024

Are we sure this is a WebKit problem? I'm finding the same problem, shortening the description seems to solve it as a temporary fix. Either way, quite annoying...

from facebook-ios-sdk.

cbarrett avatar cbarrett commented on April 25, 2024

I'm still seeing this issue.

@yujuan any timeline or information on a fix? My application is posting photos to the user's wall, it is a major bummer if we have to remove this...

Also this bug should be open -- it's still affecting people.

from facebook-ios-sdk.

mginod avatar mginod commented on April 25, 2024

I have the exact same issue, both in simulator and on the device. Even with a short description it does not always work...Why is this bug closed ?

[EDIT] I manage to get it working by passing a value for the "message" parameter. That way when the dialog appears, the textarea has already a message value in it and it seems there's no more focus problem.

from facebook-ios-sdk.

onedayitwillmake avatar onedayitwillmake commented on April 25, 2024

Thanks so much to emaginweb, that trick worked!

from facebook-ios-sdk.

najster avatar najster commented on April 25, 2024

thanks, it helped me. but i didn't want to prefill the field, so i put space in there, but then the first letter is always ignored.. no clue why.. will live with the current work-around for now.

from facebook-ios-sdk.

fandygotama avatar fandygotama commented on April 25, 2024

facebook now forbid app to set the message from app

This field will be ignored on July 12, 2011 The message to prefill the text field that the user will type in. To be compliant with Facebook Platform Policies, your application may only set this field if the user manually generated the content earlier in the workflow. Most applications should not set this.

and now i have this losing focus problem again.

from facebook-ios-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.