iOS - Facebook Open Graph API — Getting captions to show up next to user generated images

前端 未结 1 1653
情书的邮戳
情书的邮戳 2021-01-26 12:14

I cannot get a caption to show up on a user-generated photo, like so:

\"enter

Inst

相关标签:
1条回答
  • 2021-01-26 13:13

    It's not a caption, it's a user message.

    You need to set the message in your code and in settings as a field as described in https://developers.facebook.com/docs/opengraph/using-actions/

    Message field

    Allows users to write a personalized message attached to this action. You can only use this when the text is entered by the user and not pre-populated. You can mention users and pages inline using mention tagging.

    Furthermore, in iOS code (objective-c) from this tutorial https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/publish-open-graph-story/:

    In this method:

    - (void)postOpenGraphActionWithPhotoURL
    

    setting this property:

    action.message = @"your message here";
    

    gives the desired result.

    0 讨论(0)
提交回复
热议问题