简体   繁体   中英

New Facebook share API

Seems like the latest Facebook Share API has dropped a couple of parameters and is now down to a lean

    FB.ui({
  method: 'share',
  href: 'https://developers.facebook.com/docs/',
}, function(response){})

It now relies solely on OpenGraph tags in the page HEAD.

Unfortunately, I have a couple of use cases where we may want the user to share the page but possibly also share a "quick app" somewhere in the right rail.

The only solution I can think of for the Quick app would be to point the href to a lander page that features just the app with the correct OG tags in the head.. and just the app contents.

This this seem like the best approach or have I missed a step?

这不是一个不好的解决方案,但是您也可以使用feed对话框并自己添加所有信息: https : //developers.facebook.com/docs/sharing/reference/feed-dialog/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM