开发者

fb:comments Change the URL that's posted to facebook

开发者 https://www.devze.com 2023-03-16 12:55 出处:网络
I\'ve added fb:comments to a page that sits in an IFrame in another page.If the user clicks the \"Post comment to my Facebook profile\" the source URL posted on their Facebook wall is the IFrame sourc

I've added fb:comments to a page that sits in an IFrame in another page. If the user clicks the "Post comment to my Facebook profile" the source URL posted on their Facebook wall is the IFrame source, and not the parent page. Is there a way to change this URL in the fb:comment options?

I've tried the callbackurl & returnurl options, and neither of those work. Also, setting opengraph meta tags on the IFrame source doesn't work either.

*edit: Code 开发者_开发技巧requested

<fb:comments canpost='false'></fb:comments>


If you know the parent page url, set it in the href value of the comments plugin like this:

<fb:comments href="http://urlOfOuterPage.com"></fb:comments>
0

精彩评论

暂无评论...
验证码 换一张
取 消