gymcode
gymcode

Reputation: 4633

RestFB jar added but FacebookClient symbol not found

I have added RestFB .jar in my Netbeans.

However, they are still unable to identify the symbol of variable FacebookClient.

My code:

package fbapi1;

public class FBAPI1 {

public static void main(String[] args) {

    String accessToken = "EAACEdEose0cBAHomDOKsugKsxT8XZB5IsIhtd77aA7L18Tpy0DIJNfbhsIjL9EcAOqyxZACOUxk52sw6ihZCZCUsMwBrtACFYQfNSE3fweh3jrYQss2nqGyXkWAhTCrCVZAQXoeE6cqquZC6eRnVcZB08N5YXmBSsEjNPXRndqHjE21U6lxWBwIBIXoNRZCvW";

    FacebookClient fbClient = new DefaultFacebookClient(accessToken);

}

}

I downloaded the API from http://mvnrepository.com/artifact/com.restfb/restfb/2.0.0-rc.1

Tutorial that I am following: https://www.youtube.com/watch?v=GwbO_PdwK_4&list=PLYPFxrXyK0BwiXNe09hTPjFqYbsWv8gxb&index=2


Screenshots:

Screenshot 1

Screenshot 2

Screenshot 3

Upvotes: 1

Views: 225

Answers (1)

Norbert
Norbert

Reputation: 1462

You need the import. In Netbeans you can simply click on the red symbol left from the line and select "add import".

Please check this in the tutorial video at 2 min and 17 secs: https://youtu.be/GwbO_PdwK_4?t=2m17s

Upvotes: 1

Related Questions