Register / Login
Win a copy of
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Other Open Source Projects
Re: Could you help with a question from restfb1.14 ?
posted 4 years ago
Hope you have a good afternoon. I am having a question related to the facebook restfb1.14, and I wish to get your helps, and advice.
According to restfb1.14 facebook document, there is a facebookclient class and obtainAppAccessToken, and obtainExtendedAccessToken methods.
But however , when i called those two methods within my sample
codes, there were undefined. I do not know what ' s wrong with my code. So if you
have a few minutes, could you please show me what I did wrong.
Below is my code
String appId = "XXXX"; String appSecret = "YYYY"; String redirectUri = ""; String verificationCode = ""; // http://restfb.com/javadoc/com/restfb/FacebookClient.html // http://restfb.com/javadoc/src-html/com/restfb/FacebookClient.html#line.397 // public interface FacebookClient // method obtainAppAccessToken //http://restfb.com/javadoc/com/restfb/FacebookClient.html#obtainAppAccessToken(java.lang.String, java.lang.String) FacebookClient.AccessToken accessToken = obtainAppAccessToken(appId, appSecret); FacebookClient.AccessToken accessToken2 = obtainExtendedAccessToken(appId, appSecret,"");
Both method obtainAppAccessToken and obtainExtendedAccessToken were undefined in facebookclient class. I don't know why because according in the facebookclient document, there are there for us to use.
Please help and thank you so much in advance for all of your help!!
posted 4 years ago
Because you do not prefix the method calls with either a class (for static methods) or an object (for instance methods), it is assumed that the methods are defined within the current class. Which, of course, they are not.
Asking smart questions
Books by Bear
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Thread Boost feature
Boost this thread!
exception is occurred. Please help.
Integration Test Case in Grails
Deployng Entity Beans in WAS 4.0 from VAJ 4.0