Skip to main content
Up and Coming
April 24, 2014

How to integrate our game with Facebook?

How do we integrate a C++ game with Facebook?

Doom 3 BFG Edition originally had Steam integration, and integration with Playstation and Xbox 360, to support unlocking achievements, etc. Those achievements are still in the code, but don't do anything.

http://steamcommunity.com/stats/DOOM3BFGEdition/achievements
http://www.xboxachievements.com/game/doom-3-bfg-edition/achievements/

Now that Facebook is a platform for hardcore VR gamers, it makes sense to optionally allow users to post achievements on Facebook.

There appear to be SDKs for other platforms like Android, but nothing for Windows applications. Even Unity seems to have a Facebook SDK.

So, does anyone know how to post a short achievement text on Facebook from C++?

    5 replies

    kojack
    Honored Contributor
    April 24, 2014
    Apparently you can access Facebook via the C++ REST API: http://casablanca.codeplex.com
    That's a general purpose REST api (would work with a bunch of sites, such as twitter. Please don't put game achievements on twitter though!), but a tutorial from microsoft shows access to facebook with it here: http://blogs.msdn.com/b/vcblog/archive/2013/03/21/connecting-to-facebook-with-the-c-rest-sdk.aspx
    Author: Oculus Monitor , Auto Oculus Touch , Forum Dark Mode , Phantom Touch Remover , X-Plane Fixer Hardware: Threadripper 1950x, MSI Gaming Trio 2080TI, Asrock X399 Taich Headsets: Wrap 1200VR, DK1, DK2, CV1, Rift-S, GearVR, Go, Quest, Quest 2, Reverb G2, Quest 3
    Up and Coming
    April 24, 2014
    "2EyeGuy" wrote:
    So, does anyone know how to post a short achievement text on Facebook from C++?


    Oh please not this shit!
    Up and Coming
    April 25, 2014
    to OP

    BACK AWAY FROM THE RIFT*


    *PLEASE!
    EX DK2/VIVE/PSVR/CV1/Q2/PSVR2 | Currently Quest Pro (PCVR) | VR developer RTX 3080 FE / 12900k / Windows 11 Pro
    Inspiring
    April 25, 2014
    Not sure if this is a joke or not, but you should be able to use the web API as kojack says.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Participant
    April 25, 2014
    Why..