Comments (51)
Seems he's not alone. Several users have reported this now.
from facebook-ios-sdk.
It might be a coincidence, but so far all these users are from Italy and Australia.
from facebook-ios-sdk.
One of my users emailed me a video showing me the problem. Seems there is a Bad Request at top:
http://obj-factory.com/error.m4v
from facebook-ios-sdk.
This actually looks like an error returned by Apple instead of from us. Can you repro this by putting a debugger to the place where the error is throwed?
from facebook-ios-sdk.
I can't even reproduce the problem.
from facebook-ios-sdk.
Okay, found an Australian proxy here (116.255.24.45:8080), and I get the same error.
from facebook-ios-sdk.
As this error is from Apple , my suggestion is first check with apple to see what this error means..
from facebook-ios-sdk.
didFailLoad doesn't seem to be triggered neither in FBDialog nor in FBLoginDialog. My guess is that this error isn't produced by UIWebView, but by the server.
This is the request gotten from didFinishLoad:
from facebook-ios-sdk.
Okay, so I can't post the request here, uploaded it here: http://obj-factory.com/request.txt
from facebook-ios-sdk.
The fact that this is a regional issue, without it having anything to do with regional settings on the device, makes me think this must be related to the Facebook servers themselves. Are there regional servers for Italy and Australia?
from facebook-ios-sdk.
I just tried with the demo apps here and I can reproduce it there as well using an Australian proxy, so it's definitely not local to my app.
from facebook-ios-sdk.
use the Australian proxy, and find out the can you access the oauth url within safari? the oauth url can be obtained by putting a debugger in the FBDialog.m
from facebook-ios-sdk.
from facebook-ios-sdk.
Where do we go from here?
from facebook-ios-sdk.
Why has this been closed?
from facebook-ios-sdk.
This was recently reported here as well:
http://bugs.developers.facebook.net/show_bug.cgi?id=9944
Looks like an issue with the touch.facebook.com SSL certificate in some markets. I haven't been able to reproduce it but we'll investigate.
from facebook-ios-sdk.
Great! :)
from facebook-ios-sdk.
If you're able to repro it in a browser, can you paste the full certificate info?
from facebook-ios-sdk.
Just tried right now and now I just get the default "Sorry, an error has occurred." Facebook page.
from facebook-ios-sdk.
And now it worked in the browser. Any way to get the certificate info from the webview? I can reproduce it there.
from facebook-ios-sdk.
And now I get the error in the browser again. :P
So how can I get the full certificate info from the browser? Using Safari 5.0.1
from facebook-ios-sdk.
Ok, every second or third time I try now (through the app) it actually works. Then I try again, and it gives me the bad request again. Are you changing something?
from facebook-ios-sdk.
I do not think we had change anything. We will investigate this issue and will keep you posted
from facebook-ios-sdk.
Thank you. :)
from facebook-ios-sdk.
When you get the bad certificate error in the browser, it usually has an option like "View Certificate"
from facebook-ios-sdk.
I got it to happen in Chrome and Firefox as well (seems there's a separate Proxy setting in Firefox independent of the system settings). Neither of which gives me an option to view certificate, and page info in Chrome says there is no certificate. Take a look here: http://obj-factory.com/badrequest.png
from facebook-ios-sdk.
Huh. So there's no cert because you're not accessing the HTTPS version (I see above that your repro url is http as well).
Can you grab an HTTP trace that I could inspect, including the IP of the server you're hitting? I suggest using Charles Proxy to do that.
from facebook-ios-sdk.
I get the requests in my app through my own cache, here it is (abbreviated URLs):
Do you need more?
from facebook-ios-sdk.
^ Just wanted to clarify, there are no more URLs/requests after those.
from facebook-ios-sdk.
can you use tcpdump to try to get a traffic dump? That would greatly helpful.
Thanks!
from facebook-ios-sdk.
Also can you visit www.facebook.com or touch.facebook.com directly with your browser on Australia proxy? http://techcrunch.com/2007/12/30/australia-joins-china-in-censoring-the-internet/ hopefully, it is not related to their filter.
from facebook-ios-sdk.
^ Can access both fine through the proxy. Here's the proxy I'm using: 116.255.24.45:8080
from facebook-ios-sdk.
But with the browser, you got this error if you use the url in the sdk as shown on your picture, is that correct?
from facebook-ios-sdk.
Yep. I'll email you my pcap from tcpdump now.
from facebook-ios-sdk.
From your tcpdump, the Bad Request response are from AkamaiGhost. It should be some thing between your client and our server.
from facebook-ios-sdk.
Well this is what happens, perhaps you are looking at the wrong place for the problem?
from facebook-ios-sdk.
Use tcpdump -a -A -r DumpFile01.pcap
You will see the Bad request Response is from AkamaiGHost. It does not reach our server
..S.....HTTP/1.1 400 Bad Request
Server: AkamaiGHost
Mime-Version: 1.0
Content-Type: text/html
Content-Length: 216
Expires: Thu, 26 Aug 2010 23:51:26 GMT
Date: Thu, 26 Aug 2010 23:51:26 GMT
from facebook-ios-sdk.
So what does that mean? Is all traffic in Italy and Australia filtered and doesn't reach your servers? That just sound unbelievable to me.
from facebook-ios-sdk.
We did a little research. There's a few interesting things:
1/ The URL being requested from touch.facebook.com is like 6k - way longer than it should be
2/ In the Pcap, the GET request is actually querying the full url instead of just the path. What browser / program are you using to actually make this request? Is it the iOS device?
3/ We are using Akamai acceleration for our mobile site overseas. The Akamai endpoint that you are hitting for touch.facebook.com through that proxy is 144.135.8.171.
So we need some help from you to help us understand what's happening here. Can you do the following:
- Run the requests through an SSL-enabled proxy? We want to see if the Location header of the response from www.facebook.com/connect/uiserver.php... contains this long URL. If it does, then it's a problem on our side; if it doesn't then something is garbling it on your client.
Here's the command we used to try to repro it. This works okay though, returns a correct login page:
from facebook-ios-sdk.
On a little more experimentation it looks like it's just the length that causes the issues. If the URL gets over 4k then our Akamai service throws a bad request. Our URLs are just way too long because we repeat the permissions a few times.
We are working on a longer term fix but it will take some time to eliminate all the extra URLs. In the short term, you can fix this by requesting fewer permissions.
from facebook-ios-sdk.
How long time are we talking about?
from facebook-ios-sdk.
It may take a few weeks. Thanks for your patience.
from facebook-ios-sdk.
Any chance you could tell me how much I need to remove, I'm using most of the permissions, and the ones I don't use I will probably be using soon.
from facebook-ios-sdk.
Right now the url is of size 6K while the limit is 4K...
from facebook-ios-sdk.
What about adding a user_all and friends_all permission? Wouldn't that be an easier fix?
from facebook-ios-sdk.
We have pushed out a change recently which has reduce a chunk of the url size. You may want to try to add a few perms to see if it is still work. We still have some big chunks in the url that would need to be removed. that would need a couple of more weeks. thanks
from facebook-ios-sdk.
I am following to see if we have fixed this issue
from facebook-ios-sdk.
We made the URLs much smaller last month, so this issue should be fixed. Let me know if you run into more problems.
from facebook-ios-sdk.
Brent, I'm getting invalid token errors from 2 out of the 3 beta testers I have in Australia.
from facebook-ios-sdk.
Are you still seeing the issue? I think we fixed it, but I'm not sure.
from facebook-ios-sdk.
Did anybody got mutual friend list...?????
from facebook-ios-sdk.
Related Issues (20)
- 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 1
- ld: symbol(s) not found for architecture arm64 (Flutter) HOT 4
- 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 4
- 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
- unity sdk 17.0.0 how date update ?
- App is live but only approved testers can login (using limited login on 17.0.0) HOT 2
- Limited Login Failed on iOS 17
- Facebook Login using SDK 17.0.0 always displays a limited login warning HOT 2
- Warning Issue with FBAudienceNetwork 6.15.0 Upgrade via Cocoapods
- m.facebook.com
- apps.microsoft.com
- Get wrong first name from `Profile.current?.firstName`
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.