huuanh1987 / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

post_install_url no longer a valid property for admin.setAppProperties #194

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
        ApplicationPropertySet props = new ApplicationPropertySet();    
props.setStringProperty(ApplicationProperty.POST_INSTALL_URL,
"http://your.callback.url/such_as_app_added);
client.admin_setAppProperties(props);

What is the expected output? What do you see instead?
Should update app property without error

Instead, see an exception:

2.
Receive an exception that says 
14:52:44,212 ERROR FacebookSaveApplication:211 - Could not update app
properties
com.google.code.facebookapi.FacebookException: post_install_url is not a
valid application property.
at
com.google.code.facebookapi.FacebookXmlRestClient.parseCallResult(FacebookXmlRes
tClient.java:205)
...

What version of the product are you using? On what operating system?
2.0.3 on Mac OS X

Please provide any additional information below.

Original issue reported on code.google.com by csack...@gmail.com on 22 Apr 2009 at 8:53

GoogleCodeExporter commented 8 years ago
So, what's your suggested fix? Remove the ApplicationProperty.POST_INSTALL_URL 
property? Do you have a link to documentation on Facebook.com explaining what's 
changed? Thanks.

Original comment by david.j....@googlemail.com on 6 May 2009 at 6:28

GoogleCodeExporter commented 8 years ago
Yes, safest is to just remove ApplicationProperty.POST_INSTALL_URL and perhaps 
add
documentation stating that ApplicationProperty.POST_AUTHORIZE_REDIRECT_URL 
serves the
purpose now.

Here's a link to the equivalent fb bug, which states that 
post_authorize_redirect_url
now does double duty:
http://bugs.developers.facebook.com/show_bug.cgi?id=5069

Original comment by csack...@gmail.com on 6 May 2009 at 6:37

GoogleCodeExporter commented 8 years ago
Committed. Thanks.

Original comment by david.j....@googlemail.com on 6 May 2009 at 6:46