开发者

Customizing Title and Description using Facebook Share in an IFrame

开发者 https://www.devze.com 2023-01-24 00:54 出处:网络
I\'ve created that is hosted on my home site, and included on 3 individual sites via IFrame. After the poll is completed, we would like to give pollers the ability to share their results via Facebook

I've created that is hosted on my home site, and included on 3 individual sites via IFrame. After the poll is completed, we would like to give pollers the ability to share their results via Facebook onli开发者_如何学Gone. The Facebook share requires meta tags to manipulate the title and description. What would be the best way to complete this objective?


why you dont use the stream.publish method of JSDK?

      FB.ui({
method: 'stream.publish',
message:'your result description',
attachment: {
  name: title,

  caption: "My Result",
  media: [{
    type: 'image',
    href: 'http://www.example.com/',
    src: 'http://www.example/images/working.jpeg'
  }]
},
action_links: [{
  text: 'Join the Run',
  href: 'http://www.example.com/'
}],
  user_message_prompt: 'Tell your friends about Get your percentage:'
});

I think this is also a good way to share with friends.

0

精彩评论

暂无评论...
验证码 换一张
取 消