Javascript Facebook share open graph方法打开手机的空弹出窗口
我使用share_open_graph将我的应用程序中的视频分享到facebook上,它在Decktop上运行得非常好,但在手机上会打开空白页面。 这是一个密码Javascript Facebook share open graph方法打开手机的空弹出窗口,javascript,html,css,facebook-graph-api,facebook-javascript-sdk,Javascript,Html,Css,Facebook Graph Api,Facebook Javascript Sdk,我使用share_open_graph将我的应用程序中的视频分享到facebook上,它在Decktop上运行得非常好,但在手机上会打开空白页面。 这是一个密码 //Create a new Graph Object FB.api( 'me/objects/video.other', 'post', { 'object': { 'type': 'video.other',
//Create a new Graph Object
FB.api(
'me/objects/video.other',
'post', {
'object': {
'type': 'video.other',
'url': fileUrl,
'secure_url': fileUrl,
'video': fileUrl,
'video:type' : 'video/mp4',
'image': imageUrl,
'title': title,
'description': shareUrl,
'video:width': '640',
'video:height': '390',
'image:width': '1000',
'image:height': '610',
}
},
//Call the FB Share dialog - referencing newly created object.
function(response) {
console.log(response);
FB.ui({
method: 'share_open_graph',
action_type: 'og.likes',
display: !this.isMobile ? 'popup' : 'touch',
mobile_iframe: true,
action_properties: JSON.stringify({
object: response.id,
type : 'video/mp4',
})
}, function(response) {
ConfirmationActions.showShareConfirmation(collectionTitle, 'Facebook', !!response.error);
console.log(response);
}
);
}
);
实际上,检查我提到的这个弹出窗口,有共享对话框所需的所有内容,但它没有显示出来,因为#viewport有最小高度:0px;
如果我把这个高度改为550px,我可以看到它的形式和内容
尝试将
float
添加到#viewport
中。此viewport由facebook生成,而不是我。我不能改变它。或者你可以提出建议,如何做到这一点?提前感谢您将float
添加到#viewport
。此viewport由facebook生成,而不是我。我不能改变它。或者你可以提出建议,如何做到这一点?先谢谢你