简体   繁体   English

如何确定我的Open Graph应用程序是否已通过编程方式添加到时间线中?

[英]How do I find out if my Open Graph app has already been added to the Timeline programmatically?

Assume, that besides using the "Add to Timeline" Social Plugin I want to show a specific message to the user only if she did not yet add my app to her Timeline. 假设,除了使用“添加到时间线”社交插件外,我还想向用户显示特定消息,前提是该用户尚未将我的应用添加到时间线中。

Is there any method in the JavaScript SDK that lets me check for that? JavaScript SDK中是否有任何方法可以让我检查一下?

According to what i have read, add to Timeline plugin is available through the Javascript SDK via the XFBML tag. 根据我阅读的内容,可以通过XFBML标签通过Javascript SDK来添加到Timeline插件。 https://developers.facebook.com/docs/reference/plugins/add-to-timeline/ https://developers.facebook.com/docs/reference/plugins/add-to-timeline/

There doesn't seem to be a call that we can subscribe to at the moment. 目前似乎没有可以订阅的电话。

There is no coverage of how to read from the timeline via the various APIs [yet]. 还没有介绍如何通过各种API从时间轴读取数据[尚未]。

However you can capture and save the ID of any post made, store that in your local database and use it to reference off of either for determining what to share or to let them delete previous posts. 但是,您可以捕获并保存所发布的任何帖子的ID,将其存储在本地数据库中,并使用该ID来确定要共享的内容或让他们删除以前的帖子。

This is a good practice even if the ID doesn't help you as both Facebook and the user want you to be transparent in your posting and the management of said posts. 即使ID并不能帮助您,这也是一个好习惯,因为Facebook和用户都希望您在您的帖子和所述帖子的管理中保持透明。

暂无
暂无

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

相关问题 如何检查特定模块是否已添加到 Worklet? - How do I check if a specific module has been added to a Worklet? 如何找出变量中已分配给的图像? - How to find out which image in an has my variable been assigned to? 如何确定使用JavaScript SDK时twilio呼叫实际上已被应答? - How do I find out when a twilio call has actually been answered when using the JavaScript SDK? 如何以编程方式确定是否已安装ActiveX控件,以及是否已禁用ActiveX控件或整个ActiveX? - How do I programmatically determine if an ActiveX control has been installed, and whether it or ActiveX as a whole has been disabled? 如何找到我的 if 语句已应用于的行的 Max 和 Min 值? - How do I find the Max and Min values of a row that my if statement has been applied to? 如何检测已添加的搜索提供程序? - How to detect search provider which has already been added? 如果单击了某个项目(并且之前已将其添加到数组中),如何从数组中删除它? - How to remove an item from array if it's been clicked (and if it already has been previously added to an array)? 如何找到添加自定义事件侦听器的位置? - How to find where a custom event listener has been added? 我如何找出以前的流星应用程序中已安装的软件包? - How do I find out what packages I had installed in my previouse meteor app? 如何更改已动态添加到div的图像的源URL? - How do I change source url of an image which has been dynamically added to a div?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM