In addition to matthew's comment, you are invoking a method that apparently
has two arguments
callFacebookAPI(Ljava/lang/String;Ljava/lang/String;)
with only one:
(facebookUrl)
Delete one of the two Ljava/lang/String; parts on the method invocation so
you actually point to your method
callFacebookAPI(String url)
correctly.
On Sunday, November 18, 2012 1:16:15 PM UTC-6, Patrax wrote:
>
>
> I'm doing a project in GWT to deploy in AppEngine and I'm getting a
> warning in Eclipse saying: JavaScript parsing: Expected an identifier in
> JSNI reference Any ideas on what's causing this?
>
> public void callFacebookAPI(String url) {
> JsonpRequestBuilder requestBuilder = new JsonpRequestBuilder();
> requestBuilder.requestObject(url, new AsyncCallback<FbUser>() {
>
> public void onFailure(Throwable caught) {
> System.out.println("FAIL" );
> }
>
> @Override
> public void onSuccess(FbUser result) {
> facebookUser = result;
> System.out.println("Facebook name:" + facebookUser.getName());
> }
>
> });
> }
>
>
> private final native void doFbLoginFunction() /*-{
>
>
> FB.login(function(response) {
> if (response.authResponse) {
> // connected
> //return response.session;
> var accessToken = response.accessToken;
> var url = "http://graph.facebook.com/me?access_token=";
>
> var facebookUrl = url + accessToken;
>
> @com.google.gwt.smartpark.client.map.SmartPark::callFacebookAPI(Ljava/lang/String;Ljava/lang/
> String;)(facebookUrl);
>
> } else {
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/oxSY6FEfI60J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.