开发者

Publishing URL through java application

When posting a URL on the facebook wall, facebook get URL data and mounts a post with that information. I wonder how do I post to this format by sending an URL using Java, for example using the API restfb (http://restfb.com/) or using graph API or any other way to do this in Java.开发者_JAVA技巧

Thanks.


Solution:

var wallPost = {
            message : "Message in post",
            picture: URL_IMAGE,
            link: URL,
            name : POST_NAME,
            description: POST_DESCRIPTION
        };
        FB.api('/me/feed', 'post', wallPost , function(response) {
          if (!response || response.error) {
                 console.log("Error to post");
          }
        });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜