简体   繁体   中英

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/

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.

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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