我需要帮助我正尝试进行分享供稿,几乎不需要帮助,因为我要去圈子我的问题是,首先我要使用自定义按钮共享对话框打电话,
问题1:如果您未登录但未打开登录选项,则共享对话框不会打开
问题2:我也试图将用户从自定义字段写的自定义消息放置在Java应用程序中,问题是消息现在显示在共享对话框中,而不是您的注释类型,请阅读有关Facebook不再允许它的内容,所以我试图在报价中加载该消息
有人可以帮我解决这个问题吗?>
像这样,我没有弹出式阻止,作为提要,如果它表示消息文本在其中一个java文件中的这样的字符串中,这是示例,它不选择所有自定义类型的消息]]
@Override public void processMessage(TextMessage message) throws MessageProcessorException { try { final String msg = message.getText(); final String linkTitle = message.getStringProperty("linkTitle"); final String linkUri = message.getStringProperty("linkUri"); final String imageUri = message.getStringProperty("imageUri"); final String description = message.getStringProperty("description"); final Long providerAccountId = message.getLongProperty(Captions.PROVIDER_ACCOUNT); final Long publicationId = message.getLongProperty(Captions.PUBLICATION_ID);
这是我的js文件中的脚本
var pubId = "";
var fbShareDilogue = function () {
var pubId_ = document.getElementById("pubIdGlobal").value;
FB.init({
appId: ApiId,
//autoLogAppEvents : true,
status: true,
xfbml: true,
version: 'v6.0'
});
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1&appId=ApiID";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
FB.getLoginStatus(function(response) {
if (response.authResponse) {
FB.ui({
method: 'feed',
link: 'my website link' + pubId_,
//quote : 'Text from My message need to go here',
display: 'dialog',
},
function (response) {
console.log(response);
})
}
});
};
FB.getLoginStatus(function(response) {
if (response.authResponse) {
FB.ui({
method: 'feed',
link: 'web site link' + pubId_,
//quote : 'Text from My message need to go here',
display: 'dialog',
},
function (response) {
console.log(response);
})
}
});
};
...
我需要帮助,因为我要圈出圈圈,所以我几乎不需要帮助,我的问题是,首先我要调用自定义按钮共享对话框,问题1:共享对话框无法打开...
我对facebook共享窗口致以诚意,加载时我收到此错误消息浏览器调试器有谁能解决这个问题以及如何解决]
这里是浏览器调试器消息: