アプリ (ウェブサイト) から Facebook 経由でプライベート メッセージを送信しています。これは Web サイトへの招待リンクですが、次のエラーが発生します。
The website encountered an error while retrieving https://www.facebook.com/dialog/send. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition
送信されるリンク招待リンクは http://myapp.com/invitation のようなものです - 動作しません http://myapp.com - 動作します!
スラッシュの後の何かで動作させるにはどうすればよいですか?
実際のコード:
:javascript
$(function(){
$('li.friend:not(.invited) label').live('click', function() {
FB.init({appId: #{Rails.application.config.fb_app_id}, xfbml: true, cookie: true})
FB.ui({
method: 'send',
display: 'popup',
name: 'New Invitation',
link: 'http://myapp.com/invitation/',
to: this.parentNode.getAttribute("data-id"),
frictionlessRequests:true,
show_error: 'true'
})
$(this).parent().addClass("invited")
$(this).siblings().prop("checked", true)
})
});