Posting images to facebook from a win32 C program

Discussion in 'Game Development (Technical)' started by lennard, Aug 7, 2011.

  1. lennard

    Moderator Original Member Indie Author

    Joined:
    Jan 12, 2006
    Messages:
    2,391
    Likes Received:
    12
    Anybody have any experience with this? It would be really helpful if my users could post their Dungeon Demon maps to Facebook for sharing with their friends. I'm not sure if this is the best way to do it but I'd also like some easy way to get Dungeon Demon images on to the cloud so that they can be viewed on a users iPad.
     
  2. zoombapup

    Moderator Original Member

    Joined:
    Nov 25, 2004
    Messages:
    2,890
    Likes Received:
    0
    Facebooks api is relatively simple. I'd be surprised if there wasnt a bunch of C or C++ libraries for the API by now. If not, it should be simple enough to post using something like libcurl.
     
  3. wazoo

    Original Member

    Joined:
    Jul 27, 2004
    Messages:
    519
    Likes Received:
    0
    Given how often the FB API changes, I would strongly suggest creating a proxy web service / page to handle this request for you (unless you already are and just didn't mention it. :p )

    Plus, with a proxy you should be able to take advantage of the G+ Game API when they finally publish it..

    hth,
     
  4. jpoag

    jpoag New Member

    Joined:
    Mar 15, 2008
    Messages:
    806
    Likes Received:
    0
  5. jpoag

    jpoag New Member

    Joined:
    Mar 15, 2008
    Messages:
    806
    Likes Received:
    0
    Also, if you don't mind adding 40 megs to your build, you could use berklium.
     
  6. Indiepath

    Indiepath New Member

    Joined:
    Aug 22, 2004
    Messages:
    999
    Likes Received:
    0
    The Facebook API allows you to upload but you need to know an AID (album ID) and UID (user ID). I would think the simplest way would be to upload the image to a space on your webserver and then fire up a standard sharing URL in the browser that points to the URL of the image you just uploaded.
     
  7. Indiepath

    Indiepath New Member

    Joined:
    Aug 22, 2004
    Messages:
    999
    Likes Received:
    0
  8. Indiepath

    Indiepath New Member

    Joined:
    Aug 22, 2004
    Messages:
    999
    Likes Received:
    0
  9. lennard

    Moderator Original Member Indie Author

    Joined:
    Jan 12, 2006
    Messages:
    2,391
    Likes Received:
    12

    Thanks Tim, for a niche market tool with a laundry list of items that I would like to add over time... this may really be the ticket.
     

Share This Page

  • About Indie Gamer

    When the original Dexterity Forums closed in 2004, Indie Gamer was born and a diverse community has grown out of a passion for creating great games. Here you will find over 10 years of in-depth discussion on game design, the business of game development, and marketing/sales. Indie Gamer also provides a friendly place to meet up with other Developers, Artists, Composers and Writers.
  • Buy us a beer!

    Indie Gamer is delicately held together by a single poor bastard who thankfully gets help from various community volunteers. If you frequent this site or have found value in something you've learned here, help keep the site running by donating a few dollars (for beer of course)!

    Sure, I'll Buy You a Beer