简体   繁体   English

Page Tab App中的Facebook Like按钮

[英]Facebook Like button in Page Tab App

I've seem to have run into an issue here. 我似乎在这里遇到了一个问题。 I have a voting/gallery app on a Tab of a specific page on Facebook. 我在Facebook特定页面的标签上有一个投票/画廊应用程序。

So to provide a user with a direct link to a image in a Gallery(in the Paget Tab App), i generated a URL with APP_DATA, so I can pass data(image filename)to the iframe . 因此,为了向用户提供到库中图像的直接链接(在Paget Tab App中),我使用APP_DATA生成了一个URL,因此可以将数据(图像文件名)传递给iframe So basically my links look kinda like this: 所以基本上我的链接看起来像这样:

https://www.facebook.com/pages/xxxxxx/xxxxxxxxx?sk=app_xxxxxxx&app_data=showimage.php%3Ffilename%3D1336314789stevakralj%2Ejpg https://www.facebook.com/pages/xxxxxx/xxxxxxxxx?sk=app_xxxxxxx&app_data=showimage.php%3Ffilename%3D1336314789stevakralj%2Ejpg

Now, when I try to create a Like button for this Link, I get nothing. 现在,当我尝试为此链接创建一个“赞”按钮时,我什么也没得到。

Any ideas? 有任何想法吗?

I have exactly the same problem... In my app, which is hosted by a page tab, the "Like" buttons for each item apper correctly and the "data-href" attribute for each "like" button has the same format as yours, but EVERY like button points to the Facebook page which hosts the app, not to the individual item... so, for every item in my gallery, the "like" information under it is exactly the same (number of likes for the page hosting the app) and if I "dislike" any item, I "dislike" the entire page. 我有完全相同的问题...在由页面选项卡托管的应用程序中,每个项目apper的“赞”按钮正确,每个“喜欢”按钮的“数据-href”属性与您的,但每个“喜欢”按钮都指向承载应用程序的Facebook页面,而不是单个项目……因此,对于我的图库中的每个项目,其下方的“喜欢”信息都是完全相同的(托管应用的页面),如果我“不喜欢”任何项目,那么我“不喜欢”整个页面。 I have tried the same format but the parameter NOT on a facebook page... then it works... I don't see a difference but: https://www.facebook.com/pages/xxxxxx/xxxxxxxxx?sk=app_xxxxxxx&app_data=abc (DOESN'T WORK, for each item which have app_data different) https://www.mytestweb.com/test.aspx?sk=app_xxxxxxx&app_data=abc (WORKS for each item which have app_data different) 我尝试了相同的格式,但是参数不在Facebook页面上...然后可以正常工作...我没发现什么不同,但: https : //www.facebook.com/pages/xxxxxx/xxxxxxxxx?sk= app_xxxxxxx&app_data = abc (对于具有不同app_data的每个项目, 不做任何工作) https://www.mytestweb.com/test.aspx?sk=app_xxxxxxx&app_data=abc (对于具有app_data不同的每个项目的工作)

Facebook doesn't seem to allow linking directly to a tab page so strips your app ID from the URL. Facebook似乎不允许直接链接到标签页,因此会从URL中删除您的应用ID。 There's no way to get around this except by linking to an external site that bounces back to Facebook. 除了链接到反弹回Facebook的外部网站之外,没有其他方法可以解决此问题。

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

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