-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Error on Example #3
Comments
BTW, I checked to make sure that I requested stream_publish when authorizing... |
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. |
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. |
i met this problem too |
I have the same problem too. |
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 { and finally remove this line params.putString("method", method); from method public static String openUrl(String url, String method, Bundle params) throws MalformedURLException, IOException |
Having same problem, where do you call the new function requestPOST? thanks |
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. |
did you just check in code, because i downloaded this today and am experiencing the same problem with the example? |
it works fine after do changes following what soneff said. |
Sorry krebchak. I forgot it. you can call in Example.java like this: mPostButton.setOnClickListener(new OnClickListener() { |
Facebook API changed last week: requests "https://api.facebook.com?method=stream.publish&..." do not work |
I can see that this bug is closed. Does it mean that the code has been updated on GIT? |
@ wacheena: did you take adagli's correction (see above)? 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=... |
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. |
@ adagli: I have incorporated your correction and it works fine :). I hope your correction will be incorporated in the SDK soon. |
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. |
dbhasin, can you open this a separate issue? this thread is unrelated / closed... |
Adds support to export the SDK as an apklib to a local maven repository....
Updated Facebook APIs for iOS to version 4.11.0.0
|
I created a very test Facebook application and used the API key as the APP_ID in Example.java.
The example application runs perfectly for Login and the request button (it displays my Facebook name). When I click on the Wall Post! button I see the webview activity launch, then loads the following text:
API Error Code: 3
API Error Description: Unknown Method
Error Message: app must be on whitelist
I have tried three different application keys and always get the same result. Do I have an incorrect Facebook application setting, or is this an error that other people are getting?
The text was updated successfully, but these errors were encountered: