Using “share_open_graph” Facebook UI to create dynamic share dialog for quiz results

前端 未结 5 1313
不知归路
不知归路 2020-12-07 11:48

Summary: My problem is getting FB.ui, via the share_open_graph method, to create a customised share dialog that contain

5条回答
  •  [愿得一人]
    2020-12-07 12:22

    the object must be, well, an object

    FB.ui({
      method: 'share_open_graph',
      action_type: 'matchadviceuk:share',
      action_properties: JSON.stringify({
        'quiz': {
           'og:type': 'matchadviceuk:quiz',
           'og:url': "http://advice.uk.match.com/quizzes/which-european-are-you-destined-date",
           'og:title': "I got "+response.country+"! Which European are you destined to date?",
           'og:description': response.body,
           'og:image': response.image
        }
      })
    }, function(){});
    

提交回复
热议问题