1

I'm using the new Facebook API (v4.4) with ShareOpenGraphObject, ShareOpenGraphAction and ShareOpenGraphContent. I can't get the title to have an effect on the share description. I was assuming that if I added og:title then it would use the "One to One" sentence so.

Will completed {level.title} on WordBuzz.

but it's using the "One to One - Without Object Title" sentence instead

Will completed a level on WordBuzz.

The title is clearly being sent, as it's being shown in the title above the description (screenshot at the bottom), but I don't understand why it's not being used in the above sentence.

How do I get Facebook to display the level title? I'm aware there are hacks to work around this on StackOverflow, here and here. But I'm assuming it's possible to get this working as it should!

    ShareOpenGraphObject object = new ShareOpenGraphObject.Builder()
            .putString("og:type", "scribble-wordbuzz:level")
            .putString("og:title", "Level 14")
            .putString("og:level.title", "Level 14")  // test
            .putString("scribble-wordbuzz:title", "Level 14")  // test
            .putString("scribble-wordbuzz:level.title", "Level 14")  // test
            .putString("og:description", "Here's the level description")
            .putPhoto("og:image", photo)
            .build();

    ShareOpenGraphAction action = new ShareOpenGraphAction.Builder()
            .setActionType("scribble-wordbuzz:complete")
            .putObject("level", object)
            .build();

    ShareOpenGraphContent content = new ShareOpenGraphContent.Builder()
            .setPreviewPropertyName("level")
            .setAction(action)
            .build();

    shareDialog.show(content);

enter image description here

Community
  • 1
  • 1
Will Calderwood
  • 4,393
  • 3
  • 39
  • 64
  • If you think the API is broken, please create a bug report with Facebook at https://developers.facebook.com/bugs – derabbink Sep 01 '15 at 11:53

0 Answers0