Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Facebook share title and text is not effect #6

Open
dieuit07 opened this issue Apr 16, 2014 · 4 comments
Open

Facebook share title and text is not effect #6

dieuit07 opened this issue Apr 16, 2014 · 4 comments
Assignees

Comments

@dieuit07
Copy link

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 AyumuKasuga self-assigned this Apr 16, 2014
@AyumuKasuga
Copy link
Owner

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
Copy link

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

@AyumuKasuga
Copy link
Owner

@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
Copy link

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants