Comments (18)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
@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.
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.
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.
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.
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.
Thanks so much to emaginweb, that trick worked!
from facebook-ios-sdk.
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.
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)
- I installed iOS SDK version 16.0.3 using the Swift Package Manager process, but when I checked on the Facebook developer account, it showed version 0.3.1. HOT 1
- Wrong version in SPM Xcode 15.3, latest release 17.0.0 but SPM package declares 14.1.0 HOT 9
- I want to updating Facebook SDK to 17.0.0 bug it is fail ,please update to 17.0.0 HOT 5
- The accessToken generated by SDK 17.0.0 is Invalid: `Invalid OAuth access token - Cannot parse access token ` HOT 22
- Missing header for objective c FBSDKApplicationDelegate.h missing
- Can't use FBSDKLogin using Swift Package Manager HOT 4
- [iOS] `AppLinkUtility.fetchDeferredAppLink` returns nil url in completion
- Don't show 'isAdvertiserTrackingEnabled' deprecation warning below iOS 17 HOT 5
- iOS Facebook SDK lost session regularly HOT 1
- Facebook SDK(dynamic) Validation Failed in Unity
- Facebook Login doesn't open the App when Installed HOT 5
- App switches to limited login. HOT 10
- Facebook SDK automatic app events logging with StoreKit2 HOT 2
- Static Framework as a swift package
- Access Token Expiration error HOT 1
- Build error with FBAudienceNetwork.xcframework: Signature cannot be verified HOT 2
- ld: symbol(s) not found for architecture arm64 (Flutter) HOT 5
- iOS SDK API does not work even after performing all requested actions
- Privacy manifests only included in release 17.0.0 with breaking changes HOT 12
- Xcode15.3: After updating SDKv17.0.0 through SPM, an error occurred while running the project: dyld [5199]: Library not loaded: @ rpath/FBSDKCoreKit. framework/FBSDKCoreKit, unable to start the application HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-ios-sdk.