Announcement Announcement Module
No announcement yet.
How to post to Facebook feed with picture and source? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to post to Facebook feed with picture and source?

    I can post to a Facebook user's feed with:
    FacebookTemplate.feedOperations().postLink("userid", "wow, look at this link",
        new FacebookLink("", "an example link", "don't worry, just example", "description"));
    But the graph api allows for source and picture parameters. How do I add them for a post?

  • #2
    I vote for this.
    I can extend the feedsOperations to solve it but if it is going to change soon to support also picture I can wait.


    • #3
      I've created to track this. Also is similar, but a bit more focused on link posts.


      • #4
        Hi, the change about include a picture in the link will be done? Is there any way to solve this issue for now?

        Thanks again!


        • #5
          No guarantees on timing, but it's on my radar and definitely to be part of 1.1. I've got an ambitious list of new features for Spring Social that I'm actively working on and hoping to unveil mid-October just before or during SpringOne/2GX as part of a 1.1.0.M1. This particular item isn't on that list, but it's not too far off of it. If all of the other stuff falls into place nicely, then this will likely be the first thing I'll attack next.

          As for a workaround for solving this now: You always have the option of using FacebookTemplate as an implementation of GraphApi, which lets you work against Facebook's Graph API at the Graph API level. So, anything you can do with Facebook's Graph API should be do-able via the GraphApi interface (let me know if there's something you can't do). And, even then you always have the option of asking FacebookTemplate for its RestTemplate via the restOperations() method. That RestTemplate isn't just any's setup to include an Authorization header for OAuth2, so you only need to be concerned with making the calls to the API.