简体   繁体   English

Facebook Feed对话框简化了吗?

[英]Facebook Feed Dialog simplified?

I'm trying to add a share button or "feed dialog" as Facebook now seem to be pushing, to posts on my website. 我正在尝试添加共享按钮或“提要对话框”,因为Facebook现在似乎正在推送到我网站上的帖子。 I'm basically looking for a way to simply allow users to click the button and be sent to the share preview page to post to their timeline or a friend's timeline etc. 我基本上是在寻找一种方法,简单地允许用户单击按钮并发送到共享预览页面,以发布到他们的时间轴或朋友的时间轴等。

The problem is that I don't really need an app (or at least I don't see the need in an app) and I'd like to avoid using their deprecated sharer url method. 问题是我真的不需要应用程序(或者至少我看不到应用程序中的需要),并且我想避免使用不推荐使用的共享器url方法。

What are my options? 我有什么选择? Can I use the feed dialog method without creating an app? 是否可以在不创建应用的情况下使用Feed对话框方法? I've tried going through their documentation but it just confuses me. 我已经尝试过浏览他们的文档,但这使我感到困惑。

I'm not fussed whether it's JavaScript that opens a popup or if it redirects to a separate page (provided a redirect url can be provided to return users to the original page on my website). 无论是打开一个弹出窗口的JavaScript还是重定向到单独的页面(如果可以提供重定向URL以便将用户返回到我网站的原始页面),我都不会感到困惑。

you definitely need an app for the FB.ui feed dialog, but the user does not have to be logged in. Without an app, you can either use the sharer.php in a javascript popup, or you can use a like and/or send button. 您肯定需要FB.ui feed对话框的应用程序,但用户不必登录。没有应用程序,您可以在JavaScript弹出窗口中使用sharer.php,也可以使用like和/或发送按钮。 Just make sure to include Open Graph metadata in your page. 只需确保在页面中包含Open Graph元数据即可。

https://developers.facebook.com/docs/reference/plugins/send/ https://developers.facebook.com/docs/reference/plugins/send/

Be aware that you should also use an app (id) with the like or send button. 请注意,您还应该使用带有“赞”或“发送”按钮的应用程序(id)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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