Comments (9)
Another example : https://api.facebook.com?method=stream.publish&message=Message&format=json&attachment=%7B%22name%22%3A%22Facebook%22%2C%22href%22%3A%22http%3A%2F%2Fdevelopers.facebook.com%2F%22%2C%22caption%22%3A%22Caption%22%2C%22description%22%3A%22Description%22%7D&access_token=...
But the SDK works when changing to https://api.facebook.com/method/stream.publish?message=Message&...
from facebook-android-sdk.
Util.openUrl does not support Http socket and connection timeouts, which in turn will prevent threads from hanging for a long period of time. You may want to consider using the org.apache.http.* package within util.openUrl, which has built-in support for timeouts, instead of using java.net.* package for Http communication.
from facebook-android-sdk.
Ya, we should probably swap out the java.net http library for the apache one, which is available on Android. I'm swamped with stuff right now, but if you want to do this and send me a code diff, I can look into getting it integrated into the master branch.
from facebook-android-sdk.
Hi
Check http://github.com/madmatah/facebook-android-sdk
I swapped out the java.net http library for the apache one.
I didn't use org.apache.http.entity.mime.MultipartEntity because it requires some extra jar libraries (http://bit.ly/c00W2M for more details).
from facebook-android-sdk.
i'm not able to download the SDK for android i'm getting the error of the file not found please help me i need it.....
from facebook-android-sdk.
I still get the same issue even after swapping out the java.net http library for the apache one. I copied what madmatah did but when my phone is off and there is no data connection my service will fire off a request to facebook via the sdk and my service will indefinitely hang.
No timeouts or anything :(
from facebook-android-sdk.
This bug basically makes the API unsuitable for production use; please fix this.
I'm seeing the API never return simply by switching from cell data to wifi...
from facebook-android-sdk.
I have a production application using the unaltered api and I also had this problem. I just added conn.setReadTimeout(10000);
conn.setConnectTimeout(10000);
and no more blocking. In later versions of Java, for example the android sdk, this is supported. Has anyone tried? If I have time I'll make mine a bit more api friendly and submit a pull request. I can also include the tests to verify.
from facebook-android-sdk.
This issue was raised against an previous version of the Facebook SDK for Android.
In 2012, the SDK had a significant rewrite and relaunch, and we are closing issues and pull requests that predate that v3.0 release.
If you are still experiencing this issue, please raise a new issue with repro steps in the supported SDK (currently v3.6). For more information see our Android developer center at https://developers.facebook.com/docs/android.
Many thanks for using the Facebook Platform, and your support of this project.
from facebook-android-sdk.
Related Issues (20)
- Unexpected "Invalid app id" error HOT 1
- Is this repository live? No answers from Facebook employees to many critical issues
- ANR:Input dispatching timed out (4b6b26a xxx/com.facebook.FacebookActivity (server) is not responding. Waited 5005ms for FocusEvent(hasFocus=true)) HOT 1
- There was a problem using Facebook version 12.3.0 integration login
- Log In with Patreon confirmation HOT 1
- Automatic event fb_sdk_settings_changed collects private user data
- Different performance when share the same link by web or native handler.
- Is somebody here from Facebook to solve almost 8 years old serious bug??? Your (and our) users are really angry https://github.com/facebook/facebook-android-sdk/issues/1216 HOT 1
- Use CustomTabActivity to open Fallback Feed Link to fix Embedded WebView Error HOT 1
- SDK impacted by CVE-2022-25647
- SDK should use isDebugEnabledField instead of BuildConfig.DEBUG
- Feature Request: external_id HOT 1
- Invalid Signature HOT 1
- Login for business
- Profile Pic
- Please allow indie developers to impelement Facebook Login without business verification
- Facebook SDK is not adding necessary manifest queries/intents for results from PackageManager.getActivityInfo.
- Important paper's
- SDK show WebView login instead of bring the Facebook App to share my content
- Facebook Deferred DeepLink is not working anymore
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-android-sdk.