Facebook Send button to send link to iframe tab

It seems that when creating a Send button, Facebook will not let me send a link to the current iFrame tab / app. The link always gets reduced to just the Facebook page.

For example, I want to create a Send button using the following href: http://www.facebook.com/pages/MyPage/pageid/?sk=app_my_app_id&app_data=My_app_data

But in the send button, the link gets reduced to: http://www.facebook.com/pages/MyPage/pageid

Any ideas on how to get straight to the correct tab and include the app_data?


After a bit of browsing, looks like you can't include url params on the facebook send button link. The workaround I've had to use on my project is to encode any parameters as a 'fake' url and rewrite when this when it comes back in to my server:

Eg instead of this on the FB button link: http://example.com/index.php?foo=bar

Use something like this: http://example.com/foo/bar.html

Then setup some suitable mod_rewrite rules on your server to redirect incoming links to the 'fake' url, back to your usual url.


看看这里:https://www.facebook.com/note.php?note_id=10150231557835844 CTRL + F发送按钮的一些限制


I do not completely understand your question but in facebook apps I use javascript to redirect the whole browser instead of just the iframe, use this:

<script>window.location.href="your url"</script>

return this as the body when you want to do a redirect.

链接地址: http://www.djcxy.com/p/62292.html

上一篇: 喜欢插件:如何显示像在Facebook上发布的帖子按钮本身?

下一篇: Facebook发送按钮发送链接到iframe选项卡