Results 1 to 4 of 4

Thread: FacebookTemplate, Posting an image with postlink

  1. #1
    Join Date
    Feb 2011
    Posts
    20

    Default FacebookTemplate, Posting an image with postlink

    Hi to everyone,

    I'm trying out the postlink of facebook and Im able to post links with out any problem but Im trying to post an image,

    So far i have tried this:

    String msg = "<html><head><meta etc/></head><body/></html>";
    FacebookLink facebookLink = new FacebookLink("url","xx","xx",msg);
    facebook.feedOperations().postLink(userprofile.get Id(), msg, facebookLink);

    I have tried different things but any worked out.

    So can I post pictures with the message ???

    Thanks!!

  2. #2
    Join Date
    Feb 2011
    Posts
    20

    Default

    I just Solved,

    Just add a new method similar to the postlink in the FaceTemplate and recompile the jar

    Thanks

  3. #3
    Join Date
    Aug 2004
    Posts
    1,075

    Default

    I'm glad you figured this out. Would you mind sharing your solution? You can post it here in the forum or, since it sounds like you've made a modification to FacebookTemplate, perhaps you could submit a pull request...maybe I can work it into FacebookTemplate for other users.
    Craig Walls
    Spring Social Project Lead

  4. #4
    Join Date
    Feb 2011
    Posts
    20

    Default

    Hi,

    Sorry for answering this late but I forgot about the thread XD.

    I notice that the code had improved since i solve this (its better now XD), you have to uso the function publish of the facebookTemplate class. And in the multiValueMap Property add

    <"image", "URL_TO_THE_IMAGE">

    I dont have right now the actual code, but if you cant figure it out ill post my code.


    Thanks!! for this great framework

Tags for this Thread

Posting Permissions

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