English 中文(简体)
如何分享Facebook页面标签内部页面的内容?
原标题:How do I share content from a Facebook Page Tab s internal page?

我试图分享在Page Tab 内部页面上的内容。 本页面的每个项目都有一个类似按钮, 我愿意将用户重定向到页面上, 并通过JUS滚动到此项目上。 我最好不要披露网站的真实 url 。 换句话说, 我想分享类似的东西 : < a href=" https://www.facebook.com/ pages/PAGENAME/PAGENUMBER?sk= app_PAGETTABNUBER& ap_ data=5@ rel=“ no follow” > https://www.facebook.com/ pages/PAGENME/PAGENUMBER?sk=ap_PAGENTABENUBER& app_ data=5

问题在于当我尝试分享上面的 URL, Facebook 不考虑 OG 标签。 有什么建议吗? 谢谢!

编辑 1: 当我在调试器上贴上上面那样的 URL 时, 上面写着“ 脸书 URL 无法被这个调试器删除 ”, 所以我猜它找不到 og 标签 。

编辑 2: 如果我将网站的真正的 URL 放在“ 类似” 按钮的数据端中, 并在首页的“ 标签” 页中, 我得到应用程序数据, 用 og 标签( og: url 指向上面提到的 url 指向 url ) 重定向到内部页面, Facebook 忽略了 og 标签 。 在调试器中, 它说 : “ 错误分析输入 URL, 没有删除数据 。 ”

编辑 3 : 只能通过共享真实网站 url 来让它工作 。 当用户访问链接时, 我将他转到上面的 url 。 如果用户代理有其名下的Facebook, 我既不加载 PHP SDK, 也不重置, 以便让用户检索 og 标签 。

问题回答

这不是通过 URL 变量的正确方式, 您需要将 Json 和 应用数据一样, 在这样的 App_ data 中通过

https://www.facebook.com/pages/PAGENAME/PAGENUMBER?sk=app_PAGETABNUMBER&app_data={"Redirect_Page":"Home.aspx"}

当您将 ap_ data 解析为 Json 对象时,您就可以访问 ap_ data [“ redirect_Page”), 就可以在签名请求中获取 ap_ data 。

如果该工作, 您给 < code> app_ data 提供的价值应该在已签名的请求中, 并张贴在您的应用程序代码中 。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签