小编use*_*891的帖子

处理2:发布到Facebook错误"类型帖子不明确"

使用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());

}
Run Code Online (Sandbox Code Playgroud)

java processing facebook facebook-graph-api temboo

1
推荐指数
1
解决办法
111
查看次数

标签 统计

facebook ×1

facebook-graph-api ×1

java ×1

processing ×1

temboo ×1