Comments (19)
BTW, I checked to make sure that I requested stream_publish when authorizing...
from facebook-android-sdk.
I have done the same as wacheena with the same results. I thought I would check here first before I started digging to see if anyone else had the same issue. Apparently not enough people to come up with a solution. I guess I will have to see what I can find and I will report back here if I come up with something.
from facebook-android-sdk.
Sorry, this looks like a server-side issue with a lot of apps, impacting the dialog() method with action "steam.publish" (the dialog used in the simple example to make a wall post). I'll ask someone for a fix. In the meantime, access to the rest of the API through the SDK should be unaffected, so you can ignore that part of the simple example app for now and you should be able to make a wall post directly using a POST request -- see the stream example.
Thanks for reporting, and thanks for you patience.
from facebook-android-sdk.
i met this problem too
from facebook-android-sdk.
I have the same problem too.
from facebook-android-sdk.
I did some basic changes and it works :)
add this function into AsyncFacebookRunner.java
public void requestPOST(String graphPath, Bundle parameters,RequestListener listener) { request(graphPath, parameters, "POST", listener); }
then add this line into Facebook.java
protected static String API_BASE_URL = "https://api.facebook.com/method/";
and change
public String request(String graphPath, Bundle parameters, String httpMethod) throws FileNotFoundException, MalformedURLException, IOException
like this
public String request(String graphPath, Bundle parameters, String httpMethod) throws FileNotFoundException, MalformedURLException, IOException {
parameters.putString("format", "json");
if (isSessionValid()) {
parameters.putString(TOKEN, getAccessToken());
}
String url;
if (httpMethod.equals("POST")) {
url = API_BASE_URL + graphPath;
} else {
url = graphPath != null ? GRAPH_BASE_URL + graphPath : RESTSERVER_URL;
}
return Util.openUrl(url, httpMethod, parameters);
}
and finally remove this line
params.putString("method", method);
from method
public static String openUrl(String url, String method, Bundle params) throws MalformedURLException, IOException
from facebook-android-sdk.
Having same problem, where do you call the new function requestPOST?
thanks
from facebook-android-sdk.
The issue with the Wall Post dialog (API Error Code: 3 ... ) should be fixed how -- let us know if you still have issues with this part of the Example application.
from facebook-android-sdk.
did you just check in code, because i downloaded this today and am experiencing the same problem with the example?
from facebook-android-sdk.
it works fine after do changes following what soneff said.
from facebook-android-sdk.
Sorry krebchak.
I forgot it. you can call in Example.java like this:
mPostButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Bundle bundle = new Bundle();
bundle.putString("message", "Lorem ipsum dolor");
// mFacebook.dialog(Example.this, "stream.publish", bundle,
// new SampleDialogListener());
mAsyncRunner.requestPOST("stream.publish", bundle, new WallPostRequestListener());
}
});
from facebook-android-sdk.
Facebook API changed last week: requests "https://api.facebook.com?method=stream.publish&..." do not work
anymore and are replaced with "https://api.facebook.com/method/stream.publish?...".
-> I've submitted a bug about that on Facebook: http://bugs.developers.facebook.com/show_bug.cgi?id=8660
from facebook-android-sdk.
I can see that this bug is closed. Does it mean that the code has been updated on GIT?
If yes, on which version?
from facebook-android-sdk.
@soneff, the update worked well for me. Thanks!
@Korriged, I think this was a server side change. But if it wasn't it's working for me with the latest version from GIT.
from facebook-android-sdk.
@ wacheena: did you take adagli's correction (see above)?
I did not: I am waiting for a new delivery of the SDK.
Unfortunatly, 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=... still does not work for me :(.
But it works when changing to 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=...
from facebook-android-sdk.
No, I didn't incorporate the changes. After the server side changes the example currently in git worked worked for me using an API key from a test app that I created last week. I haven't tried using an API key for my older applications yet.
from facebook-android-sdk.
@ adagli: I have incorporated your correction and it works fine :).
Thank you for this patch :).
I hope your correction will be incorporated in the SDK soon.
from facebook-android-sdk.
I want to use the links.preview and links.post publishing methods using the sdk. When will be able to do that? Also is there any other method instead of using the sdk that I could include those options in my android application.
from facebook-android-sdk.
dbhasin, can you open this a separate issue? this thread is unrelated / closed...
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.