This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
-dnd facebook -> getFriends into some java app's main class -filling proper credentials -run app => java.io.IOException: Failed to get session key and secret: <?xml version="1.0" encoding="UTF-8"?> <auth_getSession_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd"> <session_key>...</session_key> <uid>...</uid> <expires>...</expires> <secret/> </auth_getSession_response> workaround seems to be to use attached fixed(?) authenticator instead of generated one
Created attachment 67006 [details] "fixed" authenticator for Facebook
This works asis fine for me. There is no need to call createToken rest method, facebook adds that to the callback url. Please try the attached app WebApplciation4.zip generated after dnd.
Created attachment 67067 [details] Web app containing facebook friends.get dnd generated code
well, but I'm talking about Java SE environment, ie. some java desktop application, not about a web application in this case
problem is that login method in Java SE authenticator contains: ... sessionSecret = result.substring(result.indexOf("<secret>") + 8, result.indexOf("</secret>")); ... but as can be seen from the facebook response this has to fail because facebook returns only "<secret/>" and not "<secret>somesessionsecret</secret>"
strange, now I get a different response from fbc (now with full <secret>...</secret>) then ~5hours ago :-( Perhaps something temporary...