topher-j
topher-j

Reputation: 2281

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

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>

Upvotes: 2

Views: 1718

Answers (1)

bkaid
bkaid

Reputation: 52073

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>

Upvotes: 4

Related Questions