Hi,
I've been trying to test the OAuth functionality with Social Enabler but have hit a brick wall.
I have set up apps in Dropbox, Twitter and Facebook - I have my ids, my keys and secrets etc falling the various instructions I've found, however, all services are failing.
Twitter & Dropbox are both giving the same issue:
Error while executing JavaScript action expression
Script interpreter error, line=2, col=30: Error calling method 'authenticate(boolean)' on java class 'com.ibm.xsp.extlib.sbt.services.client.endpoints.TwitterEndpoint'
Error while acquiring OAuth token
Failed to get request token. requestUrl:https://api.twitter.com/oauth/request_token, authorizeUrl: https://api.twitter.com/oauth/authorize, accessUrl: https://api.twitter.com/oauth/access_token, callback: null, truncated key:jrvd....IhlA, truncated secret:WKJb....J2HI. OAuth callback is empty, please check with your application vendor to ensure a callback is not required.
api.twitter.com
Facebook, when loging on via the client api comes back with:
Given URL is not permitted by the application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
The same things keep popping up when searching for solutions - there are definitely leading or trailing spaces.
Time and again I see talk of the callback uris. However, in the 3 types of apps - the callback apis you specify in the apps themselves seem to want different things.
With facebook there is also talk of the appdomain and in Drobox it won't allow a callback url with http.
The domino server I'm working on is not accessible externally but it is getting 'out there' so to speak, as I know that before my current facebook error, when the app was in sandbox mode, it was giving that as the error message - so is being reached. But there is no domain as such to reference/i can't find any settings that work in any of the apps. It's running on http://dominoserverx/KC/XPagesSBT.nsf
The twitter and facebook apps have been accessed by other sources - testing using simple wordpress apps, so they seem ok outside of the social enabler area.
Other notes - the Oauth Token store & the XPages Social Enabler has anonymous access set to nothing. The tokens have the signing id in the Authorise user form.
If anyone can give me help on any of these it would be much appreciated. My final goal is not to hook up these apps in fact, but I'm just trying to prove that the Extension Library works for OAuth to authenticate with something else.
Thanks