私のアプリ(ウェブサイト)からFacebook経由でプライベートメッセージを送信しています。これは、ウェブサイトへの招待リンクである - しかし、それは次のエラーを与える:送られてFacebookからメッセージを送信すると500エラーが発生する
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のようなものである - doesntの仕事 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)
})
});
あなたは「frictionlessRequests」と「method:send」があります。これらは互換性のないオプションですが、frictionlessrequestsオプションはリクエストダイアログ用です - 必ずしもこの問題の原因ではありませんが、送信ダイアログのドキュメントに正しく従っていることを確認してください – Igy