在 Facebook 移动设备上通过 url api 选择缩略图进行共享
我想通过使用phonegap 实现的移动应用程序向facebook 发送共享,并预先选择显示的缩略图。
使用 url api,这适用于桌面浏览器:
https://www.facebook.com/sharer/sharer.php?s=100&p[url]=https%3A%2F%2Fmarket.android.com%2Fdetails%3Fid%3Dcom.nbapps.gokalender&p[images][0]=https%3A%2F%2Fg0.gstatic.com%2Fandroid%2Fmarket%2Fcom.nbapps.gokalender%2Fhi-256-0-263bba1f3af71252028742073efe586931aa3302
我想使用移动 facebook 网站,但似乎 p 数组不适用于移动 sharer.php:
https://m.facebook.com/sharer.php?s=100&p[url]=https%3A%2F%2Fmarket.android.com%2Fdetails%3Fid%3Dcom.nbapps.gokalender&p[images][0]=https%3A%2F%2Fg0.gstatic.com%2Fandroid%2Fmarket%2Fcom.nbapps.gokalender%2Fhi-256-0-263bba1f3af71252028742073efe586931aa3302
如您所见,我想分享一个到 android 的链接市场,因此不可能在服务器端做任何事情。
是否有 url api 的解决方案或者我必须使用 javascript SDK?
I want to send a share to facebook out of a mobile app realised with phonegap and preselect the thumbnail which is shown.
With the url api this works for desktop browsers:
https://www.facebook.com/sharer/sharer.php?s=100&p[url]=https%3A%2F%2Fmarket.android.com%2Fdetails%3Fid%3Dcom.nbapps.gokalender&p[images][0]=https%3A%2F%2Fg0.gstatic.com%2Fandroid%2Fmarket%2Fcom.nbapps.gokalender%2Fhi-256-0-263bba1f3af71252028742073efe586931aa3302
I would like to use the mobile facebook website instead, but as it seems the p array does not work with the mobile sharer.php:
https://m.facebook.com/sharer.php?s=100&p[url]=https%3A%2F%2Fmarket.android.com%2Fdetails%3Fid%3Dcom.nbapps.gokalender&p[images][0]=https%3A%2F%2Fg0.gstatic.com%2Fandroid%2Fmarket%2Fcom.nbapps.gokalender%2Fhi-256-0-263bba1f3af71252028742073efe586931aa3302
As you can see I want to share a link to android market so there is not possibility to do anything server-side.
Is there a solution with url api or do I have to use the javascript SDK?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论