使用 Processing 和 Temboo 库更新 Facebook 的状态,但我遇到以下错误:“Post 类型不明确”,此行似乎是突出显示的原因“Post postChoreo = new Post(session);”。任何有关如何解决此问题的建议都会非常好。
import com.temboo.core.*;
import com.temboo.Library.Facebook.Publishing.*;
// Create a session using your Temboo account application details
TembooSession session = new TembooSession("dylabaloo", "myFirstApp",
"xxxxxxxxxxxxxxxxxxxx");
void setup() {
// Run the Post Choreo function
runPostChoreo();
}
void runPostChoreo() {
// Create the Choreo object using your Temboo session
Post postChoreo = new Post(session);
// Set inputs
postChoreo.setAccessToken("xxxxxxxxxxxxxxxxxx");
postChoreo.setMessage("Your High Score is:");
// Run the Choreo and store the results
PostResultSet postResults = postChoreo.run();
// Print results
println(postResults.getResponse());
}