简体   繁体   English

是否可以在同一页面上使用两个Facebook应用程序,或者将它们合并为一个?

[英]Is it possible to use two Facebook apps on the same page, or alternatively merge them into one?

UPDATE: fixed by exporting the facebook comments from the first app and importing them as wordpress comments, unfortunately haven't been able to import them back into the new facebook comments yet. 更新:通过从第一个应用程序导出Facebook注释并将其作为Wordpress注释导入而修复,很遗憾,目前还无法将其重新导入到新的Facebook注释中。

Once upon a time our company made the poor decision to use one Facebook app for the comments plugin on our blog, and a separate one to handle posting to OpenGraph. 曾几何时,我们公司做出了一个糟糕的决定,那就是使用一个Facebook应用程序作为博客上的评论插件,而使用另一个应用程序来处理向OpenGraph的发布。 Now we are trying to setup our blog to post 'read' actions when people read our content and running into the problem that we can't use two different Facebook applications on the same page. 现在,我们试图将博客设置为在人们阅读我们的内容时发布“阅读”操作,并遇到一个问题,即我们无法在同一页面上使用两个不同的Facebook应用程序。 So my question is twofold: 所以我的问题是双重的:

  1. Is there a way to merge our two applications so we don't have to either lose all the comments on our blog to use OpenGraph, or lose the OpenGraph actions we've recorded and keep our comments. 有没有一种方法可以合并我们的两个应用程序,所以我们不必丢失博客上的所有注释以使用OpenGraph,也不必丢失记录的OpenGraph操作并保留注释。

  2. Is there some way I haven't found to connect to two separate Facebook Apps on the same page 我有没有找到某种方法可以连接到同一页面上的两个单独的Facebook Apps

Thanks! 谢谢!

You could always merge one into the other, but you'd have to likely rebuild things to make functions from one work with the other on top of what the other is currently doing. 您总是可以将其中一个合并到另一个中,但是您可能必须重新构建事物,以使一个函数在另一个当前正在执行的基础上与另一个函数一起工作。 You could build a 3rd app thats a port of the 2 so you can leave the first 2 running while your rebuild on the 3rd launching the 3rd and taking the other 2 down when its ready. 您可以构建第3个应用,该应用是第2个的端口,因此您可以使第一个2运行,而在第3个重建时启动第3个,并在其他第2个准备就绪时拆除。

But connecting one from the other is out of the question as if memory serves facebook apps are sandboxed and can't communicate one to the other via facebook. 但是,将彼此连接是不可能的,因为内存服务于Facebook应用程序是否已沙箱化,无法通过Facebook与彼此通信。 They can use the same server, same database etc and can manipulate one another on the back end from the server level of the server they live on. 他们可以使用相同的服务器,相同的数据库等,并且可以从其所驻留的服务器的服务器级别在后端相互操作。

But in all it boils down to what your doing, how they currently work and all else. 但总而言之,这取决于您的工作,他们目前的工作方式以及其他所有方面。 with that theres no easy answer, and nothing like dropping one set of files on top of the other and hoping it works. 这样就没有简单的答案,也没有什么比将一组文件放在另一组文件上并希望它能起作用了。

Your either stuck with how they are, or rebuilding to one extent or another to bring them together unforunately 您要么固守现状,要么在某种程度上重建到不幸的境地

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

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