jjzjj

java - 如何获取超过 25 条帖子消息

我正在尝试使用restfb获取所有post消息,我的代码如下publicConnectionpublicSearchMessages(DatefromDate,DatetoDate){Connectionmessages=publicFbClient.fetchConnection("search",Post.class,Parameter.with("q","Watermelon"),Parameter.with("since",fromDate),Parameter.with("until",toDate),Parameter.with("type","post"));return

java - 将图像发布到 Facebook 页面

我想将我的图片发布到我的Facebook页面。下面是我试过的代码,它来自RestFB手册页。但它显示出某种未被理​​解的错误。同样在publish("me/photos")中,我应该传递我的username而不是写me吗?此外,图像bird.jpg存在于我的项目文件夹中。谁能帮我?任何形式的帮助将不胜感激FacebookClientfacebookClient=null;FacebookTypepublishPhotoResponse=facebookClient.publish("me/photos",FacebookType.class,BinaryAttachment.with(

java - RestFB:使用 Facebook 应用程序获取用户访问 token

这是我的:staticAccessTokenaccessToken=newDefaultFacebookClient().obtainExtendedAccessToken("","");staticFacebookClientclient=newDefaultFacebookClient();publicstaticvoidmain(Stringargs[]){System.out.print("EnterYourStatus:");BufferedReaderbr=newBufferedReader(newInputStreamReader(System.in));Stringst