我正在开发一个Android项目,它具有向Facebook用户的墙壁共享消息的功能。我成功地将phonegap-facebook-plugin添加到了我的项目中。
我想在墙上分享一条消息。但是我收到一条警告消息“没有活动的会话”。这是我从Github
开始遵循的代码facebookConnectPlugin.showDialog(
{
method: "feed",
picture:'https://www.google.co.jp/logos/doodles/2014/doodle-4-google-2014-japan-winner-5109465267306496.2-hp.png',
name:'Test Post',
message:'First photo post',
caption: 'Testing using phonegap plugin',
description: 'Posting photo using phonegap facebook plugin'
},
function (response) { alert(JSON.stringify(response)) },
function (response) { alert(JSON.stringify(response)) });
答案 0 :(得分:0)
我遇到了同样的问题,但仅限于Android设备。有人建议我使用“method:share”作为“method:feed”,它运行正常,但问题仍然存在。