简体   繁体   English

MailTo链接在facebook墙上(phonegap)

[英]MailTo Link on facebook wall(phonegap)

hi can anyone please tell me how to post mailto: on facebook wall .I downloaded the facebook SDK from git.But im unable to post mailTo.this is the sdk :https://github.com/davejohnson/phonegap-plugin-facebook-connect/ 嗨,任何人都可以告诉我如何在Facebook墙上发布mailto:我从git下载了facebook SDK,但是我无法发布mailTo。这是sdk:https://github.com/davejohnson/phonegap-plugin-facebook -连接/

this is the code im using: 这是我使用的代码:

FB.ui({
    method: 'feed',
    name: 'I\'m using the Hackbook web app',
    caption: 'Hackbook for Mobile Web.',
    description: 'Check out Hackbook .',
        link: '<html><body><a href="mailto:vinod.amc@gmail.com"/></body></html>',
    picture: 'http://www.facebookmobileweb.com/hackbook/img/facebook_icon_large.png',
    actions: [{ name: 'Click Here', link: 'http://apps.facebook.com/mobile-start/' }],
  }, 
  function(response) {
    console.log('publishStory UI response: ', response);
  });
}
 link: '<html><body><a href="mailto:vinod.amc@gmail.com"/></body></html>' 

That's not a link parameter like Facebook expects it – it expects an HTTP(S) URL. 这不是Facebook期望的link参数–它期望HTTP(S)URL。

I know of no way to directly link to email addresses. 我不知道直接链接到电子邮件地址的方法。 So your best way to go is to put your email into the message, I'd say. 因此,最好的方法是将电子邮件放入邮件中。

Remember that from the company's point of view every time people engage with one another outside of Facebook, this represents a loss of marketable user data. 请记住,从公司的角度来看,每当人们在Facebook之外与他人互动时,这都意味着可销售的用户数据丢失。 For this reason, Facebook works very hard to discourage communication outside of Facebook, and disabling mailto links in messages and posts is a part of this effort. 因此,Facebook非常努力地阻止Facebook之外的通信,并且禁用消息和帖子中的mailto链接是此工作的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM