Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
130
rated 0 times [  134] [ 4]  / answers: 1 / hits: 15596  / 10 Years ago, sun, april 13, 2014, 12:00:00

I need to pass some AngularJS variables from my application to the new Facebook sharer button, I'm using:



<div id=fb-root></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = //connect.facebook.net/es_LA/all.js#xfbml=1&appId=1438439249728371;
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


And this:



 <div class=fb-share-button data-href=http://mySite data-type=button>     </div>


Where can I place my custom text to share in the dialog?



Thank you!


More From » facebook

 Answers
31

Sharer wont allow that. It'll fetch the og tags from the link and fill the contents in the dialog.



If you want to add cutomized description/picture/caption you should instead use Feed Dialog.



You can use the direct URL to invoke feed dialog:



https://www.facebook.com/dialog/feed?
app_id=1438439249728371
&display=popup
&caption={caption}
&link={link-to-share}
&description={description}
&redirect_uri={redirect-url-to-your-site}


You can check all available parameters here


[#71485] Thursday, April 10, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
reesel

Total Points: 345
Total Questions: 124
Total Answers: 119

Location: Trinidad and Tobago
Member since Thu, Dec 1, 2022
1 Year ago
;