AyumuKasuga / SocialShare

jQuery plugin for creating custom like buttons and like counters
MIT License
143 stars 45 forks source link

Facebook share title and text is not effect #6

Open dieuit07 opened 10 years ago

dieuit07 commented 10 years ago

I see it get the title and meta-description of the page. The flow is: I request to my tool page and then it response me the result by ajax.

Is there any way to force title and desc for it? By the way, thanks for great plugin :)

AyumuKasuga commented 10 years ago

Hello. I use facebook.com/sharer.php for this and now it url is deprecated. It still work, but in some cases ignore custom parameters. Facebook propose Share Dialogs for sharing (https://developers.facebook.com/docs/sharing/reference/feed-dialog), but it requires Facebook SDK (https://developers.facebook.com/docs/javascript/). Facebook deleted easiest way for sharing. I can't add this feature in project.

satyendra-cis commented 9 years ago

I am also getting the same issue ,Do you know how to resolve it ?

AyumuKasuga commented 9 years ago

@Ank333 you should use open graph protocol for Facebook (http://en.wikipedia.org/wiki/Facebook_Platform#Open_Graph_protocol). Now if you using third party tools for sharing in facebook, you can't force custom title and description (only url).

chetankhargone commented 8 years ago

@AyumuKasuga .. I dowloaded the plugin zip files.. but when I see it. In

$('.share').ShareLink({ title: 'SocialShare jQuery plugin', text: 'SocialShare jQuery plugin for create share buttons and counters', image: 'http://cdn.myanimelist.net/images/characters/3/27890.jpg', url: 'https://github.com/AyumuKasuga/SocialShare' });

none of the option is picked up by share dialogue. Its taking something random. because fb has change the way of sharing articles now it picks og meta tages, hence I opend the github link mentioned in the post..now when I open the link and sees ths source no where I see the og tags..from where your plugin is taking the title and the image.

Only url is picked up right.

fb-share