Results 1 to 5 of 5

Thread: How to post to Facebook feed with picture and source?

  1. #1
    Join Date
    Feb 2008
    Posts
    169

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

    I can post to a Facebook user's feed with:
    Code:
    FacebookTemplate.feedOperations().postLink("userid", "wow, look at this link",
        new FacebookLink("http://example.com", "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. #2
    Join Date
    Apr 2009
    Posts
    11

    Default

    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. #3
    Join Date
    Aug 2004
    Posts
    1,070

    Default

    I've created https://jira.springsource.org/browse/SOCIALFB-31 to track this. Also https://jira.springsource.org/browse/SOCIALFB-30 is similar, but a bit more focused on link posts.
    Craig Walls
    Spring Social Project Lead

  4. #4
    Join Date
    Jul 2012
    Posts
    12

    Default

    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. #5
    Join Date
    Aug 2004
    Posts
    1,070

    Default

    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 RestTemplate...it's setup to include an Authorization header for OAuth2, so you only need to be concerned with making the calls to the API.
    Craig Walls
    Spring Social Project Lead

Posting Permissions

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