1

I am developing an Eclipse plugin where user needs to login to their Facebook account in an SWT brower. I am using the way, described here to try to get the access token from the url. It had worked well until today. The problem is that redirected uri is no longer followed by "access_token=..." any more. Then I mannually tried to get the access token from url in real browsers. It works on Chrome and FireFox, not on IE. In my progrm, the SWT browser is defined as follows:

Browser browser = new Browser(container, SWT.NONE);

I guess it must've used IE in the background and IE for some reason hides the access_token from the url. Any idea for unhiding the access token?

Any input is greatly appreciated!

Dahai Guo
  • 41
  • 2

1 Answers1

0

The following answer refers only to the SWT part of your issue.

org.eclipse.swt.browser.Browser is using a native renderer for each platform it supports.

For Windows the default happens to be IE.

Depending on your use case (i.e. OS, Eclipse versions you need to support), you can force the widget to use a different native renderer.

tkotisis
  • 3,442
  • 25
  • 30
  • Thanks! I chose "SWT.MOZILLA" as the browser type. And it worked. [Here] (http://stackoverflow.com/questions/2086734/how-to-make-swt-browser-control-use-mozilla-instead-of-ie-on-windows) is a post that shows how to enable SWT.MOZILLA within your code. – Dahai Guo Dec 12 '12 at 14:38