Results 1 to 3 of 3

Thread: How to Have a Link & Picture URL Along with A Facebook Feed Through The API?

  1. #1

    Question How to Have a Link & Picture URL Along with A Facebook Feed Through The API?

    Based on the FB API document, a feed can come with a URL and a picture URL (http://developers.facebook.com/docs/.../dialogs/feed/). The method postLink(java.lang.String message,
    FacebookLink link) (http://static.springsource.org/sprin...ocs/1.0.x/api/) is for posting a message along with a link. I don't see one for a picture URL.
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

  2. #2
    Join Date
    Aug 2004
    Posts
    1,099

    Default

    You're right that Spring Social Facebook has no such method for posting links with pictures. But, this is highly related to the subject of https://jira.springsource.org/browse/SOCIALFB-6.

    Posting a link, message, image, etc is really all the same API call, just with a varying set of parameters. Thus, I intend to make postLink() obsolete and instead offer a method that takes an object populated with whatever parameters you set (probably built with some sort of builder class). This should offer you the opportunity to post almost anything with a single method. That's the plan, anyway.

    As you can see from the comments on that issue, I had trouble getting FB to recognize some of the parameters I was sending it, even though their documentation mentions those parameters and I know them to have worked in the past. So, a bit more work is required here to ensure that I'm sending the right stuff.
    Craig Walls
    Spring Social Project Lead

  3. #3

    Default

    Thanks Craig for your information.

    I just test out the postLink method. The method does the same thing as posting a link manually which will parse the page and grep a photo image from the page. It serves my usage for now.
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •