最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Facebook Share Dialog - Stack Overflow

programmeradmin4浏览0评论

I am building a Facebook app and trying to implement a share dialog. Currently, I've only found how to create a feed dialog that allows you to post to your own wall (see image below).

current app post dialog .png

What I am trying to achieve is a "Share" dialog that allows users to select whether they want to post to their own wall, on a friend's timeline, or a page. Spotify allows this functionality from their feed posts (see spotify example image below).

spotify share dialog .png

In addition to creating the share dialog, how do I add a "Share" action next to "Like" and "Comment" on a feed post?

Thanks in advance!!

I am building a Facebook app and trying to implement a share dialog. Currently, I've only found how to create a feed dialog that allows you to post to your own wall (see image below).

current app post dialog http://perian.atlantafalcons./falcons_post.png

What I am trying to achieve is a "Share" dialog that allows users to select whether they want to post to their own wall, on a friend's timeline, or a page. Spotify allows this functionality from their feed posts (see spotify example image below).

spotify share dialog http://perian.atlantafalcons./spotify_share.png

In addition to creating the share dialog, how do I add a "Share" action next to "Like" and "Comment" on a feed post?

Thanks in advance!!

Share Improve this question asked Mar 26, 2012 at 15:03 RGilkesRGilkes 1,0523 gold badges14 silver badges22 bronze badges 3
  • App is here if anyone is looking for context: facebook./atlantafalcons/app_292392080815275 – RGilkes Commented Mar 27, 2012 at 16:18
  • FYI, bug (request) filed here: developers.facebook./bugs/327210807373833 – Aidan Feldman Commented Jul 30, 2012 at 18:55
  • Thanks!!! Subscribed. Hopefully it gets fixed/added soon. – RGilkes Commented Jul 31, 2012 at 20:22
Add a ment  | 

1 Answer 1

Reset to default 4

What you are looking for is the Share Button. Facebook has deprecated this and claim it will no longer be supported. If you want, you can still directly pop open a window with the content of the sharer by using a url similar to this:

https://www.facebook./sharer/sharer.php?u=http://google.

and just change out the value of the u query string parameter

发布评论

评论列表(0)

  1. 暂无评论