Announcement Announcement Module
No announcement yet.
How to Have a Link & Picture URL Along with A Facebook Feed Through The API? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 ( The method postLink(java.lang.String message,
    FacebookLink link) ( is for posting a message along with a link. I don't see one for a picture URL.

  • #2
    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

    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.


    • #3
      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.